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