VanDyke Software Forums

Go Back   VanDyke Software Forums > Scripting
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 09-21-2007, 10:10 AM
mariano mariano is offline
Registered User
 
Join Date: Sep 2007
Posts: 2
How to Save Cisco Config (wr mem)

Hi,

I greatly appreciate your script for backing up Cisco configuration file on vbscript. Could you also provide the vbscript on saving Cisco config (copy run start or wr mem) files?

Thanks
Reply With Quote
  #2  
Old 09-25-2007, 03:06 PM
jjh jjh is offline
VanDyke Customer Support
 
Join Date: Feb 2004
Posts: 672
Hello Mariano.

We don't have any example scripts showing how to backup a
Cisco configuration.

Does anyone else have any examples for Mariano?

Thanks

JJH
Reply With Quote
  #3  
Old 11-01-2007, 09:40 AM
Chaucer Chaucer is offline
Registered User
 
Join Date: Jun 2005
Posts: 52
I'm actually working on such a script. It will go through and map out our cisco network and store the info in an excel file and well as save the configs in a text file.

As far as writing the config to flash on the cisco device:

## Telnet to device - pull value from excel

crt.screen.send "wr mem" & vbcr

## exit device, move pointer to next line in excel file

## rinse and repeat.

Reply With Quote
  #4  
Old 11-28-2007, 08:12 AM
uhsooner uhsooner is offline
Registered User
 
Join Date: Nov 2007
Posts: 6
Sample script to wr mem

Here is a script, along with a sample "seed file" of devices that I have used in the past to issue a wr mem on multiple routers. This script has been updated to resume next on error and will log the results of each attempt to c:\results.txt. An entry in the text file that does not have an error description was completed successully. You can import the text file into Excel and use filters to find any routers that failed. Just change the extension on the wr mem.txt file to wr mem.vbs.

Chris
Attached Files
File Type: txt all devices.txt (110 Bytes, 306 views)
File Type: txt wr mem.txt (2.4 KB, 347 views)
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -7. The time now is 11:05 AM.


copyright 1995-2014 VanDyke Software, Inc.