Hello everyone,
This is supposed to be easy question which always results to be a more complex one. Since i'm not an expert doing scripts on SW, I've decided to come to this community looking for help.
My idea is within script management, design a script which will go to a hundred of devices and download the IOS from a ftp server.
It has the following lines:
string @pause='${Delay:1200}'
copy tXXXXXX/.../isr4300-universalk9.16.06.07.SPA.bin bootflash:
isr4300-universalk9.16.06.07.SPA.bin
@pause
conf t
boot system flash isr4300-universalk9.16.06.07.SPA.bin
exit
wr
I've seen somewhere you can define a delay, that's why I placed the variable "@Pause" with a delay of 20 min, my timeout on devices are 30 min. Within the 20 mins I do expect that my router downloads the IOS from my TFTP server.
But for some reasons, after these 20 mins, it got a connection refuse. I can see within router log that SW goes to the router and execute the command, so there is no connection refused after all.
I don't know if the problem comes because it has to wait a bit more after download the IOS. No clue to be honest.
Anybody has tried this? any ideas how to solve this?
Thanks!