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.
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.