nv-l
[Top] [All Lists]

Re: [nv-l] simulating/regenerating traps?

To: nv-l@lists.us.ibm.com
Subject: Re: [nv-l] simulating/regenerating traps?
From: James Shanks <jshanks@us.ibm.com>
Date: Thu, 22 Jan 2004 10:44:44 -0500
Delivery-date: Thu, 22 Jan 2004 16:22:02 +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

There is no automated process to generate new events, either singly or in batches.
But you can use snmptrap to generate any SNMP V1 trap you choose, provided you know what's in it.


If there is no format in trapd.conf, then the "NO FMT FOUND" message will tell you everything you need to know for that.  But if the trap is formatted, and all the variable bindings are not shown, then you won't be able to generate it exactly.  In that case you can change the way the trap is displayed on the target system so that the log message  contains " $*  "  so that all the varbinds print out.  

You're only other option is to use serversetup to have trapd run with the -x option (hex dump all packets) and then turn on the trapd.trace, which you can do from the command line, with "trapd -T".  This toggles the trace every time you use it.  The trace then provides a full hex dump of the incoming trap and you can decode the hex with the help of a book on SNMP.

Of corse, if you are connected to these systems, you could have the remote trapd forward yours the events you want to see.

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



"Karl Prinelle" <Karl.Prinelle@elyzium.co.uk>
Sent by: owner-nv-l@lists.us.ibm.com

01/22/2004 09:19 AM
Please respond to nv-l

       
        To:        <nv-l@lists.tivoli.com>
        cc:        
        Subject:        [nv-l] simulating/regenerating traps?



Hi list,
 
I'm just in the middle of testing some nv rules / tec integration & I've had a thought (possibly the 1st!) about being able to regenerate traps sent to netview for testing?  
 
Typically a trap would have been sent to a customers live netview box, possibly without the trap formatting in place & I need to reproduce it on my machines & do rules/tec stuff.  The trap will come from a device I won't have access to so I can't easily re-generate it.
 
Is the trapd.log contents complete & a standard form I can pull out and form a call to snmptrap, or is there a trace that needs to be set that would cause it to contain the full trap and it's variables?
 
Many thanks in advance
 
K
 
 
 
 
 
---------------------------------------------------------------------------
Karl Prinelle

Consultant
Elyzium Ltd

Mobile: +44 (0)7813 189198

 
E-mail: karl.prinelle@elyzium.co.uk
 
Slough Office, Church Street, Slough, SL1 1PJ. Tel: +44 1753 515000, Fax:+44 1753 515017
Head Office, 12 Queensbrook, Bolton, BL1 4AY. Tel: +44 1204 528628, Fax: +44 1204 534678
 
For further information, please visit our website at www.elyzium.co.uk
 
---------------------------------------------------------------------------
Elyzium Disclaimer:
This email transmission is confidential and intended solely for the person
or organisation to whom it is addressed. If you are not the intended
recipient, you must not copy, distribute or disseminate the information, or
take any action in reliance of it. Any views expressed in this message are
those of the individual sender, except where the sender specifically states
them to be the views of any organisation or employer.

If you have received this message in error, do not open any attachment
but please notify the sender (above) deleting this message from your system.
Please rely on your own virus check no responsibility is taken by the
 sender for any damage arising out of any bug or virus infection.
---------------------------------------------------------------------------

 

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

Archive operated by Skills 1st Ltd

See also: The NetView Web