08-07-2002 04:39 AM - edited 03-02-2019 12:29 AM
Is ist possible to generate a snmp test trap from cisco routers with IOS? On Catalyst switches I found the CatOS command "test snmp trap!" command but I didn't found any reference about the SNMP trap number ( <trap_num> ).
Any information would be usefull! Thanks a lot!
08-07-2002 04:54 AM
I do not think that there is an actual command to test snmp traps in the IOS. However, what I usually do to test snmp traps is create a loopback interface and shut and no shut it. That will trigger interface down traps to be sent to the management station.
Kevin
08-07-2002 09:30 AM
Not there in IOS.
08-08-2002 02:10 PM
Make sure you have traps configured for configuration eg.
snmp-server community yourpublicstring RO
snmp-server community yourprivatestring RW
snmp-server enable traps config
snmp-server host 10.1.1.1 yourpublicstring
YVER06#term moni
YVER06#deb snmp packets
SNMP packet debugging is on
YVER06#conf t
Enter configuration commands, one per line. End with CNTL/Z.
YVER06(config)#^Z
Then watch the traps
09-25-2002 05:28 PM
how to use the router send snmp v2 informs instead of snmp v1 trap?
09-26-2002 10:59 AM
You can create a loopback interface and then do a shut/no shut to generate the trap for testing purpose.
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide