You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is an example Python script utilizing EEM integration.
4
+
5
+
The example EEM is below:
6
+
event manager applet INTERFACE-DOWN
7
+
event syslog pattern "LINEPROTO-5-UPDOWN: Line protocol on Interface GigabitEthernet0/0, changed state to down"
8
+
action 0.0 cli command "en"
9
+
action 1.0 cli command "guestshell run python EEM-interface-routes.py"
10
+
11
+
As you can see, this EEM policy named "INTERFACE-DOWN" looks for a syslog pattern. In this example case, it is a syslog pattern for a specifc interface going down. When EEM sees this, it triggers an exec CLI that executes the onbox Python script named "EEM-interface-routes.py"
12
+
13
+
No verification has been built into this, but the script could be extednded as well.
14
+
15
+
# requirements
16
+
-- IOS-XE running >/= 16.5.1 also enabled for GuestShell
0 commit comments