Re: [tkined] Receiving Traps

From: Juergen Schoenwaelder (
Date: Fri Sep 29 2000 - 11:08:58 MET DST

>>>>> Brock Rycenga writes:

Brock> I would like to configure Scotty (or Tnm, or Tcl, whatever)
Brock> such that it will receive a trap from a Fore switch hanging off
Brock> our network. Do I need to configure to listen on port 162?

No. The truth is that scotty is currently only able to receive traps
from port 162.

Brock> How does the switch know to send the trap to my PC?

Usually vendor specific configuration. There is now a standard MIB for
configuring notification targets, but I suspect that most switches
still use proprietary MIB extensions.

Brock> Can anyone provide me with a simple example?

The precise Tcl syntax depends on your scotty version. In Tnm 3.0, you
should be able to do the following:

     set nr [snmp listener]
     $nr bind trap { puts "%V" }

With Tnm 2.1.X, you would do:

     set nr [snmp session]
     $nr bind {} trap { puts "%V" }


Juergen Schoenwaelder      Technical University Braunschweig
<>  Dept. Operating Systems & Computer Networks
Phone: +49 531 391 3289    Bueltenweg 74/75, 38106 Braunschweig, Germany
Fax:   +49 531 391 5936    <URL:>

-- !! 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 <>. !! See for more information.

This archive was generated by hypermail 2b29 : Mon Jan 08 2001 - 15:27:54 MET