Re: Can scotty be used to send trap message to other management station?

Juergen Schoenwaelder (schoenw@gaertner.de)
Mon, 5 May 1997 18:12:29 +0200

bchiou@mail11.mitre.org (Bensen Chiou) said:

Bensen> Can scotty be used to send SNMPv1 trap to other
Bensen> management station?

Yes.

Bensen> I used the following commands to send a trap to other
Bensen> SNMP monitor. The trap message didn't seem to be received
Bensen> by the straps:

Bensen> /usr/local/bin/scotty
Bensen> snmp session -address 129.83.66.24 -community public
Bensen> snmp0 trap coldStart {{sysDescr.0 "TstTrap"}}

Bensen> Are these proper commands to be used to send a trap to other
Bensen> host?

The commands are OK, but the parameters most likely not. See the
snmp(n) man page. It gives the following example:

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

It is important to send the trap to port 162 and not to the default
port 161.
Juergen

-- 
Juergen Schoenwaelder     <schoenw@gaertner.de>     (Tel: +49-531-23873-0)
Gaertner Datensysteme, Hamburger Strasse 273a, 38114 Braunschweig, Germany
--
!! 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.