Jason -
Have you tried it? There's also an eyecatcher to the side which displays
all the ASCII strings.
I realize that you are making a little joke here, but I feel compelled to
explain that trapd.trace was intended as a diagnostic tool for Support,
not a user tool. Typically, someone like me is the one who ultimately
analyzes the data there in order to fix a customer problem. So it does
what we find most useful. If you want something more, then the product
has facilities built-in for that. But it does provide proof that what
trapd displays is what he got off the wire, and what he did with it.
To get something more readable, you can always send your traps to MLM, and
let him log them and then send them on to NetView proper. MLM writes out
all pieces very nicely. Or you could use the formatting facilities of
trapd to write out just about everything he knows as well.
If a vendor trap has no definition at all in trapd.conf, then trapd
automatically displays it by labeling the enterprise id, the generic and
specific id, the number of variables, and the MIB OIDs, data types, and
values of each variable binding. You can duplicate this kind of thing
yourself by specifying exactly what you want to see in the log message
using xnmtrap. The options are explain the man page for trapd.conf. For
example,
"Trap from $E ($e) $G $S received from host $A with $# args: $-1,
$-2, $-3, " etc
shows you just about everything you could want to see, doesn't it? Most
of the time this is too much data, but you could log it that way if you
chose. The point is that a great deal of readability is available and you
can configure it the way you like. I don't see anything really
significant that's missing, though there is no denying that the formatting
capabilities could be expanded even further to accommodate more choices.
HP went further down that road than we did.
James Shanks
Level 3 Support for Tivoli NetView for UNIX and NT
Tivoli Software / IBM Software Group
"Allison, Jason (JALLISON)" <JALLISON AT arinc DOT com>
01/28/2003 08:52 AM
To: "'nv-l'" <nv-l AT lists.tivoli DOT com>
cc:
Subject: RE: [nv-l] trapd tracing - trap fields?
"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)
---------------------------------------------------------------------
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)
|