[Search for users]
[Overall Top Noters]
[List of all Conferences]
[Download this site]
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 |
4627.0. "Launced arguments passed in VMS is always passed in uppercase" by ANTIK::WESTERBERG (Stefan Westerberg DS Stockholm) Tue Mar 02 1993 10:44
DECmcc T1.3.1
If I try to pass a communtiy name string that is registrated in
lower case, it is passed to the procedure in uppercase:
del_key:*
Menu: Applications
Button: HUBwatch Procedure
shell: @mcc_common:mcc_hubwatch
Env_type: TERMINAL
Term_title: HUBwatch
Icon_label: HUBwatch
Argument: *<InternetAddress>*
Argument: *<snmp.!.proxy agent address>*
Argument: *<snmp.!.write community name>*
Endmenu:
MCC_HUBWATCG.TXT
$ set nover
$!---
$! MCC_HUBWATCH.COM
$! ================
$! Date: 3-Mars-1993
$! By: Stefan Westerberg
$!---
$!
$ write sys$output "P1=''P1', P2=''P2'"
$
$ if p1.eqs.""
$ then
$ write sys$output "No IP address passed......"
$ wait 00:00:10
$ exit
$ endif
$
$ if p2.eqs.""
$ then
$ watch/agent/ip_address='p1'
$ else
$ watch/agent/ip_address='p1'/community="''p2'"
$ endif
$
$ wait 00:00:10
$ exit
Output from the first write command then is:
P1=16.181.0.156, P2=PUBLIC
(W): �
(W): Current agent community name not in the agent table
.
.
Another thing I don't get to work is to pass the agrument directly
to the watch/agent command using the following definition:
del_key:*
Menu: Applications
Button: HUBwatch Command
binary: watch/agent
Env_type: WINDOW
Term_title: HUBwatch
Icon_label: HUBwatch
Argument: */ip_address=<InternetAddress>*
Argument: */ip_address=<snmp.!.proxy agent address>*
Argument: */community=<snmp.!.write community name>*
Endmenu:
By directing the arguments to a command file it seems that the passed
argument isn't translated.
Any ideas ?
/Stefan
T.R | Title | User | Personal Name | Date | Lines
|
---|