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

EEM applet not trigers

adir868
Level 1
Level 1

Hi,
I'm trying to configure on Nexus 9000 EEM Scripting by matching on syslog pattern.

the syslog is about interface is down, this is the syslog i get when there is violation - %ETHPORT-5-IF_DOWN_LINK_FAILURE

and what I'm configured:

event manager applet port-shut
event syslog pattern '%ETHPORT-5-IF_DOWN_LINK_FAILURE: Interface Ethernet1/3 is down'
action 1 cli line "enable"
action 2 cli line "Configure terminal"
action 3 cli line "Interface Ethernet1/3"
action 4 cli line "shut"
action 5 cli line "end"
action 6 cli line "exit"
action 7 syslog msg “Interface Eth1/3 will be Disabled by script"

 

When I recommend disconnecting the interface the Triger is not working, I can see the %ETHPORT-5-IF_DOWN_LINK_FAILURE in logs but the EEM scripting is not working. What am I doing wrong?

 

1 Reply 1

balaji.bandi
Hall of Fame
Hall of Fame

try with " quote :

event syslog pattern "%ETHPORT-5-IF_DOWN_LINK_FAILURE: Interface Ethernet1/3 is down"

is the nexus have AAA config then you need use authorisation bypass

Try run manually

event manager run port-shut

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: