Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 

EEM script to log committed configs to syslog

EEM script to log committed configs to syslog

 

Problem:

Whenever a config commit is performed, we log the commit id to the syslog. Since we support just 100 commit-id details in the commit database, the details of old commits are lost. Also, it takes 2 steps to get the configs that was done at a specific time, which is quite time consuming incase we want to know the details of configs done at multiple timestamps.

Solution:

Log the committed configs to syslog whenever a config is committed. It can be done using a EEM script

Router's config:

event manager directory user policy harddisk:/scripts/
event manager policy commit_syslog.tcl username event_manager_user persist-time 3600

username event_manager_user

group root-system

group cisco-support

!

aaa authorization commands eem-method none

aaa authorization eventmanager default local

 

vty-pool eem 100 105 line-template eem-template

  line template eem-template

authorization commands eem-method

More Scripts: EEM Script Repository

1049
Views
0
Helpful
0
Comments