nv-l
[Top] [All Lists]

Re: [nv-l] events/traps

To: nv-l@lists.us.ibm.com
Subject: Re: [nv-l] events/traps
From: James Shanks <jshanks@us.ibm.com>
Date: Wed, 4 Feb 2004 16:33:54 -0500
Delivery-date: Wed, 04 Feb 2004 21:40:44 +0000
Envelope-to: nv-l-archive@lists.skills-1st.co.uk
Reply-to: nv-l@lists.us.ibm.com
Sender: owner-nv-l@lists.us.ibm.com

The short answer is "no".

The long answer is that you would have to do something clever, such as set that trap to "Don't Log or Display" (or "Log Only" if you want a record of it) and then configure a Command for Automatic Action which would pass the trap variables to a script of your own making, which would do the math and re-issue the trap, with a different specific id, using snmptrap.  That's the one  you would want to display in the nvevents window.  

Another alternative would be if you are willing to let the operator intervene and select the original trap in the nvevents window, and cause the math to happen in a pop-up window.  That's called "configuring an additional action" in xnmtrap.  The man page on trapd.conf will tell you what variables you pass to your script (they are different from the $1, $2, etc you specify for trapd because you are dealing not with the trap any more but with the formatted message in the event window) and you can massage them there and have  the script tell the operator whatever you wish.  To drive it, the operator selects the event in the window, pulls down "Options --> Additional Actions --> Selected" and then picks the action he wants from the list.  When he picks yours, the script would run in a popup window which would display the output to him.

I hope this is clear.

James Shanks
Level 3 Support  for Tivoli NetView for UNIX and Windows
Tivoli Software / IBM Software Group



"Christopher J Petrina" <cjp8@meadwestvaco.com>
Sent by: owner-nv-l@lists.us.ibm.com

02/04/2004 04:13 PM
Please respond to nv-l

       
        To:        nv-l@lists.us.ibm.com
        cc:        
        Subject:        [nv-l] events/traps




Greetings all,


I have read through most of the documentation that I can find about traps and events, did not see any real information on the following maybe someone knows the answer.


in the xnmtrap area can I do any type of math.   meaning I have a trapt hat comes in where $1 = some number.   I want the msg to to say like $1/1000 and give the result of it.   Is this possible inside the xnmtrap msg area.  Basically can I do any math in the msg statement using {} or anything?


Thanks

Chris Petrina


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

Archive operated by Skills 1st Ltd

See also: The NetView Web