Not really. You are asking for a formatting option in trapd.conf and there
is not one. If you really wanted to, you could create a ruleset to
intercept those traps, suppress them, and use an action node to send out
another trap of your own devising, using snmptrap, which would contain the
text you want. A less demanding method would be to define the trap so that
the log message said something like "Service failure type $n (1 = DNS, 2
= DHCP, 3 = LDAP)" where $n is trap variable you need, and so on. You have
up to 1024 bytes you can display I believe. You could also define an
additional action from the pull-down menu which would display that same
information. See the man page on trapd.conf for how to code up an
additional action script. The operator highlights the trap, pulls down
"Additional Actions" on the events window, and then selects the action he
wants. The results of your script pop-up in a window which stays until
they dismiss it.
James Shanks
Team Leader, Level 3 Support
Tivoli NetView for UNIX and NT
Peter Cho <chop@tdbank.ca>@tkg.com on 02/01/2001 03:46:32 PM
Please respond to IBM NetView Discussion <nv-l@tkg.com>
Sent by: owner-nv-l@tkg.com
To: IBM NetView Discussion <nv-l@tkg.com>
cc:
Subject: [NV-L] SNMP traps
I've got a product that provides number of services. When one of the
services
fail, it sends a SNMP trap indicating a service failure but instead of
using a name we get an interger value.
Example:
1 = DNS
2 = DHCP
3 = LDAP
etc
Is there a way of substituting the interger value with name? So when
operators see the event, it's obvious what failed.
Thanks.
_________________________________________________________________________
NV-L List information and Archives: http://www.tkg.com/nv-l
|