QuestionQ43

Device-Level Network Automation

An engineer needs to automatically save the running configuration whenever a configuration change is logged on a Cisco IOS XE device by using EEM. Create an EEM applet that matches the configuration-change syslog and runs the required CLI commands to write memory. Drag the code snippets into the boxes to build the artifact. Not every option is used.

Drag & Drop
event manager  SAVE_ON_WRITE
    "CONFIG_I"
action 1.0 cli command "enable"
action 2.0 cli command "write memory"
Explanation

Cisco IOS XE EEM applets are declared with event manager applet <name>. A syslog event detector uses event syslog pattern <regular-expression>; CONFIG_I is the applicable configuration syslog pattern. The CLI actions enter privileged EXEC mode and save the running configuration with write memory.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!