nv-l
[Top] [All Lists]

RE: using variables with nvmail

To: nv-l@lists.tivoli.com
Subject: RE: using variables with nvmail
From: Kem Shin <KemS@fool.com>
Date: Fri, 6 Oct 2000 17:49:22 -0400
This message is in MIME format. Since your mail reader does not understand
this format, some or all of this message may not be legible.
Thank you very much for your info:
 
I am currently able to insert the ip address of the trap source in the
nvmail alerts with 
    $A.  For time being, I am working exclusively with cisco traps; and 
$1 though $3 seems to be returning different value from the trap message,
then the ip address.
 
 

----Original Message-----
From: Bill Evans [mailto:wvevans@prodigy.net]
Sent: Saturday, September 30, 2000 12:11 PM
To: IBM NetView Discussion
Cc: Kem Shin
Subject: re: [NV-L] using variables with nvmail


The $1 notation works for me when the command is entered directly on the
command line for the Trap Configuration menu.  
If entered into an NT Batch File (.BAT or .CMD) you must use the appropriate
NT notation; %1, and pass the 
data from the Trap processing daemon using the $1 notation. 
 
Using single and double quotes in the command may affect the substitution
process as well.  Using the Hidden versus the Console version of the command
environment may also affect the execution.  Read the book (Programmers
Reference) carefully and remember that the product, in many respects, is a
port from Unix and things like $1 are Unix constructs which sometimes were
modified to the Microsoft Windows paradigm and sometimes were not. 
 
I'm still trying to identify the variables involved. On one machine with
NetView daemons active the nvmail process works from a .BAT file but on
another without NetView active and using Regina to process the command it
doesn't.   Next week I'll diagnose where the critical difference lies
(NetView daemons? my SMTP server? Regina?) unless someone gives me a hint
this weekend.  
 
Bill Evans  --  Consultant in Enterprise Systems Management
reply-to: wvevans@prodigy.net <mailto:wvevans@prodigy.net>   
Phone: 919-696-7513 
Send short text messages to 9196967513@messaging.sprintpcs.com
<mailto:9196967513@messaging.sprintpcs.com>  

Thank you very much for your info:
 
I am currently able to insert the ip address of the trap source in the nvmail alerts with
    $A.  For time being, I am working exclusively with cisco traps; and
$1 though $3 seems to be returning different value from the trap message, then the ip address.
 
 
----Original Message-----
From: Bill Evans [mailto:wvevans@prodigy.net]
Sent: Saturday, September 30, 2000 12:11 PM
To: IBM NetView Discussion
Cc: Kem Shin
Subject: re: [NV-L] using variables with nvmail

The $1 notation works for me when the command is entered directly on the command line for the Trap Configuration menu. 
If entered into an NT Batch File (.BAT or .CMD) you must use the appropriate NT notation; %1, and pass the
data from the Trap processing daemon using the $1 notation. 
 
Using single and double quotes in the command may affect the substitution process as well.  Using the Hidden versus the Console version of the command environment may also affect the execution.  Read the book (Programmers Reference) carefully and remember that the product, in many respects, is a port from Unix and things like $1 are Unix constructs which sometimes were modified to the Microsoft Windows paradigm and sometimes were not. 
 
I'm still trying to identify the variables involved. On one machine with NetView daemons active the nvmail process works from a .BAT file but on another without NetView active and using Regina to process the command it doesn't.   Next week I'll diagnose where the critical difference lies (NetView daemons? my SMTP server? Regina?) unless someone gives me a hint this weekend. 
 
Bill Evans  --  Consultant in Enterprise Systems Management
reply-to: wvevans@prodigy.net 
Phone: 919-696-7513
Send short text messages to 9196967513@messaging.sprintpcs.com




<Prev in Thread] Current Thread [Next in Thread>
  • RE: using variables with nvmail, Kem Shin <=

Archive operated by Skills 1st Ltd

See also: The NetView Web