I'm trying to execute an EEM script on a leaf switch when the following syslog message is generated.
LEAF01 %ETHPORT-5-IF_DOWN_LINK_FAILURE: Interface Ethernet1/50 is down (Link failure)
Following is what I have configured
event manager applet linkdown
event syslog pattern "%ETHPORT-5-IF_DOWN_LINK_FAILURE:.*"
action 2 cli python bootflash:script.py
To cause the syslog message, I shut a port on the spine switch connected to the leaf.
The syslog message above is what appears in the leaf.
I'm not sure why EEM is not detecting the syslog message to trigger the script to execute.
Any help would be appreciated.