EEM, traceroute

Answered Question
Jun 28th, 2010

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.

Attachment: 
Correct Answer by Joe Clarke about 6 years 8 months ago

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.

  • 1
  • 2
  • 3
  • 4
  • 5
Overall Rating: 5 (1 ratings)
Loading.
Correct Answer
Joe Clarke Mon, 06/28/2010 - 23:55

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.

Attachment: 
mruhenkamp Tue, 06/29/2010 - 04:29

Joe,

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


Mark

Actions

This Discussion