Skip to content

Commit de3080d

Browse files
committed
Flesh out the README a bit.
1 parent c7424ad commit de3080d

File tree

1 file changed

+31
-4
lines changed

1 file changed

+31
-4
lines changed

eem_configdiff_to_spark/README.md

Lines changed: 31 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,25 @@
11
# EEM: Config Diff to Cisco Spark
22

3-
An EEM+Python policy that pushes config change diffs to Spark
3+
An EEM+Python policy that pushes config change diffs to Spark.
44

55
![](spark_notice1.png)
66

77
## Setup
88

9-
This script requires the following EEM environment variables to be defined:
9+
This script requires the IOS-XE _guestshell_ feature. To enable guestshell, configure:
10+
11+
```
12+
iox
13+
```
14+
15+
Then type the following in `EXEC` mode:
16+
17+
```
18+
guestshell enable
19+
```
20+
21+
Next, define the following EEM environment. Be sure *NOT* to put quotes around the variable
22+
values:
1023

1124
* `spark_token` : Bearer token for your Spark user/bot
1225
* `spark_room` : Spark room name to which messages will be sent
@@ -15,6 +28,20 @@ This script requires the following EEM environment variables to be defined:
1528
event manager environment spark_token Bearer 1234abd...
1629
event manager environment spark_room Network Operators
1730
```
18-
31+
Once the environment variables have been defined, copy the script to the EEM user policy
32+
directory. If you have not defined an EEM user policy directory yet, a good choice is
33+
to create a directory called `flash:/policies` in which to store EEM policies. Once
34+
the directory has been created, configure:
35+
36+
```
37+
event manager directory user policy flash:policies
38+
```
39+
40+
Once your policy has been copied into that directory, register it with the following
41+
command:
42+
43+
```
44+
event manager policy sl_config_diff_to_spark.py
45+
```
1946
20-
47+
Once configuration changes start to happen, check your specified Spark room for updates.

0 commit comments

Comments
 (0)