cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
17021
Views
10
Helpful
8
Replies

Generate SNMP traps for testing monitoring

holzhirt1
Level 1
Level 1

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

2 Accepted Solutions

Accepted Solutions

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

Dan Frey
Cisco Employee
Cisco Employee

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

HTH,

Dan

View solution in original post

8 Replies 8

Collin Clark
VIP Alumni
VIP Alumni

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.

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

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

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

Check out this site

http://wiki.nil.com/Generating_Syslog_messages_from_Tclsh

Sent from Cisco Technical Support iPad App

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

Dan Frey
Cisco Employee
Cisco Employee

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

HTH,

Dan

holzhirt1
Level 1
Level 1

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

Review Cisco Networking products for a $25 gift card