Hi,
I have prepared a script for of IOS upgrade activity. Please review and give me your suggestions/scope for improvement, etc
I have prepared the scirpt for pre-upgrade tasks only as of now.
https://drive.google.com/file/d/17iSDtyTp48zIZPi41C-UXXdS3nXck6yY/view?usp=sharing
PRE-UPGRADE TASKS:
-
Check the IOS version running on device currently. If necessry image is running, skip further steps
-
Assuming ios need to be upgraded, check if necessary image is already there in flash or not
-
If image is not present, check if sufficient space is available
-
Initiate copying of ios image
-
Ensure image has been successfully copied and do MD5 verification
-
Set boot statement
-
write to memory
IOS UPGRADE TASK:
-
Ensure boot statement is set
-
take backup
-
write memory
-
reload
-
wait for 30 minute and check if image has upgraded