You can start with this:
package require Tnm
set iTrapRec 0
set sid [Tnm::snmp listener]
$sid bind trap {incr iTrapRec; puts "\nReceived SNMP PDU %T:\nRequest-Id %R in session %S from %A port %P\nContents: %V\nError status: %E --- Error index: %I\nTraps received so far: $iTrapRec"}
Kind regards / Mit freundlichem Gruss
Toni Goeller
========================================
MINcom GmbH
Email2: toni.goeller@mincom.de
> -----Urspr> üngliche Nachricht-----
> Von: Jurkin Drazen [SMTP:drazen.jurkin@siemens.hr]
> Gesendet am: Freitag, 23. Februar 2001 08:44
> An: tkined@ibr.cs.tu-bs.de
> Betreff: [tkined] SNMP trap question !!!
>
> Hello;
>
>
> I should catch error messages from SNMP agent (Emanate) using SNMP trap
> functionality. I didn't do that before, so I need some information about
> that. Any information is welcome. (Some examples, manuals etc.).
>
> Thanks.
>
> Greetings,
> Drazen Jurkin
> << Datei: Drazen Jurkin (E-mail).vcf >> << Datei: Tech Tools.gif >>
-- !! 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.
This archive was generated by hypermail 2b29 : Thu Jan 03 2002 - 14:56:26 MET