Skip to content

Commit d4a1e84

Browse files
authored
Update README.md
1 parent 561435e commit d4a1e84

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

EEM-interface-move-routes/README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,12 @@ This is an example Python script utilizing EEM integration.
44

55
The example EEM is below:
66

7-
'''
7+
```
88
event manager applet INTERFACE-DOWN
99
event syslog pattern "LINEPROTO-5-UPDOWN: Line protocol on Interface GigabitEthernet0/0, changed state to down"
1010
action 0.0 cli command "en"
1111
action 1.0 cli command "guestshell run python EEM-interface-routes.py"
12-
'''
12+
```
1313

1414
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"
1515

0 commit comments

Comments
 (0)