cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1094
Views
0
Helpful
1
Replies

N9K unable to detect syslog pattern on EEM

dfernandes786
Beginner
Beginner

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.

 

 

1 Reply 1

balaji.bandi
VIP Guru VIP Guru
VIP Guru

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.

 

BB

***** Rate All Helpful Responses *****

How to Ask The Cisco Community for Help

Getting Started

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:

Recognize Your Peers