cancel
Showing results for 
Search instead for 
Did you mean: 
cancel

EEM script to collect logs from the ASR9000 router

634
Views
0
Helpful
0
Comments

EEM script to collect logs from the ASR9000 router and save the logs to harddisk:

Problem:

During any issue, it takes a lot of time to collect the logs manually from the router. This actually delays the issue resolution and may impact the production nodes for a longer duration.

Solution:

We can use an EEM script to collect the logs. The EEM script can run in the background and allow for a parallel troubleshooting of the issue.

Router config:

event manager directory user policy harddisk:/scripts/

event manager policy commands.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

CreatePlease to create content
Content for Community-Ad
July's Community Spotlight Awards