I'm trying to write a script to push an upgraded IOS out to our 3750 stacks but I'm not having much luck. It appears that the process is timing out as it isn't recognising the lines that are returned by the switch. I've set both the Telnet timeout values to be their maximum of 5 minutes, but when doing a manual test of the commands it took over 8 minutes before it fully completed.
I'm using the following script:
term mon
archive download-sw /overwrite anonymous:@172.30.188.16/.../c3750-ipserviceslmk9-tar.122-55.SE.tar
write
reload
${CR}
From what I can tell looking through the trace logs, the main archive command is being run and the switch is performing the action, but the script timesout before it gets to use write or reload. Can anyone shed some light on what I could change to get this process working ?