Description

When the firmware for a particular FPC is outdated, sometimes its necessary to upgrade it in order to avoid certain issues/Bug. This procedure shows the step-by-step process to upgrade the fpc firmware

Solution

Use the following steps to upgrade FCP(x) firmware:

  • Copy the latest qfx10008 release to /var/tmp/

 root@jtac-qfx10008> file list /var/tmp/

/var/tmp/:
.snap/
jinstall-host-qfx-10-m-flex-x86-64-21.4R3.15-secure-signed.tgz
mmcq_mmdb_rep_mmcq*
mmcq_sdb_bbe_mmcq*
pfe_debug_commands
rtsdb/
sd-upgrade/

  • Identify which FPC is running the old version      

   root@jtac-qfx10008> show chassis firmware | match FPC
FPC 1                    U-Boot     Bank A: U-Boot 2011.12-gfbea47a (Feb 26 2016 - 22:56:52)

  • Perform the firmware upgrade for the desired FPC

 root@jtac-qfx10008> request system firmware upgrade fpc slot 1  
Firmware upgrade initiated. 
Uboot upgrade initiated.Please wait for 3-4 minutes for the process to complete.. 

  • While we wait, we can log in to FPCx to check if the u-boot script is running and to check the logs: (this is optional and for informational purposes only, no need to do it during the MW)

root@jtac-qfx10008> start shell
root@jtac-qfx10008:RE:1% rlogin -Ji fpc1

root@fpc1:~# cd /var/tmp
root@fpc1:/var/tmp# ls -ltr
total 4112
drwxr-xr-x 2 root root      40 Jun 21  2018 corefiles
srwxr-xr-x 1 root root       0 Jan 24 14:00 control_sock
srwxr-xr-x 1 root root       0 Jan 24 14:00 jflow-sock
-r--r--r-- 1 root root 4194304 Mar 20 17:00 uboot_loader_4MB.bin
-r--r--r-- 1 root root      33 Mar 20 17:00 uboot_loader_4MB.bin.md5
-r-xr-xr-x 1 root root    3906 Mar 20 17:00 uboot_loader_upgrade.sh
-rw-r--r-- 1 root root     166 Mar 20 17:00 mtd_out
-rw-r--r-- 1 root root     428 Mar 20 17:01 uboot_upgrade.log


root@fpc1:/var/tmp# tail -f uboot_upgrade.log
00:00:30
Currently booted using Flash A. Programming Flash A
00:00:30
size of file is 4194304
erasing flash and preparing to upgrade mtd0
00:01:07
flash erased, copying /var/tmp/uboot_loader_4MB.bin
Programming flash
00:02:33
checking file integrity
00:02:55
Verifying flash
mtd0 upgrade successful 
^C  

  • After 5 minutes, restart FPC x via cli

 root@fpc1:/var/tmp# exit
logout
rlogin: connection closed

root@jtac-qfx10008> request chassis fpc slot 1 restart 
Restart initiated, use "show chassis fpc" to verify

root@jtac-qfx10008> show chassis fpc detail    
Slot 1 information:
  State                               Online    
  Total CPU DRAM                 8192 MB
  Total SRAM                        0 MB
  Total SDRAM                       0 MB
  Temperature                      42 degrees C / 107 degrees F
  Start time                          2023-03-20 17:05:24 PDT
  Uptime                              5 minutes, 19 seconds
  Max power consumption            675 Watts

  • Once the FPC is back online, check the firmware version to confirm it was upgraded

 root@jtac-qfx10008> show chassis firmware | match FPC 
FPC 1                    U-Boot     Bank A: U-Boot 2011.12-g2419c0e (Jan 01 2017 - 23:28:05)

 

Modification History

03-20-2023 KB Shell Created