RE: [nv-l] nvmail
2002-05-21 10:48:46
You could write a simple script that emails the parameters passed from the
event and associate that script as an action against an event in "Event
Configuration". This is just a simple example, you could tailor your script
to do an infinite amount of other things as needed by your CSCI.
Note: I have never done this before, I just wrote it for this reply.
-- begin mailer.sh code
#!/bin/sh
echo "$*" > /tmp/mailer.out
mailx -s "Netview mailer program" invalid-email-address AT please.change.me DOT
org
< /tmp/mailer.out
rm /tmp/mailer.out
-- end mailer.sh code
Jason Allison
Principal Engineer
ARINC Incorporated
Office: (410) 266-2006
FAX: (410) 573-3026
-----Original Message-----
From: James Shanks [mailto:jshanks AT us.ibm DOT com]
Sent: Tuesday, May 21, 2002 10:09 AM
To: nv-l AT lists.tivoli DOT com
Subject: Re: [nv-l] nvmail
No, it's not a new command. I screwed up. nvmail is an NT-only
executable.
On UNIX you would use the mail command which comes with the operating
system, as for example
echo "$2 is $3" | mail -s "test node message" jshanks AT us.ibm DOT com
If you like, you can write a simple script and alias this as "nvmail"
(which is how I got confused). Sorry.
James Shanks
Level 3 Support for Tivoli NetView for UNIX and NT
Tivoli Software / IBM Software Group
"CATALINA MARTINEZ" <CATALINA.MARTINEZ AT tlc.state.tx DOT us>
05/21/2002 09:38 AM
To: <nv-l AT lists.tivoli DOT com>
cc:
Subject: Re: [nv-l] nvmail
Is nvmail a new feature/command. I am running 602 on AIX 4337 and do not
have this command.
Catalina
>>> "James Shanks" <jshanks AT us.ibm DOT com> 05/21/02 07:59AM >>>
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 AT us.ibm DOT 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 AT us.ibm DOT 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 AT bangalorelabs DOT com>
05/21/2002 05:28 AM
To: "'nv-l AT lists.tivoli DOT com'" <nv-l AT lists.tivoli DOT 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
---------------------------------------------------------------------
To unsubscribe, e-mail: nv-l-unsubscribe AT lists.tivoli DOT com
For additional commands, e-mail: nv-l-help AT lists.tivoli DOT com
*NOTE*
This is not an Offical Tivoli Support forum. If you need immediate
assistance from Tivoli please call the IBM Tivoli Software Group
help line at 1-800-TIVOLI8(848-6548)
---------------------------------------------------------------------
To unsubscribe, e-mail: nv-l-unsubscribe AT lists.tivoli DOT com
For additional commands, e-mail: nv-l-help AT lists.tivoli DOT com
*NOTE*
This is not an Offical Tivoli Support forum. If you need immediate
assistance from Tivoli please call the IBM Tivoli Software Group
help line at 1-800-TIVOLI8(848-6548)
|
|
|