[tkined] SNMP trap question

From: Jurkin Drazen (drazen.jurkin@siemens.hr)
Date: Mon Apr 09 2001 - 10:13:52 MET DST


Hello *;

Please, can anybody help me with this.

I'm using ProTCL1.3 for NT and Scotty.

I'm trying to send TRAP message with SNMP DOS tool trapsend.

So, I can "catch" this TRAP message with SNMP Trap Ringer Console (which is
included in MG Browser made by MG Soft).

But, I can not "catch" this TRAP message with this little TCL script.:

namespace import Tnm::mib Tnm::snmp Tnm::icmp Tnm::netdb
   
 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"
 puts "\nContents: %V\nError status: %E ---Error index: %I\n Traps received
so far: $iTrapRec"
 
 }
 
 after 30000
 
 $sid destroy

I started DOS tool trapsend while this TCL script is executing (it runs for
30 seconds, because of after 30000), but I didn't receive anything.

Where I made mistake?

Thanks in advance.

Greetings,
DJ

--
!! 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