nv-l

Re: Multiple Notification Routes With TRAPs

1999-08-10 15:50:50
Subject: Re: Multiple Notification Routes With TRAPs
From: "Chance, Larry" <lchance AT SFBCIC DOT COM>
To: nv-l AT lists.tivoli DOT com
Date: Tue, 10 Aug 1999 14:50:50 -0500
*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:
e:\\usr\\ov\\bin\\doConfigMode.bat "$A"
(Note: I've tried the above with & w/o the "$A")

Anybody see anything wrong with why the variable isn't passed?

Thanks,

Larry





-----Original Message-----
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
the
things you want and have that executed as
the command.  Just remember to use the double backslashes when you specify
it:
 D:\\usr\\OV\\bin\\mynotify.bat "$A $3"

or whatever the actual  script and passed variables would be.

Good luck

James Shanks
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
NetView
      <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?

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

Thanks,

Larry


<Prev in Thread] Current Thread [Next in Thread>