[Search for users] [Overall Top Noters] [List of all Conferences] [Download this site]

Conference azur::mcc

Title:DECmcc user notes file. Does not replace IPMT.
Notice:Use IPMT for problems. Newsletter location in note 6187
Moderator:TAEC::BEROUD
Created:Mon Aug 21 1989
Last Modified:Wed Jun 04 1997
Last Successful Update:Fri Jun 06 1997
Number of topics:6497
Total number of notes:27359

4968.0. "Questions/problems-> Applications Launch Facility" by GADWAL::WOESTEMEYER (Why??...Why not!!!) Wed Apr 28 1993 11:12

Well, I am trying to work with the applications launch facility and 
having fits.  At least I have been able to duplicate the customer problem.
Attached is the DEF file, the executed file and samples of output.  

---->mcc_appl_name.def<----
DEL_KEY:*
MENU: Applications
	BUTTON: Name Test
	binary: @dkb100:[woestemeyer]tst_appl.com
	ENV_TYPE: Terminal
	ARGUMENT: <domain>
	APPLIES_TO: Node4
		ARGUMENT: <decnetivname>
	APPLIES_TO: SNMP
		ARGUMENT: <internetname>
	APPLIES_TO: Node
		ARGUMENT: <osiname>
ENDMENU:
---->tst_appl.com<----
$ write sys$output "domain = ''p1'"
$ write sys$output "DECnetIVName = ''p2'"
$ write sys$output "InternetName = ''p3'"
$ write sys$output "OSIName = ''p4'"
$ inq/nopunc a
$exit

---->SAMPLE output #1<----
This is after selecting a Phase 4 node, the node selected is the mcc station

domain = .DOMAIN.TEST
DECnetIVName = 28.1017
InternetName = KEROON
OSIName = 28.1017

the question in this sample is why does it return the node number for the 
DECnetIVName.  A follow on is why does it return an InternetName and OSIName
at all.

---->SAMPLE output #2<----
This is after selecting a Phase 4 node, the node selected is NOT the mcc
station

domain = .DOMAIN.TEST
DECnetIVName = NSUDC1
InternetName = 40.900
OSIName = NSUDC1

The questions here are why is the output different between 2 pahse 4 nodes,
one the mcc station and the other a different node.  The difference I  am
refering to is one has the correct DECnetIVName and the other is using the 
node number.  Still why is the InternetName and OSIName returned at all, since 
they are not valid for this entity.

---->SAMPLE output #3<----
This is after selecting a SNMP entity, the entity selected is a tranlan

domain = DOMAIN.TCPIP
DECnetIVName = 16.63.16.240
InternetName = TL320-1
OSIName = 16.63.16.240

Here the correct internetname is returned, but the DECnetIVName and OSIName 
are return with the internet address.  Again invalid for the well know name 
and unrequested data.

If the "ARGUMENT: <datafile>' is used the docs imply a data file is created
to be passed to the application.  What or how does one specifiy the name and 
location of the datafile?

An a side from both the customer and myself,  the documentation in chapter 8 
of the use manual for the applications launch facilty leave ALOT to be 
desired!!!

Any hints/suggestions?

Steve Woestemeyer
CSC/CS - Network Support Group



T.RTitleUserPersonal
Name
DateLines
4968.1Applies_To doesn't.MCDOUG::dougDead or Canadian?Wed Apr 28 1993 11:5432
>The question in this sample is why does it return the node number for the 
>DECnetIVName.  A follow on is why does it return an InternetName and OSIName
>at all.

>The questions here are why is the output different between 2 pahse 4 nodes,
>one the mcc station and the other a different node.  The difference I  am
>refering to is one has the correct DECnetIVName and the other is using the 
>node number.  Still why is the InternetName and OSIName returned at all, since 
>they are not valid for this entity.


    I don't believe that "Applies_To" is intended to work the way you're
    trying to use it.   I _think_ that the intent of "Applies_To" is to
    allow you to add operations on specific classes of objects to the
    "Operations" menu.   I _don't_ think the intent was to allow you to do
    'selective branching' like you're trying in your .def file and that's
    why you're getting wacky results.     I.e. the .def file parser logic
    doesn't understand that it's *only* supposed to pass the stuff between
    the various "applies_to's" in your .def file.  Since it can't, it's
    probably passing whatever other attributes it can find lying around
    into the application.
    
