06-26-2009 06:00 AM - edited 03-04-2019 05:15 AM
Hi,
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?
Thanks.
06-26-2009 07:07 AM
Hello Kevin,
you need to enable
conf t
ip route profile
see
http://www.cisco.com/en/US/docs/ios/iproute/command/reference/irp_pi1.html#wp1012879
later you can check with
sh ip route profile
Hope to help
Giuseppe
06-26-2009 08:42 AM
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?
Thanks.
06-26-2009 08:56 AM
If your IOS supports it, you may look into EEM
You may need some customization and maybe rely on the MIB for that kind of tracking.
HTH,
__
Edison.
06-26-2009 09:10 AM
This can be done with Perl/Expect scripting in less ten minutes.
06-26-2009 09:17 AM
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?
06-26-2009 09:26 AM
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.
06-26-2009 09:36 AM
Thanks Cisco24x7. I will give RANCID a try.
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