Cancel pending or downloading FortiSwitch upgrades
A FortiSwitch device in FortiLink mode can be upgrade using the FortiGate device.
If a connectivity issue occurs during the upgrade process and the FortiSwitch unit loses contact with the FortiGate device, the FortiSwitch upgrade status can get stuck at Upgrading
. Use the following CLI command to cancel the process:
execute switch-controller switch-software cancel {all | sn <FortiSwitch_serial_number> | switch-group <switch_group_ID>}
To test canceling a failed FortiSwitch upgrade process:
-
Check that there is at least one FortiSwitch unit in FortiLink mode on the FortiGate device:
# execute switch-controller get-conn-status Managed-devices in current vdom vdom1: FortiLink interface : flink SWITCH-ID VERSION STATUS FLAG ADDRESS JOIN-TIME NAME FS1D243Z170000XX v6.4.0 (456) Authorized/Up E 169.254.1.3 Fri Nov 27 13:51:11 2020 - S248DN3X170002XX v6.4.0 (456) Authorized/Up E 169.254.1.6 Fri Nov 27 13:50:56 2020 - S248EPTF180018XX v6.4.0 (456) Authorized/Up E 169.254.1.5 Fri Nov 27 13:51:05 2020 - Flags: C=config sync, U=upgrading, S=staged, D=delayed reboot pending, E=config sync error, 3=L3 Managed-Switches: 5 (UP: 4 DOWN: 1)
-
Confirm that the upgrade status of the FortiSwitch units is normal:
# execute switch-controller get-upgrade-status Device Running-version Status Next-boot =================================================================================================================== VDOM : vdom1 FS1D243Z170000XX FS1D24-v6.4.0-build456,201121 (Interim) (0/0/0) N/A (Idle) S248DN3X170002XX S248DN-v6.4.0-build456,201121 (Interim) (0/0/0) N/A (Idle) S248EPTF180018XX S248EP-v6.4.0-build456,201121 (Interim) (0/0/0) N/A (Idle)
-
Upload the FortiSwitch image to the FortiGate device and confirm that it was uploaded successfully:
# execute switch-controller switch-software upload tftp FSW-248E-POE-454.out 172.18.60.160 Downloading file FSW-248E-POE-454.out from tftp server 172.18.60.160... ########################### Image checking ... Image MD5 calculating ... Image Saving S248EP-IMG.swtp ... Successful! File Syncing...
# execute switch-controller switch-software list-available ImageName ImageSize(B) ImageInfo Uploaded Time S248EP-IMG.swtp 28579517 S248EP-v6.4-build454 Fri Nov 27 14:01:24 2020
-
Start the FortiSwitch upgrade process:
# execute switch-controller switch-software upgrade S248EPTF180018XX S248EP-IMG.swtp Image download process: 11 %
-
Check the FortiSwitch upgrade process:
# execute switch-controller get-upgrade-status Device Running-version Status Next-boot =================================================================================================================== VDOM : vdom1 FS1D243Z170000XX FS1D24-v6.4.0-build456,201121 (Interim) (0/0/0) N/A (Idle) S248DN3X170002XX S248DN-v6.4.0-build456,201121 (Interim) (0/0/0) N/A (Idle) S248EPTF180018XX S248EP-v6.4.0-build456,201121 (Interim) (14/0/0) N/A (Upgrading)
- On the FortiSwitch unit, shut down the physical port that is used by FortiLink, in this case port 17:
config switch physical-port edit port17 set status down next end
-
On the FortiGate device, recheck the FortiSwitch upgrade process:
# execute switch-controller get-upgrade-status Device Running-version Status Next-boot =================================================================================================================== VDOM : vdom1 FS1D243Z170000XX FS1D24-v6.4.0-build456,201121 (Interim) (0/0/0) N/A (Idle) S248DN3X170002XX S248DN-v6.4.0-build456,201121 (Interim) (0/0/0) N/A (Idle) S248EPTF180018XX S248EP-v6.4.0-build456,201121 (Interim) (14/0/0) N/A (Upgrading)
Note that the process is stuck on
Upgrading
. -
Cancel the upgrade process:
execute switch-controller switch-software cancel sn S248EPTF180018XX
-
Confirm that the upgrade status of the FortiSwitch units is back to normal:
# execute switch-controller get-upgrade-status Device Running-version Status Next-boot =================================================================================================================== VDOM : vdom1 FS1D243Z170000XX FS1D24-v6.4.0-build456,201121 (Interim) (0/0/0) N/A (Idle) S248DN3X170002XX S248DN-v6.4.0-build456,201121 (Interim) (0/0/0) N/A (Idle) S248EPTF180018XX S248EP-v6.4.0-build456,201121 (Interim) (0/0/0) N/A (Idle)