>If the "ARGUMENT: <datafile>' is used the docs imply a data file is created
>to be passed to the application.  What or how does one specifiy the name and 
>location of the datafile?

    The Iconic Map is supposed to pass the name of the datafile to the
    application as a parameter.  You should be able to pull it out just
    like you did the other params, then open it.


/doug
4968.2Still no datafile, and why the difference between node4sGADWAL::WOESTEMEYERWhy??...Why not!!!Thu Apr 29 1993 09:3350
    
Well if according to .1 the datafile name is suppose to be passed to the 
application as a parameter it still seems to be a problem.  Not only are
no new files created anywhere on the disk, there is no value passed for the
parameter.

Also, .1 did not touch the fact that results for the DECnetIVName when used
againest the MCC station itself are incorrect, but are correct for other 
phase 4 nodes.

Its too bad the 'APPLIES_TO' is only meant work for the operations menu, if
.1 is correct, and even worse that it is not documented as being so.  

Again attached are the .DEF file, the command procedure called, and sample 
outputs. This time the APPLIES_TO statements are left out, and invalid data
is stll returned.

Steve
--------------------------------
DEL_KEY:*
MENU: Applications
	BUTTON: Name Test
	binary: @dkb100:[woestemeyer]tst_appl.com
	ENV_TYPE: Terminal
		ARGUMENT: <domain>
		ARGUMENT: <decnetivname>
		ARGUMENT: <internetname>
		ARGUMENT: <osiname>
		ARGUMENT: <datafile>
ENDMENU:

$ write sys$output "domain       = ''p1'"
$ write sys$output "DECnetIVName = ''p2'"
$ write sys$output "InternetName = ''p3'"
$ write sys$output "OSIName      = ''p4'"
$ write sys$output "datafile     = ''p5'"
$ inq/nopunc a
$exit

domain       = .DOMAIN.TEST
DECnetIVName = 28.1017
InternetName = KEROON
OSIName      = 28.1017
datafile     =

domain       = .DOMAIN.TEST
DECnetIVName = NSUDC1
InternetName = 40.900
OSIName      = NSUDC1
datafile     =
4968.3MCDOUG::dougDead or Canadian?Thu Apr 29 1993 11:2857
>
>Again attached are the .DEF file, the command procedure called, and sample 
>outputs. This time the APPLIES_TO statements are left out, and invalid data
>is stll returned.
>

There is a fundamental flaw with the application launch stuff.  Once you
undestand what it is, you can figure out how to work around it.    The
basic problem is this: 
        there is no way to have a single 'button' work for more than one
        object class.   

In other words, the 'Name Test' button can be applied ONLY to one of the
classes you're trying: either NODE4, SNMP or NODE. 

