09-11-2013 06:53 PM - edited 03-03-2019 07:10 AM
Hi ,
I have the track objects configured as "boolean or" on my router. I want to configure to send SNMP traps when the "track 202" is down.
I know we can configure SNMP traps for IP SLA. Can we configure for the track as well ?. Below is the track CONFIG.
track 200 rtr 200 reachability
delay down 12
track 201 rtr 201 reachability
delay down 12
track 202 list boolean or
object 200
object 201
Thanks
09-12-2013 09:45 AM
Hi,
if your router supports EEM, you could use a simple applet which is triggered by the tracking's syslog messages:
%TRACKING-5-STATE: 202 list boolean or Up->Down
event manager applet TRACKING
event syslog pattern " 202 list boolean or Up"
How to send a Custom SNMP trap using EEM: https://supportforums.cisco.com/docs/DOC-11745
Hope that helps
Rolf
09-12-2013 08:30 PM
Hi Rolf,
Thanks for the information. It helped me.
I have configured the trigger event to use the track instead insted of the syslog. And it send the traps to the server.
sysUpTime.0 = 1805405563
snmpTrapOID.0 = cEventMgrMIB.0.2
ceemHistoryEventEntry.2.3 = 211
ceemHistoryEventEntry.3.3 = 0
ceemHistoryEventEntry.4.3 = 0
ceemHistoryEventEntry.5.3 = 0
ceemHistoryEventEntry.6.3 =
ceemHistoryEventEntry.7.3 = applet: TRACK_SNMP_TRAP
ceemHistoryEventEntry.9.3 = 0
ceemHistoryEventEntry.10.3 = 0
ceemHistoryEventEntry.11.3 = DOWN
Cheers!
Win
09-13-2013 02:10 AM
Hi Win,
thanks for the feedback.
I have configured the trigger event to use the track instead insted of the syslog.
Great, that's even better! The IOS I've tested with didn't support the EEM event track option, so I found a workaround using the syslog-message.
Regards
Rolf
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