Cisco Support Community
Showing results for 
Search instead for 
Did you mean: 
Community Member

SNMP Trap Test

Does anyone know what is the command to send a dummy snmp trap from a cisco 3600 router to a NMS.

I know Cat 6500 can do it, so I guess there is a way to do it on the Cisco router.


Re: SNMP Trap Test

Though IOS routers can not send dummy trap, it's quite easy to initiate one. Simply enable syslog trap, and exit from "conf t" mode.

Configure this on router

snmp-server enable traps syslog

snmp-server host <-- this is your trap receiver

Now exit. This will generate a syslog messaage, which in turn will trigger a trap.

Community Member

Re: SNMP Trap Test

Thx for the tip, this is one of the solution I use.

anyway the parameter

'snmp-server enable traps config' will generate a snmp trap every time you exit from the conf t mode.

Community Member

Re: SNMP Trap Test

My config is

snmp-server community XXX RW

snmp-server enable traps snmp(all traps)

snmp-server host X.X.X.X version 2c XXX

But no matter how I enter the conf t mode or shut down an interface , no messages on the host .

Could anybody help me to know why?

{cisco 7206vxr,ios=12.2(8)YW3,the host is where ciscoworks installed}

CreatePlease to create content