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. And see here for current known issues.

New Member

EEM, traceroute

I'm using EEM to check the results of traceroutes and in the event I do not see an IP range in the traceroute results, I take a particular action. I am able to specify a particular address in set hop_found(192.168.108.153) and search for it. My issue is that I do not care about the last 2 octets of the IP address. Meaning, if I see the 192.168 as a next hop, I consider it a successful tracert. How can I specify only 192.168 to be searched for in the traceroute output.

Below is working code.

1 ACCEPTED SOLUTION

Accepted Solutions
Cisco Employee

Re: EEM, traceroute

I think I understand that you just want to match the first two octets in a traceroute hop.  If that is the case, then this code should work for you.

2 REPLIES
Cisco Employee

Re: EEM, traceroute

I think I understand that you just want to match the first two octets in a traceroute hop.  If that is the case, then this code should work for you.

New Member

Re: EEM, traceroute

Joe,

Hey.....that's it. Exactly what I was looking for. I appreciate the help.

Mark

414
Views
0
Helpful
2
Replies
CreatePlease login to create content