Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

scheduling TFTP

Status
Not open for further replies.

rn4it

MIS
Nov 7, 2002
671
CA
Hi,
Is there a way to schedule a TFTP upload from the router to a TFTP server, so the router can dump it's config?[lightsaber]
 
I have a book (Stealing the Network) that has the following shell script for *nix:

Code:
if [ -z $3 ]
then
   echo "Usage: $0 routername desthost write-community"
   exit 1
fi

FILENAME="$1-config"

echo "Getting config from $1 to $2"
touch /tftpboot/${FILENAME}
chmod 666 /tftpboot/${FILENAME}
snmpset -v1 $1 $4 .1.3.6.1.4.1.9.2.1.55.$2 s $FILENAME

an example command line is:
./getconfig.sh clustrtr 194.95.9.11 'private'

So start a TFTP service on a linux box somewhere with a root directory of /tftpboot and set up a CRON job to run this command for each of your routers.
 
Thanks longneck, we have some Unix boxes so this may be feasible. I was hoping that there would be something native to the Cisco IOS.
thanks again
 
You could also have a look at the SATelnet program (part of ServersAlive, It runs on windows and lets you script a telnet session.

I am also looking at this product: - it is supposed to be able to manage your configs. Can't vouch for it though as I haven't had time to install it yet.

HTH,
Michael.
 
KIWI CatTools is an inexpensive utility that runs on Windows functions quite nicely to download (archive) your CISCO configs.

We currently use it to backup our CISCO configs daily on 150 devices (and growing).

The free version of CatTools is limited to 2 devices while using the automated scheduler to backup CISCO configs. While the manual backup of configs permits you to backup the configs of an unlimited amount of devices.

The purchased version of this software is approximately $30. I think it's worth the investment.
 
Thanks Frenchie2069 and Dpinard, I just downloaded it and will begin playing with it. [cheers]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top