Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Computing > Cisco > Automating Cisco switch configuration changes

Reply
Thread Tools

Automating Cisco switch configuration changes

 
 
Dmitry
Guest
Posts: n/a
 
      02-05-2004
Hello,


Problem:

I am currently supporting about one hundred Cisco 2950 switches and
anytime a configuration change needs to be made I must touch every one
of those switches.


Solutions?

I don't have access to CiscoWorks.

Can a script be used to SSH into a switch, login, execute IOS
commands, exit, and then repeat the process for the next switch? Maybe
create a text file with all the IP addresses of the switches and have
the script call the text file for the next IP.

I've heard that "Expect" is one option, but I am not a script guru so
any examples would be really helpful.

Can this be accomplished with a DOS batch file?



Thank you in advance.

Dmitry
 
Reply With Quote
 
 
 
 
Walter Roberson
Guest
Posts: n/a
 
      02-05-2004
In article <(E-Mail Removed) >,
Dmitry <(E-Mail Removed)> wrote:
:Can a script be used to SSH into a switch, login, execute IOS
:commands, exit, and then repeat the process for the next switch?

Yes, 'expect' is good for that.

However, there are other ways. Set up a tftp server that has the
master configs for the switches.

There is a way you can use SNMP to trigger a tftp upload of the
configuration onto the switch. (Might not be supported on all switches
and the exact SNMP details varies according to IOS version.)
--
"Infinity is like a stuffed walrus I can hold in the palm of my hand.
Don't do anything with infinity you wouldn't do with a stuffed walrus."
-- Dr. Fletcher, Va. Polytechnic Inst. and St. Univ.
 
Reply With Quote
 
 
 
 
Dave Keith
Guest
Posts: n/a
 
      02-05-2004
Have a look at CatTools, available from www.kiwisyslog.com .

Dave

"Dmitry" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed) om...
> Hello,
>
>
> Problem:
>
> I am currently supporting about one hundred Cisco 2950 switches and
> anytime a configuration change needs to be made I must touch every one
> of those switches.
>
>
> Solutions?
>
> I don't have access to CiscoWorks.
>
> Can a script be used to SSH into a switch, login, execute IOS
> commands, exit, and then repeat the process for the next switch? Maybe
> create a text file with all the IP addresses of the switches and have
> the script call the text file for the next IP.
>
> I've heard that "Expect" is one option, but I am not a script guru so
> any examples would be really helpful.
>
> Can this be accomplished with a DOS batch file?
>
>
>
> Thank you in advance.
>
> Dmitry



 
Reply With Quote
 
Dmitry
Guest
Posts: n/a
 
      02-09-2004
Thank you for the helpful information.

Dmitry
 
Reply With Quote
 
Pete Mainwaring
Guest
Posts: n/a
 
      02-10-2004
http://www.velocityreviews.com/forums/(E-Mail Removed) (Dmitry) wrote in message news:<(E-Mail Removed). com>...
> Thank you for the helpful information.
>
> Dmitry


You could also have a look at http://home.wxs.nl/~ruurdb/

Ruurd Beerstra's IVT has very good scripting capabilities.

Pete
 
Reply With Quote
 
 
 
Reply

Thread Tools

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
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
automating username/password when ssh to cisco router BertieBigBollox@gmail.com Cisco 24 04-21-2008 08:05 PM
trunking between Cisco Catalyst 500 switch and other type of switch jshubo@yahoo.com Cisco 3 01-19-2008 12:10 AM
why cisco 2950 switch is called as catalyst switch mohitbakre Cisco 3 12-10-2006 02:25 AM
Pawan Deshpande - Need Help Automating Configuration of Routers and Firewalls? aditya_r_d@yahoo.com Perl Misc 0 01-27-2005 09:39 AM
Automating switch/router config backups sensei Cisco 6 12-07-2004 07:07 PM



Advertisments