Skip to content

Commit e785262

Browse files
authored
Update README.md
1 parent deb634c commit e785262

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

EEM-interface-move-routes/README.md

+3-1
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,12 @@
33
This is an example Python script utilizing EEM integration.
44

55
The example EEM is below:
6+
'''
67
event manager applet INTERFACE-DOWN
78
event syslog pattern "LINEPROTO-5-UPDOWN: Line protocol on Interface GigabitEthernet0/0, changed state to down"
89
action 0.0 cli command "en"
910
action 1.0 cli command "guestshell run python EEM-interface-routes.py"
11+
'''
1012

1113
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"
1214

@@ -16,4 +18,4 @@ No verification has been built into this, but the script could be extednded as w
1618
-- IOS-XE running >/= 16.5.1 also enabled for GuestShell
1719

1820
# running
19-
-- onbox
21+
-- onbox

0 commit comments

Comments
 (0)