cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
965
Views
0
Helpful
2
Replies

EEM, traceroute

mruhenkamp
Level 1
Level 1

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

Joe Clarke
Cisco Employee
Cisco Employee

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.

View solution in original post

2 Replies 2

Joe Clarke
Cisco Employee
Cisco Employee

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.

Joe,

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

Mark

Review Cisco Networking for a $25 gift card