cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
2065
Views
0
Helpful
1
Replies

Process show commands with EEM

Aleksei.Zjabkin
Level 1
Level 1

Hi all,

Im newbie in EEM, but using it in on of my projects in a basic style:

syslog or ip sla tracking events

set actions and some basics if/else...

I dont know how I lived without EEM, its awesome.

I need to do some advanced inspection of show commands output, like taking some strings from "show ip route", "show ip ospf" and so on, compare them and do some actions based on result.

Can anyone show me some simple example, with filtering IP address of the DR from "show ip ospf neighbor", comparing it with router-id from the "show ip ospf interface" and make some action based on the result. It would be very useful for me.

Also documentation for beginners would be appreceated.

Best regards,

Aleksei 

1 Reply 1

Joe Clarke
Cisco Employee
Cisco Employee

Sorry, I missed this one originally.  There are a lot of examples in this community that talk about parsing show command output.  I don't know of any OSPF-specific ones off the top of my head, but look at examples like:

https://supportforums.cisco.com/thread/2238284?tstart=0

https://supportforums.cisco.com/thread/2241567?tstart=0

You'll need to come up with regular expressions that match what you want from the output of the OSPF commands.  I don't have OSPF output handy to show any relevant examples, but hopefully the two I mentioned will be of some help.

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: