×

Warning message

  • Cisco Support Forums is in Read Only mode while the site is being migrated.
  • Cisco Support Forums is in Read Only mode while the site is being migrated.

SNMP Trap Test

Unanswered Question
Mar 3rd, 2004
User Badges:

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.

  • 1
  • 2
  • 3
  • 4
  • 5
Overall Rating: 5 (1 ratings)
Loading.
minie Wed, 03/03/2004 - 19:20
User Badges:
  • Bronze, 100 points or more

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 1.1.1.1 <-- this is your trap receiver


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

dkktan Wed, 03/03/2004 - 19:30
User Badges:

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.





andy.juventus Tue, 03/09/2004 - 00:39
User Badges:

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}

Actions

This Discussion