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

SNMP traps for tracking objects

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

3 REPLIES

SNMP traps for tracking objects

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

Community Member

SNMP traps for tracking objects

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

SNMP traps for tracking objects

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

1708
Views
4
Helpful
3
Replies
CreatePlease to create content