Prework
It is assumed that you have a active Cisco Support contract in place to cover your equipment.
To get the latest NXOS version, go to: https://software.cisco.com/download/home. Login and then browse to your specific switch model. Then download the latest or your desired NXOS version.
Move the *.bin file to your TFTP server. Check out our Windows - Setup a TFTP Server article.
Update Process
vPC Health Check
Verify that everything is healthy on the vPC before proceeding.
Create backup config
Before we get to ahead of ourselves, it is a good idea to create a backup of the startup config for both switches before we make any changes. To do this, use a console cable or SSH into the switch, then run the following command:
Repeat the backup process on the second switch.
Take note of the current version using this command.
Firmware Copy process
Engineers or Sys Admins like to leave an old copy of a NXOS firmware or config files on the switches storage. Nexus switches usually have a ton of storage, so to play it safe, don't worry about cleaning this until you have completed the upgrade. You can use the following command to see the contents of the storage if you are curious though.
Alright, let's copy the bits over to the switch. The format for the command is: copy source destination flash:. Type this from the console or SSH session on the switch.
Copy the new *.bin files to the second switch.
Both switches should be running the same version when you are done.
Checksum Validation
In our other articles, we provide steps to verify the checksums after a TFTP file copy. This step is not necessary for the Nexus as the files are validated during the install.
Test run the Firmware Upgrade Process
A cool feature of the Nexus switches is that you can do a dry run of the firmware upgrade before actually doing the upgrade. This will give you a heads up if anything fails or other prerequisites are required. This command will not make any changes.
Upgrade the Firmware
After the installer completes, you will be prompted to reboot. Only upgrade and reboot one switch at a time to avoid interruptions of service.
If you are feeling lazy (or smart), you can hit the up arrow on your keyboard to repeat the previous command. Simply delete the "show" and "impact" words then hit enter on the keyboard.
After the install has finished, you will prompted to reboot. When you hit y on your keyboard, the system will reboot. It can take a few seconds for the screen to actually update though.
After the first switch you updated is fully online, verify everything is healthy BEFORE proceeding to the second switch. You can run this command on either or both switches if you like.
Repeat the install steps above on the second switch.
After the second switch you updated is fully online, as before, verify everything is healthy. You can run this command on either or both switches if you like.
Cleanup
To validate our work, use the show version and show boot commands to verify you are now using the new NXOS version and that the path to the file is correct.
As previously stated, often times there are old firmware versions or backup configs on the switches. Now is the time you can clean them up. This is by no means required, but at your discretion. Generally speaking, we opt to leave the old NXOS version on the switch for a few weeks then we remove it (if we remember).
Remember, you will need to repeat these steps on each of the switches.
References
- https://www.cisco.com/c/en/us/td/docs/switches/datacenter/nexus5600/sw/upgrade/7313_N1_1/n5600_upgrade_downgrade_7313_n1_1.html
- https://console1008.rssing.com/chan-32389089/article1.html
- https://hacktracking.blogspot.com/2012/12/nexus-5000-upgrade-and-downgrade.html
- https://coady.tech/updating-cisco-nexus-nx-os-firmware/
- https://www.kozeniauskas.com/itblog/2013/03/06/nexus-upgrading-cisco-nexus-5000/