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

Welcome to Cisco Support Community. We would love to have your feedback.

For an introduction to the new site, click here. If you'd prefer to explore, try our test area to get started. And see here for current known issues.

New Member

Generate a test snmp trap

Is it possible from an IOS and/or CatOS device to generate a non-instrusive "test" SNMP trap?

7 REPLIES
Silver

Re: Generate a test snmp trap

You can cause a config change trap by changing the description of a port or a banner.

It's all about how you define non-intrusive

Michel

New Member

Re: Generate a test snmp trap

Specifically something that doesn't impact the operational status of the router in any form. I don't want to have to bounce an interface just to test if my SNMP traps are working. Is there not a simple command that will generate a generic trap or must I make a change to the router config, however cosmetic it may be?

Blue

Re: Generate a test snmp trap

According to a previous post, you can generate the following traps on CatOS:

to send a warmstart trap

# test snmp trap 1

to send a coldstart trap

# test snmp trap 0

New Member

Re: Generate a test snmp trap

Thanks, this worked perfectly. Does anybody know of a similar IOS command?

Re: Generate a test snmp trap

for IOS devices

just telnet to the device go into configuration mode and leave config mode

# telnet x.x.x.x

Switch-02>en

Password:

Switch-02#term mon

Switch-02#conf t

Enter configuration commands, one per line. End with CNTL/Z.

Switch-02(config)#exit

Switch-02#

*Sep 19 14:20:21.608: %SYS-5-CONFIG_I: Configured from console by vty0 (y.y.y.y)

Switch-02#exit

HTH

New Member

Re: Generate a test snmp trap

I've the same need, ie test snmp trap on IOS cisco devices (router 2800). I'm not able to verify if it is available a command similar to the CatOS test snmp trap...

Have you notice of similar command for IOS?

Thank's

Re: Generate a test snmp trap

afaik, there is no similar command in IOS to that in CatOS, but as i mentioned in my previous comments in this thread - you just need to enter the configure mode an leave it again without changing anything.

conf t

exit

793
Views
4
Helpful
7
Replies