How to Monitor Routing Table Change

Unanswered Question
Jun 26th, 2009
User Badges:


Is there a mechanism built-in to IOS (syslog, SNMP, etc) that allows us to monitor any route addition or deletion in the routing table?


  • 1
  • 2
  • 3
  • 4
  • 5
Overall Rating: 0 (0 ratings)
Loading. Fri, 06/26/2009 - 08:42
User Badges:

Thanks Guiseppe.

However, this feature does not notify me what's or when route is added or deleted. This command does not count deletion, only counts addition.

Anyone else knows a way to monitor routing table changes? What's added and what's deleted and notify the NOSC via SNMP or syslog?


cisco24x7 Fri, 06/26/2009 - 09:10
User Badges:
  • Silver, 250 points or more

This can be done with Perl/Expect scripting in less ten minutes. Fri, 06/26/2009 - 09:17
User Badges:

Unfortunately I don't know how to do Perl/Expect scripting.

Now I am looking at RANCID to perform "show ip route" and email me the difference. That could be another way to do it.

I just can't believe there are no easy way to monitor routing table. Don't people monitor their routing table changes?

cisco24x7 Fri, 06/26/2009 - 09:26
User Badges:
  • Silver, 250 points or more

RANCID is good too. I used it. RANCID also uses Perl language as well.

The reason you want to use Perl customization is that even if routing does not change but you have routing flap, the perl script can detect the differences in the timestamp. You can write a script so it can send you email even when routing table does not change but flapping as well. Fri, 06/26/2009 - 09:36
User Badges:

Thanks Cisco24x7. I will give RANCID a try.


This Discussion