cancel
Showing results forĀ 
Search instead forĀ 
Did you mean:Ā 

Upgrade Cisco Firmware Using Netsight

Upgrade Cisco Firmware Using Netsight

Byron_Morales
New Contributor II
I'm looking to modify the existing cisco backup script to include firmware upgrades.
I added the following to the end of the script but it doesn't seem to continue after the firmware is downloaded. It should match on either 3600 seconds or when it sees the words "bytes copied".

Also has anyone had experience using error checking into the scripts? I'd like to do a md5sum check that would compare the md5sum on the firmware file in netsight to assure that the file was copied correctly.

If anyone has already built a script that upgrades cisco firmware that works please share. I already checked the Git Hub page and there is only a backup script.

Any help would be appreciated.

code:
-----BEGIN SCRIPT "Firmware Download"-----

enable

%ENABLEPSWD%

copy tftp: flash:

%TFTP_IP%

firmware/images/%TARGET_FILE_NAME%

%TARGET_FILE_NAME%

@receiveuntil 3600 "bytes copied"

conf t

boot system %TARGET_FILE_NAME%

end

write mem

reload

@key %0d

-----END SCRIPT-----

-----BEGIN SUCCESS "Firmware Download"-----

bytes copied

-----END SUCCESS-----


1 REPLY 1

Zdeněk_Pala
Extreme Employee
Hi Byron.

if you use TAR file not BIN file for firmware upgrade then you can try the latest available here at GitHub.
If you want to stay with BIN file, you may take inspiration there.

If you make it working with BIN file (should be easy) then please share it!

Best regards
Regards Zdeněk Pala
GTM-P2G8KFN