#1
|
|||
|
|||
Need script to use existing preconfigured sessions
I am running the latest version of SecureCRT and need some urgent help with a VBS script. We have over 300 sessions and they are all preconfigured with logging (That includes the use of variables for session name, host, month, day, year and time). All sessions use the same ssh login and enable password for our Cisco devices.
What I desperately need is a script that will launch each one of these sessions, login, then jump into “Enable” mode and execute a “show run” and a “wr mem”. (Using our preconfigured sessions rather than a txt file with IP addresses will give us our logging we need) We are going to be powering down the entire network and need to get a quick easy backup and save all current configs to memory. I saw some scripts online that would allow me to use a file that has the ip addresses to connect too and perform a show run, but I need to have a script use my preconfigured SecureCRT sessions so that I get the same type of logging. I am really under the gun on this one as our power down is tomorrow. ANY help will be greatly appreciated! |
#2
|
|||
|
|||
Hello boothrobertl,
I have attached an example script that reads in sessions from a file, connects to each one, sends a series of commands, then disconnects from the session and moves on to the next session. Please see the comments in the example script for the format and expected location of the "SessionList.txt" file. Will the attached example script help you to accomplish your objective?
__________________
Thanks, --Brenda VanDyke Software Technical Support support@vandyke.com (505) 332-5730 |
![]() |
Thread Tools | |
Display Modes | Rate This Thread |
|
|