The standard way of doing this, is by downloading the files to switch from a TFTP server and then reboot the switch. It is very important to check the compatibility of the existing configuration and commands with the new version before upgrading.
For HP Procurve switches:
Assuming that a TFTP server IP address is 1.2.3.4 and the switch can access the server and the file I_08_8x.swi is on the server we can use this command.
Notice that if SCP is enabled, TFTP will not be available.
First we can download the firmware from switch to TFTP server in order to test the connection and also have a backup of old image in case there was a problem after upgrade.
Procurve# copy flash tftp 10.28.227.103
Now we can download the new image from TFTP server:
Procurve# copy tftp flash 1.2.3.4 I_08_8x.swi primary
Procurve# show version
Procurve# system boot flash primary
Procurve# show version
Procurve# system boot flash primary
And make sure that system boots from primary image.
If SCP is enabled on the switch we can upload the image from the Linux server to the switch.
Assuming that the the switch IP is 199.103.57.x we use this command on the Linux server that contains the image file.
Assuming that the the switch IP is 199.103.57.x we use this command on the Linux server that contains the image file.
Again, we first download the image to test the connection and have a backup.
Procurve# show version
If this was done successfully, we can proceed for uploading the new image to switch:
Linux# scp -P 8212 /root/I_08_8x.swi admin@199.103.57.x:/os/primary
And then in the switch:
Procurve# system boot flash primary
For Brocade switches:
For upgrading Brocade switches two separate files need to be downloaded to the switch: boot code and flash code
1- Load the boot code
This can be done using TFTP or SCP if SCP is enabled on the switch
Brocade# copy tftp flash 1.2.3.4 grz073xx.bin bootrom
or
Linux# scp -P 8212 /root/grz073xx.bin admin@199.103.57.x:flash:bootrom
2- Load the flash code
We can download the flash code for test and backup but doing so with SCP will reboot the switch. (TFTP behavior is unknown but that might reboot it too)
Brocade # copy tftp flash 1.2.3.4 TIS07300f.bin primary
or
Linux# scp FCXR080xx.bin admin@199.103.57.x:flash:primary
And then verify and reboot the switch
Brocade # show flash or show version
Brocade # reload or boot system
Brocade # reload or boot system