[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

3552.0. "resource.dat and <DF> parameter" by ANNECY::HAGENMULLER (EIC Annecy - dtn 7887.41.99) Thu Aug 13 1992 05:55

I am trying to use the application menu by adding the following command line 
to the mcc_resource.dat file :

mcc_pml.aplications.DECmcc End of Alarm.vms_command: CREATE/TERM/WAIT/WINDOW-
ATTRIBUTE=(TITLE=\"End of Alarm\",ICON_NAME=\"End of Alarm\") mana/enter <DF>

and adding the "DECmcc End of Alarm" words to the mcc_pml.applications:...
line of mcc_resource.dat

My initial purpose was to launch a private application that  was to get the 
entity and domain name currently selected by the user and to perform some tasks
related to this entity. 
The parameter <DF> was expected to cause the creation of a file 
mcc_launched_TIME.dat which normally gives the domain, entity and user names.

in fact, the <DF> parameter causes the creation of a mcc_launched_TIME.dat file
but this file is empty and the command "mana/enter" aborts with an error somewhat
like "unable to interpret remainder of command ... syntax error in verb" and
the DECWINDOW is immediately closed.


Is my command line false (bad use of parameter <DF>) or is there something wrong
with the implementation of this <DF> feature ?
We are using DECmcc VMS v1.2 (link date of mcc_kernel_shr.exe = 26-jun-1992)

Christophe 
T.RTitleUserPersonal
Name
DateLines
3552.1you've *almost* got it.TOOK::MCPHERSONLife is hard. Play short.Thu Aug 13 1992 09:4045
Christophe ,

The <DF> will cause a .dat file to be created that contains data about
	1. The current domain
	2. The mapfile in use.
	3. The selected entity or entities 

Example file from an ultrix system:	

DOMAIN: .domain.lkg_ip_net
MAPFILE: /users/u2/doug/MCC_MAPS/mcc_FFE6000400AA000001CB583545994540.mcc_map_lkg_ip_net
SENTITY: SNMP ( LOCAL_NS:.ip.wan-gw-lkg , 16.20.0.173 , wan-gw.lkg ) 

End example

The iconic map PM will also pass as a parameter (e.g in P1 on VMS or $1 on
Ultrix) the NAME of this .dat file to the command, program or script.   Your
application can then pick this up and use the data to find, manipulate and
removed the file created by the <DF> option.

>in fact, the <DF> parameter causes the creation of a mcc_launched_TIME.dat file
>but this file is empty and the command "mana/enter" aborts with an error somewhat
>like "unable to interpret remainder of command ... syntax error in verb" and
>the DECWINDOW is immediately closed.

I don't see how the command you defined ("mana/enter") in your resource.dat is
supposed to pick up the file created by the <DF> option...  The behavior you
describe is consistent with the the behavior I described: What happens if, from
a DECterm, you simply type in 
	$ mana/enter mcc_launched_94429.dat
?  I would expect the same results.

You need to write a quicky .COM that 
	1) takes in 'P1 as a filespec
	2) reads through the file for the entity specification
	3) constructs the correct MCC commands based on the data it pulls out
	4) does it
	5) cleans up & deletes the file pointed to by 'P1

If your .dat file was *empty*  then I would check the following:
	1) Did you have a domain opened?
	2) Did you have any objects on the map selected?
	

.doug
3552.2it works ... thanks dougANNECY::HAGENMULLEREIC Annecy - dtn 7887.41.99Thu Aug 13 1992 11:3415
thank you doug, it works now !

The reason why I choose the command "mana/enter" was "why not"....
In fact, I didn't suceed in getting the name of the file (the doc doesn't
mention the parameter P1 and part of the file name seems to be random) and 
choose a mere command.

The file was empty because after a first test with a wrong command line in
mcc_resource.dat I forgot to select an entity !

Anyhow, I still don't understand why the command "manage/enter <DF>" gives
an error message and causes the window to immediately close.

regards, Ch.

3552.3...well I'lll tell you why! ;^)TOOK::MCPHERSONLife is hard. Play short.Thu Aug 13 1992 11:388
>Anyhow, I still don't understand why the command "manage/enter <DF>" gives
>an error message and causes the window to immediately close.

If you do a CREAT/TERM and pass it a bogus command to execute, the DECterm will
croak...  This is a DECterm issue. Works that way with *any* bad command line
directive.

/doug