Re: [tkined] Does tnm support snmp filters

Juergen Schoenwaelder (schoenw@ibr.cs.tu-bs.de)
Fri, 16 Oct 1998 10:13:03 +0200

>>>>> Anurag Agrawal writes:

Anurag> Hi, Does tnm provide a mechanism for setting up filters for
Anurag> snmp traps? For example some snmp managers provide a mechanism
Anurag> for setting up trap filters where you can specify some things
Anurag> to look for in incoming traps, and execute some action if it
Anurag> matches - like changing the color of the trap display to
Anurag> indicate its been cleared. Do we have to implement this
Anurag> functionality in tcl for tnm.

Yes. It is so easy to do that I did not even think about creating
filters. Your Tcl procedure which is called whenever a trap is
received can implement whatever check you can dream of.

Anurag> Also, is there a specific order to the varbind list passed to
Anurag> the event handler for a trap?

Yes. Scotty follows the rules defined in RFC 1907 and RFC 2089. This
gives you the following:

1 sysUpTime.0
2 snmpTrapOID.0
3 \
... > defined by the TRAP-TYPE or NOTIFICATION-TYPE macro
n /
n+1 \
.... > whatever the agent likes to add
m /
m+1 snmpTrapEnterprise.0

There might be additional objects at the end in future scotty versions
as the SNMPv3 WG is slowly getting concensus to ship the transport
address of the trap originating agent in two additional varbinds.

Juergen

Juergen Schoenwaelder schoenw@ibr.cs.tu-bs.de http://www.cs.tu-bs.de/~schoenw
Technical University Braunschweig, Dept. Operating Systems & Computer Networks
Bueltenweg 74/75, 38106 Braunschweig, Germany. (Tel. +49 531 / 391 3289)

--
!! This message is brought to you via the `tkined & scotty' mailing list.
!! Please do not reply to this message to unsubscribe. To subscribe or
!! unsubscribe, send a mail message to <tkined-request@ibr.cs.tu-bs.de>.
!! See http://wwwsnmp.cs.utwente.nl/~schoenw/scotty/ for more information.