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

Welcome to Cisco Support Community. We would love to have your feedback.

For an introduction to the new site, click here. And see here for current known issues.

New Member

Monitoring changes to static routes

I've recently begun utilizing ip sla monitoring and track statements on my routers to watch the availability of the next hop past my firewall. If the next hop is not available, the static route is updated per the following:

ip route track 10

ip route 200 track 20

So when all is well and my local ISP is reachable, the route points to my local firewall If my local ISP is not reachable, the route points to a different firewall located at Because it has a higher administrative distance (200) if the primary comes back online, the primary takes over.

The question I have is there a way for me to send an SNMP trap or log to a syslog server if there is a change in what is considered to be the route?

Searching these forums I learned that OID will have all my route entries in it so I might be able to gather this from some sort of script but my preference would be to send a syslog or SNMP trap.

IOS is Version 12.4(4)T1

Thanks for your input.


Re: Monitoring changes to static routes


Looks like you can enable traps for RTR events:

R1(config)#snmp-server enable traps ?

(output removed)

rtr Enable SNMP Response Time Reporter traps

BTW, the output is from a 2611 running version 12.3(17a).

Pls. rate all helpful posts.


New Member

Re: Monitoring changes to static routes

Thanks for the reply. I'll dig into this tomorrow.

I've also been able to pull some information via a snmp command:

[matt@fc4]$ snmpwalk -c ######### -v1 | awk -F: '{print $4 }'

CreatePlease login to create content