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 linkdownevent 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.
As per i see you are calling python script inside EEM process. this is not good. instead of what you processing you can directly process with EEM script to take action and test.
As per my understand there are some limitaion which may not be good to call inception scripts inside one process.
***** Rate All Helpful Responses *****
How to Ask The Cisco Community for Help
Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: