VBS script to backup Cisco configs
DComTalk.com Forum Index DComTalk.com
Discussion of VoIP, VPN, Video Conferencen, DSL and other data commucations.
 
 FAQFAQ   MemberlistMemberlist     RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
 
Google
 
Web dcomtalk.com
VBS script to backup Cisco configs

 
Post new topic   Reply to topic    DComTalk.com Forum Index -> Cisco
Author Message
thefunnel@aol.com
Guest





Posted: Thu Dec 01, 2005 5:21 pm    Post subject: VBS script to backup Cisco configs Reply with quote

Hello,

I need some assistance on a script I am writing. Its purpose is to
backup running-config files from Cisco switches via telnet and TFTP.

I need to address the following problems...

1. All the DOS windows open at once, I would like them to open in
order.
2. All the uploaded file names are identical. Hence the previous ones
are overwritten
3. I would like the script to read from a text file of IPs

Any pointers in the right direction would be appreciated.

Many thanks.

@echo off
echo set sh=WScript.CreateObject("WScript.Shell")>telnet.vbs
echo WScript.Sleep 500>>telnet.vbs
echo sh.SendKeys "password">>telnet.vbs
echo sh.SendKeys "~">>telnet.vbs
echo sh.SendKeys "en">>telnet.vbs
echo sh.SendKeys "~">>telnet.vbs
echo sh.SendKeys "password">>telnet.vbs
echo sh.SendKeys "~">>telnet.vbs
echo sh.SendKeys "copy running-config tftp://192.168.0.1">>telnet.vbs
echo sh.SendKeys "~">>telnet.vbs
echo sh.SendKeys "~">>telnet.vbs
echo sh.SendKeys "~">>telnet.vbs
echo sh.SendKeys "exit">>telnet.vbs
echo sh.SendKeys "~">>telnet.vbs

start /realtime telnet.exe 192.168.0.10 (first device)
cscript.exe //nologo telnet.vbs

start /realtime telnet.exe 192.168.0.11 (second device)
cscript.exe //nologo telnet.vbs

del telnet.vbs
Back to top
garethb
Guest





Posted: Mon Dec 12, 2005 12:04 am    Post subject: Re: VBS script to backup Cisco configs Reply with quote

Hi

I don't know how to do this, but there is a great freeware tool which
achieves the same http://www.kiwisyslog.com/cattools2.htm I works really
well for me.

Regards
--
Gareth Brown | Consultant | 1E Ltd | www.1e.com

<thefunnel@aol.com> wrote in message
news:1133441049.941398.288980@g14g2000cwa.googlegroups.com...
Quote:
Hello,

I need some assistance on a script I am writing. Its purpose is to
backup running-config files from Cisco switches via telnet and TFTP.

I need to address the following problems...

1. All the DOS windows open at once, I would like them to open in
order.
2. All the uploaded file names are identical. Hence the previous ones
are overwritten
3. I would like the script to read from a text file of IPs

Any pointers in the right direction would be appreciated.

Many thanks.

@echo off
echo set sh=WScript.CreateObject("WScript.Shell")>telnet.vbs
echo WScript.Sleep 500>>telnet.vbs
echo sh.SendKeys "password">>telnet.vbs
echo sh.SendKeys "~">>telnet.vbs
echo sh.SendKeys "en">>telnet.vbs
echo sh.SendKeys "~">>telnet.vbs
echo sh.SendKeys "password">>telnet.vbs
echo sh.SendKeys "~">>telnet.vbs
echo sh.SendKeys "copy running-config tftp://192.168.0.1">>telnet.vbs
echo sh.SendKeys "~">>telnet.vbs
echo sh.SendKeys "~">>telnet.vbs
echo sh.SendKeys "~">>telnet.vbs
echo sh.SendKeys "exit">>telnet.vbs
echo sh.SendKeys "~">>telnet.vbs

start /realtime telnet.exe 192.168.0.10 (first device)
cscript.exe //nologo telnet.vbs

start /realtime telnet.exe 192.168.0.11 (second device)
cscript.exe //nologo telnet.vbs

del telnet.vbs
Back to top
 
Post new topic   Reply to topic    DComTalk.com Forum Index -> Cisco All times are GMT
Page 1 of 1

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum




VoIP Solutions: Telephone Systems Electronics Satellite TV Tech & Gadgets
Powered by phpBB