I'm gradually porting some scotty scripts from
linux (tnm 2.1.10) over to NT 4.0 (trying both
2.1.10 and 3.0.0 with Tcl 8.0). I just located
the 3.0.0 help file and I think I'm making progress.
Right now I'm trying to get a trap callback
proc to execute. I have something like this
(3.0.0 version shown):
proc trapHandler {snmp_sess ip args } {
puts "Got trap from $ip via $snmp_sess"
# etc...
}
...
set trapper [snmp listener -port 162 -version SNMPv2c]
$trapper bind trap "trapHandler %S %A %V"
...
I never see my callback proc executed when traps arrive.
I've disabled the SNMP and SNMP Trap services on
NT (I was getting "can not bind socket: address
already in use" before).
Separately, I can run MG-Soft's MIB browser/trap ringer and verify the traps are arriving (from a variety of nodes).
I have Noblenet portmapper running, configured
for some other non-snmp ports.
Any help appreciated. Thanks
--== Sent via Deja.com http://www.deja.com/ ==--
Share what you know. Learn what you don't.
-- !! 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.