What you *appear* to want is for the application launch to figure out what
the class *is* and then ONLY return the attributes valid for that class.
It can't do this.  Although it *can* figure out what the class is, the
parser apparently (I have not seen the code, so I'm guessing) gets confused
when you ask it to return attributes that don't make sense for that
particular class (e.g. asking for the OSIname of an SNMP object).   When
you do this, apparently the application launcher just passes back random
data that it has lying around...

Here's an example that will work:

DEL_KEY:*
MENU: Operations
	BUTTON: SNMP Name Test
	binary: /usr/users/doug/tst_appl.csh
	ENV_TYPE: Terminal
	ARGUMENT: <domain>
	APPLIES_TO: SNMP
		ARGUMENT: <internetname>
ENDMENU:
MENU: Operations
	BUTTON: NODE4 Name Test
	binary: /usr/users/doug/tst_appl.csh
	ENV_TYPE: Terminal
	ARGUMENT: <domain>
	APPLIES_TO: Node4
		ARGUMENT: <decnetivname>
ENDMENU:
MENU: Operations
	BUTTON: NODE Name Test
	binary: /usr/users/doug/tst_appl.csh
	ENV_TYPE: Terminal
	ARGUMENT: <domain>
	APPLIES_TO: Node
		ARGUMENT: <osiname>
ENDMENU:

I don't have a quick answer right now for the datafile problem that you're
having, but hopefully, someone else will chime in...  If not, I'll try to
get back in here later.

/doug
4968.4MCC Station vs. other node4???GADWAL::WOESTEMEYERWhy??...Why not!!!Thu Apr 29 1993 12:1246
OK, I have moved the application from the APPLICATIONS menu to the OPERATIONS
menu. The question that has not been attempted yet is why that when the MCC 
station is selected you get the node number returned when requesting the 
DECnetIVName, yet when the node4 selected is not the mcc station the correct
DECnetIVName is returned.

Re.3
Doug, 

If the APPLIES_TO cannot work for multipule entity types why does the 
documetnation in the Polycenter use manual chapter 8, page 8-11, exhibit
8-5 show an example of it.  I'm not trying to be picky, but I do need to 
understand it.

Steve
---------------------------------------------------------


DEL_KEY:*
MENU: Operations
	BUTTON: Name Test
	binary: @dkb100:[woestemeyer]tst_appl.com
	ENV_TYPE: Terminal
	Applies_to: node4
		ARGUMENT: <domain>
		ARGUMENT: <decnetivname>
		ARGUMENT: <datafile>
ENDMENU:

$ write sys$output "domain       = ''p1'"
$ write sys$output "DECnetIVName = ''p2'"
$ write sys$output "datafile     = ''p3'"
'"
$ inq/nopunc a
$exit

>>>>this is the mcc station
domain       = .DOMAIN.TEST
DECnetIVName = 28.1017
datafile     =

>>>>this is a different node4
domain       = .DOMAIN.TEST
DECnetIVName = NSUDC1
datafile     =

4968.5MCDOUG::dougDead or Canadian?Thu Apr 29 1993 15:3847
Steve,

>OK, I have moved the application from the APPLICATIONS menu to the OPERATIONS
>menu. The question that has not been attempted yet is why that when the MCC 
>station is selected you get the node number returned when requesting the 
>DECnetIVName, yet when the node4 selected is not the mcc station the correct
>DECnetIVName is returned.

   I cannot duplicate your problem on either VMS or ULTRIX V1.3 systems
   using your .def file and command procedure (and a C-shell translation).  
   - I select a NODE4 *not* the system that MCC is running on and I get back
     the domain name and nodename.
   - I select the NODE4 of the system that MCC is running on and I get back
     the domain name and nodename.
   Bottom line: I have no idea what's wrong with your system.


>If the APPLIES_TO cannot work for multipule entity types why does the 
>documetnation in the Polycenter use manual chapter 8, page 8-11, exhibit
>8-5 show an example of it.  I'm not trying to be picky, but I do need to 
>understand it.

    I did not say that.  What I said (more or less) was that it is
    impossible to have a script behave in a 'class-less' manner, if you
    need it to grab some sort of information as an argument.  [I don't
    think I said that last clause in my previous reply.

    The example you point out in the documentation is (as a fragment)
    perfectly legit.    What *it* is demonstrating is defining an
    application launch via double-click (passing NO arguments, so it should
    work ok, fwiw).

    The "Table of Possible Keywords" (exhibit 8-3, page 8-7) provides a
    fairly concise explanation of what you can expect from the APPLIES_TO
    and other keywords.  

/doug

    P.S.   ARGUMENT: <Datafile> *will* create and pass in the name of a
    file if (and apparently *only* if) you use "MULT_SELECT_POLICY:
    pass_all" in your .def file.   And guess what: you can't do a multiple
    select of *different* classes and have the Operations Menu work right
    -- assuming you have your application defined in the "Operations"
    menu-- if you need to do mult select across classes, you'll have to put
    it in a menu other than "Operations".