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

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

For an introduction to the new site, click here. If you'd prefer to explore, try our test area to get started. And see here for current known issues.

New Member

Process show commands with EEM

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
Cisco Employee

Process show commands with EEM

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.

788
Views
0
Helpful
1
Replies