04-07-2011 08:15 AM - edited 02-21-2020 04:18 AM
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
Solved! Go to Solution.
07-25-2011 06:51 AM
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
07-27-2011 12:36 PM
See attached EEM file to generate CISCO-ENVMON-MIB traps for temperature.
HTH,
Dan
04-08-2011 10:57 AM
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.
04-11-2011 06:21 AM
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
07-21-2011 06:20 AM
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
07-25-2011 06:24 AM
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
07-25-2011 06:38 AM
Check out this site
http://wiki.nil.com/Generating_Syslog_messages_from_Tclsh
Sent from Cisco Technical Support iPad App
07-25-2011 06:51 AM
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
07-27-2011 12:36 PM
08-22-2011 06:09 AM
Thank you very much, I found what I wanted, regards
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide