Re: [tkined] snmp traps

Juergen Schoenwaelder (schoenw@ibr.cs.tu-bs.de)
Tue, 27 Oct 1998 16:36:50 +0100

>>>>> PierLuigi DeSimone writes:

PierLuigi> I am trying to write a script which sends snmp traps to
PierLuigi> another script which is listening to traps. In tnm/examples
PierLuigi> there is one for a snmptrapdaemon and that's ok. But I do
PierLuigi> not see any example, (maybe it is somewhere), on how to
PierLuigi> generate traps. Once again, on the Zeltserman-Puoplo book,
PierLuigi> they refer to Tnm 3.0 (which I do not have, and don't find)
PierLuigi> using ``snmp notifier''; but from what I see on the Tnm man
PierLuigi> pages ``snmp notifier'' is not supported by Tnm 2.1. Has
PierLuigi> anybody in this list some example to show me in order to
PierLuigi> put in place a send-catch traps mechanism?

Here is how you can send traps with 2.1.X:

set s [snmp session -port 162]
$s trap coldStart [list [list sysDescr.0 "Fridge"]]

Note, this example is taken nearly verbatim from the snmp(n) manual
page. Please read the manual before using this mailing list. (Send me
wording changes and corrections if the manual is too hard to read.)

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.