Re: [tkined] generic & specific trap type

Juergen Schoenwaelder (schoenw@ibr.cs.tu-bs.de)
Sat, 21 Mar 1998 18:40:30 +0100

>>>>> Daniele Manghi writes:

Daniele> We are using scotty ( tnm2.1.5 ) to - among other things -
Daniele> receive traps on a manager application. However I realized
Daniele> that I do not know how to get the generic and the specific
Daniele> type for each received trap. These two fields do not seem to
Daniele> be among those that get substituted after a percent sign in
Daniele> the binding. Is there a way to get them ? Or are they
Daniele> unaccessible at all ?

The Tnm extension follows the SNMPv2 rules. Traps (or better
notifications) are identified by an OID value in the varbind list.
SNMPv1 trap definitions (TRAP-TYPE macro) are converted automatically
to OIDs (see RFC 1908 section 2.2 and RFC 2089). You usually do not
need the generic and specific trap numbers if you write e.g. a trap
filter because the OIDs will work just fine.

However, if you really need to get access to the generic and specific
trap numbers, just revert the mapping described in RFC 1908 section
2.2 and RFC 2089.
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 3283)
--
!! 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.