Re: Multiple Notification Routes With TRAPs
*I need to reopen this issue.*
I've been successful with one-line commands, such as, nvpage ...
net send ... and mailto ... with the traps and passing their variables.
I'm putting all three of these into a single file for execution.
I've tried .bat and .cmd files, but the trap variables are not
following the .bat and/or .cmd files.
Here's a sample of the .bat/.cmd file:
nvpage [email protected] +FYI+NETVIEW+ The CONFIGURATION Mode has been
entered on device "$A"
net send uhljc The CONFIGURATION Mode has been entered on device "$A"
mailto -S "FYI+NETVIEW" -M "The CONFIG Mode has been entered on
device:"+"$A" -U mynetview AT myemail DOT com -h mysmtp.myemail.com -D
myname AT myemail DOT com
(Note:net send is an NT command to send messages to computer screens)
Here's the line within the trap setting:
(Note: I've tried the above with & w/o the "$A")
Anybody see anything wrong with why the variable isn't passed?
From: James Shanks [mailto:James_Shanks AT TIVOLI DOT COM]
Sent: Wednesday, August 04, 1999 4:34 PM
To: NV-L AT UCSBVM.ucsb DOT edu
Subject: Re: Multiple Notification Routes With TRAPs
No matter how many you made, only one would be executed.
And NT does not allow that kind of modification anyway.
So your best bet is to write a script or bat file which does all three of
things you want and have that executed as
the command. Just remember to use the double backslashes when you specify
D:\\usr\\OV\\bin\\mynotify.bat "$A $3"
or whatever the actual script and passed variables would be.
Tivoli (NetView for UNIX) L3 Support
"Chance, Larry" <lchance AT SFBCIC DOT COM> on 08/04/99 03:26:23 PM
Please respond to Discussion of IBM NetView and POLYCENTER Manager on
<NV-L AT UCSBVM.UCSB DOT EDU>
To: NV-L AT UCSBVM.UCSB DOT EDU
cc: (bcc: James Shanks/Tivoli Systems)
Subject: Multiple Notification Routes With TRAPs
[ NETVIEW FOR NT ]
Is there a way to perform multiple notifications of the same TRAP event?
Can a TRAP be cloned, then modified?
I receive a trap from ROUTER1 that FRAME RELAY is down.
Can I use NVPAGE, MAILTO and NET SEND to initiate three different
notification routes for this same TRAP event? (Using: Run This Command When
The Trap Is Received)
Any ideas will be appreciated.