Showing results for 
Search instead for 
Did you mean: 

TCL script to send router configuration


I have been tasked to write a TCL script which will run every 30 days and send out the information below:

   sh ver

   sh Inv

   sh run

   sh config

Unfortunately a good pile of our routers will not have access to a TFTP server for security reasons so I can't send the command output directly to the server using this protocol.

We are running IOS versions as old as 11.2 up to the latest.

Could anyone point me towards a solution where I could somehow send data from these routers to a server in my network? I had thought about maybe trying to redirect this output into a syslog message, but didn't have any luck finding examples, plus I would have to shorten each message into multiple syslog entries in order to get all of the data to fit.

Thanks for your help!


1 Reply 1

Collin Clark

Would an email be ok? There's an example script on how to send an email when saving the config. You would just have to tweak it to run every 30 days instead.

Sent from Cisco Technical Support Android App

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:

Recognize Your Peers