Question : Cisco Scripting

I have written a script that does a few things that I'd like to implement over 40 routers (All 1700 series). It turns on ip-accounting, adds a snmp server community name and a few other small things. Basdically, I want my script (which I've written) to telnet to device a, perform the commands then telnet to device b and do the same. My scipt also contains a copy to startup config which takes about 20 seconds. Somewhere along the way, my scipt just stops or the commands get stuck for no reason. It's just the same scipt (see below), then telnet. Any ideas? IS there a wait for next prompt command?

log in
en
enable pass
do this
do that
conf t
do this again
do more
exit
copy run start
telnet 1,.2.3.4

log in
en
enable pass
do this
do that
conf t
do this again
do more
exit
copy run start
telnet 1,.2.3.4

Thanks!!

Answer : Cisco Scripting

Hmm sounds like you want the kiwi cat tools.
http://www.kiwisyslog.com/whats_new_cattools.htm
Random Solutions  
 
programming4us programming4us