| 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
|
| 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.
|
| >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
|