01-13-2011 12:16 PM
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
01-13-2011 11:04 PM
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.
01-14-2011 02:09 AM
Hi Joseph,
Thanks a lot, i will try this out.
Kind Rgds
Guan
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide