cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
868
Views
0
Helpful
2
Replies

a simple EEM script is needed

guan
Level 1
Level 1

Hi Guys,

Does someone have a easy to use example tcl for "IOS-XR"  which does the following:

if syslog says "xxx" collect the following show command and save it on the local disk.

many thanks

Guan

2 Replies 2

Joe Clarke
Cisco Employee
Cisco Employee

Here's an example from IOS, but the exact same code will work on IOS-XR.  This script will react to a specific syslog pattern, run the "show proc cpu sorted 5min" command, then save the output to disk0:/output.txt.  I think this should be relatively straightforward to modify to suit your needs.

Hi Joseph,

Thanks a lot, i will try this out.

Kind Rgds

Guan

Review Cisco Networking for a $25 gift card