03-06-2018
06:42 AM
- last edited on
03-25-2019
02:37 PM
by
ciscomoderator
Hi,
I’m working on automatically clearing inaccessible routes from show ip eigrp topology | I In command.
so is there any expert EEM script that can run show ip eigrp topology | I In , once we have output , if there are any inaccessible I need to clear the particular routes alone.
Is there any automation script for that
03-06-2018 03:49 PM
Hello,
Do you have a script you are working with that isn't working? If you want to post it, I would be happy to take a look and see if I can make improvements. Thanks!
03-06-2018 08:03 PM
03-07-2018 05:12 AM
Hello,
I would think this would be possible. The variable $_cli_result stores the output of the last command then you could regex it to see if something exists. For example, the below would check to see if this mac address exists in the arp table
action 1 cli command "show ip arp | in aaaa.aaaa.aaaa" action 2 regexp ".*(ARPA).*" $_cli_result
Hope that helps!
03-07-2018 11:09 PM
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