cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1658
Views
0
Helpful
3
Replies

EEM script to check running-config changes with startup-config after reload

Saurabh Bassi
Level 1
Level 1

I am trying to track a bug which causes certain CLIs to disappear from the running-config after we reload the router.

Those CLIs were saved in startup-config before reloading the router.

Is there a EEM to compare running-config with startup-config line-by-line after reloading the router and syslog the lines which are missing from the running-config ?

1 Accepted Solution

Accepted Solutions

Joe Clarke
Cisco Employee
Cisco Employee

You could do something simple like:

event manager applet compare-config

 event timer cron cron-entry "@reboot"

 action 1.0 cli command "enable"

 action 2.0 cli command "show archive config diff nvram:startup-config system:running-config"

 action 3.0 mail to "user@company.com" from "user@company.com" server "10.1.1.1" subject "Config diffs" body "$_cli_result"

View solution in original post

3 Replies 3

Joe Clarke
Cisco Employee
Cisco Employee

You could do something simple like:

event manager applet compare-config

 event timer cron cron-entry "@reboot"

 action 1.0 cli command "enable"

 action 2.0 cli command "show archive config diff nvram:startup-config system:running-config"

 action 3.0 mail to "user@company.com" from "user@company.com" server "10.1.1.1" subject "Config diffs" body "$_cli_result"

Thank you Joe.

What does this command do ?

event timer cron cron-entry "@reboot"

and how does it accomplish the task after reboot ?

This schedules the EEM policy to run after each reboot.

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: