"Once trapd is running with this option, when you toggle the trace on with
"trapd -T" from the command line you get the incoming trap dumped in hex."
In hex? C'mon, all those $$'s for licensing and hex is the best we got? I
guess it is better then binary ...
/just kidding
Jason
This you can match to the trapd.log by the timestamp. But there is no
documentation nor tools provided to read or format the hex. So would have
to do that yourself.
NetView support may have some internal documentation to assist you with
that (the same that they would use to decipher a problem) but as it is the
sort of thing you can glean by reading an SNMP textbook, IBM does not
publish it.
But I don't understand why exactly you would need to do this in the case
of unformatted traps. When trapd gets an unformatted trap he tells you
that and then does just what you said you want him to do. He lists all
the fields, the enterprise id, the generic and specific id, the number of
variables, and the contents of each one, right there in the trapd.log.
mib2trap is just a convenience tool to allow you to define traps before
you get them. Plenty of people simply wait for a trap to arrive and them
use the "No FMT found" message you get for an unformatted trap to define
it in xnmtrap right then. It's quite easy.
James Shanks
Level 3 Support for Tivoli NetView for UNIX and NT
Tivoli Software / IBM Software Group
"Karl Prinelle" <karl.prinelle AT elyzium.co DOT uk>
01/27/2003 09:18 AM
Please respond to Karl.Prinelle
To: <nv-l AT lists.tivoli DOT com>
cc:
Subject: [nv-l] trapd tracing - trap fields?
Hi,
Is it possible to get trapd to generate a trace that shows the individual
fields from a trap? I've switched tracing on, but I don't seem to get a
very good level of detail. If there is a pdf on this can anyone point me
at it - I've not noticed it so far.
Reason for asking is that I'm having a doing a version of mib2tec.pl that
will do all the normal stuff (cds/baroc/oid/conf/rls etc) for a MIB
containing TRAP-TYPE's, but will also be able to do the same for
unformatted traps. I know mi2trap will do a lot of this if I have a MIB,
but I keep finding applications that send traps & I can't locate the MIB
(or there isn't one).
Many thanks
Karl
Karl Prinelle
Tivoli Certified Consultant
Elyzium Ltd
Enterprise Systems Management Consultants
Mobile: +44 (0)7813 189198
Email: Karl.Prinelle AT elyzium.co DOT uk
http://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 rising out of any bug or virus infection.
---------------------------------------------------------------------------<
?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office"
/>
---------------------------------------------------------------------
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)
|