cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Announcements

12486
Views
0
Helpful
8
Replies
Highlighted
Beginner

Generate SNMP traps for testing monitoring

Dear all,

We would like to test efficiently our Network Management system.

We configured SNMP. But as we cannot generate some outages we would like to generate some tests traps.

Could you tell me if there's a way to generate from the CLI for i.e. fake SNMP traps?

Ideally we would like to test things like : Temperature excess, FAN failure, Power Supply failure, etc...

Any help would be appreciated,

Thank you very much in advance

Regards

Everyone's tags (3)
2 ACCEPTED SOLUTIONS

Accepted Solutions
Highlighted
Beginner

Re: Generate SNMP traps for testing monitoring

Sorry I see you wanted traps, not sys logs my bad, for that try this link https://supportforums.cisco.com/docs/DOC-11745

Sent from Cisco Technical Support iPad App

View solution in original post

Highlighted
Cisco Employee

Re: Generate SNMP traps for testing monitoring

See attached EEM file to generate CISCO-ENVMON-MIB traps for temperature.

HTH,

Dan

View solution in original post

8 REPLIES 8
Highlighted
Advisor

Re: Generate SNMP traps for testing monitoring

You can configure a switch to generate a trap on interface changes. Then you can plug/unplug a cable to test traps.

Hope it helps.

Highlighted
Beginner

Re: Generate SNMP traps for testing monitoring

Hello,

Thank you for your answer, unfortunately this isn't what I was looking for.

My idea was to generate fake-positives traps to test efficiently our NMS station.

Traps that I would like to tests would be Temperature, Fan, Board.

I found that chaning the yellow level of the temp sensor to the lower threshold can provide some start point, but I would like to ensure when a real event arrives that my NMS will react accordingly.

Thanks

Highlighted
Beginner

Re: Generate SNMP traps for testing monitoring

You can generate fake sys logs very easy using TCL but you would have to know the content of the message.

Sent from Cisco Technical Support iPad App

Highlighted
Beginner

Re: Generate SNMP traps for testing monitoring

Hello,

Thank you for your message jepalmer,

But could be more precise? I would be really interested to know the process to implement that.

I guess by looking at the MIB we can track down the content of the message,

Thank you for you feedback,

Regards

Highlighted
Beginner

Re: Generate SNMP traps for testing monitoring

Check out this site

http://wiki.nil.com/Generating_Syslog_messages_from_Tclsh

Sent from Cisco Technical Support iPad App

Highlighted
Beginner

Re: Generate SNMP traps for testing monitoring

Sorry I see you wanted traps, not sys logs my bad, for that try this link https://supportforums.cisco.com/docs/DOC-11745

Sent from Cisco Technical Support iPad App

View solution in original post

Highlighted
Cisco Employee

Re: Generate SNMP traps for testing monitoring

See attached EEM file to generate CISCO-ENVMON-MIB traps for temperature.

HTH,

Dan

View solution in original post

Highlighted
Beginner

Re: Generate SNMP traps for testing monitoring

Thank you very much, I found what I wanted, regards