Welcome to the VanDyke Software Forums

Join the discussion today!


Go Back   VanDyke Software Forums > Scripting

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 06-01-2017, 12:19 PM
trebor11584 trebor11584 is offline
Registered User
 
Join Date: Jun 2017
Posts: 3
Script for pushing IOS image

Hi,

I hope anyone here can share a script to use in pushing IOS to multiple devices. Here's the scenario, I am trying to push IOS image to 900 devices and implement the boot system configuration to all of it. My requirements are below.

1. Devices are composed of 7 different Cisco router models and all must have the same IOS version.

2. I also need to update the boot system config, so I need to delete the existing boot system config and replace it with the one that has the latest IOS version.

3. There are some devices that don't have boot system config configured so I need to put the configuration.

4. Delete all flash content, only the latest IOS must be present in the flash.

Thank you,
Reply With Quote
  #2  
Old 06-01-2017, 01:02 PM
bgagnon bgagnon is offline
VanDyke Technical Support
 
Join Date: Oct 2008
Posts: 4,145
Hi trebor11584,

What version of SecureCRT are you using?

On what OS/platform?

What protocol do you use to connect to the devices?

Perhaps there is a Cisco whiz in the forum community that can help you with your more specific requirements, but if you don't get a response, you might check out the example scripts provided here.

This one, specifically, illustrates connecting, sending commands and logging output.
__________________
Thanks,
--Brenda

VanDyke Software
Technical Support
support@vandyke.com
(505) 332-5730

Last edited by jdev; 11-09-2017 at 12:29 PM.
Reply With Quote
  #3  
Old 06-01-2017, 01:07 PM
trebor11584 trebor11584 is offline
Registered User
 
Join Date: Jun 2017
Posts: 3
bgagnon,

I am using version 7 and I am connecting via telnet.
Reply With Quote
  #4  
Old 06-01-2017, 02:27 PM
bgagnon bgagnon is offline
VanDyke Technical Support
 
Join Date: Oct 2008
Posts: 4,145
Hi trebor11584,

Thanks for the info.

Windows version 7? Or SecureCRT v7?

In either case, most of our script examples illustrate SSH connections, if you hope to also make the connection in the script.

As far as the tasks to be done on the remote host, that sounds like it will just be a series of Send() and WaitForString() calls. You might start by reviewing the VBScript scripting manual on our website here.

You also might try using the script recorder (Script menu / Start Recording Script) to see how much of the interaction with the remote is recordable.
__________________
Thanks,
--Brenda

VanDyke Software
Technical Support
support@vandyke.com
(505) 332-5730
Reply With Quote
  #5  
Old 06-01-2017, 02:30 PM
trebor11584 trebor11584 is offline
Registered User
 
Join Date: Jun 2017
Posts: 3
Quote:
Originally Posted by bgagnon View Post
Hi trebor11584,

Thanks for the info.

Windows version 7? Or SecureCRT v7?

In either case, most of our script examples illustrate SSH connections, if you hope to also make the connection in the script.

As far as the tasks to be done on the remote host, that sounds like it will just be a series of Send() and WaitForString() calls. You might start by reviewing the VBScript scripting manual on our website here.

You also might try using the script recorder (Script menu / Start Recording Script) to see how much of the interaction with the remote is recordable.
It is Windows 7 and the securecrt version is 7 too. Ok, will take a look at the recorder. When I record, does it generate a script?
Reply With Quote
  #6  
Old 06-01-2017, 02:47 PM
bgagnon bgagnon is offline
VanDyke Technical Support
 
Join Date: Oct 2008
Posts: 4,145
Hi trebor11584,

Yes, when you choose Stop Recording Script from the Script menu, you will be prompted to Save As and at that time, you can choose whether it should be a VB (.vbs) or Python (.py) script.
__________________
Thanks,
--Brenda

VanDyke Software
Technical Support
support@vandyke.com
(505) 332-5730
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 -6. The time now is 06:56 AM.