1
1
# EEM: Config Diff to Cisco Spark
2
2
3
- An EEM+Python policy that pushes config change diffs to Spark
3
+ An EEM+Python policy that pushes config change diffs to Spark.
4
4
5
5
![ ] ( spark_notice1.png )
6
6
7
7
## Setup
8
8
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:
10
23
11
24
* ` spark_token ` : Bearer token for your Spark user/bot
12
25
* ` 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:
15
28
event manager environment spark_token Bearer 1234abd...
16
29
event manager environment spark_room Network Operators
17
30
```
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
+ ```
19
46
20
-
47
+ Once configuration changes start to happen, check your specified Spark room for updates.
0 commit comments