It would help if you would include the platform you are using. UNIX? NT?
Basically you pass parameters to nvmail from trapd using the "$n" syntax,
the same way you do for any command for the platform you are on. The
on-line help in "Trap Settings" (NT) and in "xnmtrap" (UNIX) explains this
kind of thing in some detail if you will take the time to read it.
On NT you will want to run the command as a "Hidden Command" and use a
syntax like this ( I had this attached to "Node Up"):
C:\usr\ov\bin\nvmail -server ferrari.raleigh.tivoli.com -recipient
jshanks@us.ibm.com -subject "test node up" -message " $1 $2 $3 $4 $5"
On UNIX it would be very similar:
/usr/OV/bin/nvmail -server ferrari.raleigh.tivoli.com -recipient
jshanks@us.ibm.com -subject "test node up" -message " $1 $2 $3 $4 $5"
James Shanks
Level 3 Support for Tivoli NetView for UNIX and NT
Tivoli Software / IBM Software Group
Vikas Kumar Gupta <VGupta@bangalorelabs.com>
05/21/2002 05:28 AM
To: "'nv-l@lists.tivoli.com'" <nv-l@lists.tivoli.com>
cc:
Subject: [nv-l] nvmail
Hi All,
Has anyone used the nvmail to send mail when an event occurs.This command
works fine but then can anyone tell me how do I pass relevant parameters
for the event so that the mail message makes sense and helps identify the
node/event from where the event is generated.
An urgent help is needed.
Regards
Vikas Gupta
|