I am using an object tracker to trigger an EEM applet tobypass a device when the object is not reachable. The bypass is achieved by changing the dot1q encapsulation on the 174 sub-interface to 175, the default encapsulation for this interface is 174.
action 5 syslog msg "Device Bypassed on Gi0/1.174"
action 6 snmp-trap strdata "DEVICE-BYPASSED"
event manager applet UNBYPASS
event track 2 state up
action 1 cli command "enable"
action 2 cli command "config t"
action 3 cli command "int Gi0/1.174"
action 4 cli command "encapsulation dot1q 174"
action 5 syslog msg "Device Unbypassed on Gi0/1.174"
action 6 snmp-trap strdata "DEVICE-UNBYPASSED"
This works as expected except in the case where the tracked object is not reachable on initial router boot, in this case the router doesn’t detect a transition of the tracking object from up -> down and therefore does not execute the associated EEM applet. I attributed this to the router having a default object state of down and tried setting the default state to up using the following line, but this had no effect.
track 2 ip sla 2 reachability
I alsotried changing the object tracking type from reachability to state but did have any effect either.
I was able to get this to work by changing the default encapsulation of the 174 sub-int to 175 but I would prefer not to do this since it may be misinterpreted by the user. Is there another way to accomplish this or is there an IOS bug here?
Hi Christopher, Have you ever managed to resolve this? We're having the same issue when the tracked object remains unreachable/down after router reload. EEM apears to need a track state change to kick in (up->down).
I ended up creating a second object tracker (102 in the below example) that tracks the first object (2 in the below example) such that it is only up when the other is down. This way only one of the 2 object can ever be up at one time and you can trigger the eem applets based on this. Have been using this for several years in a fielded system no issues.
Hi everyone, I would like to thank you in advance for any help you can provide a newcomer like myself!
Im studying the 100-105 book by Odom and am currently on the topic of Port security. I purchased a used 2960 and I'm trying to follow a...
While deploying a number of 18xx/2802/3802 model access points (APs), which run AP-COS as their operating platform. It can be observed on some occasions that while many of their access points were able to join the fabric WLC withou...
I am going to design and build an LAN network under a tunnel underground with long distance between the switches.
I will have 2 Catalyst switches and 8 Industrial IE3000, and they will be connected with fiber.
For now I am planning on use Layer-2 s...