View and upgrade the FortiSwitch firmware version
You can view the current firmware version of a FortiSwitch and upgrade the FortiSwitch to a new firmware version. FortiGate will suggest an upgrade when a new version is available in FortiGuard.
Using the FortiGate Web interface
To view the FortiSwitch firmware version:
- Go to WiFi & Switch Controller>Managed FortiSwitch.
- In the main panel, select the FortiSwitch faceplate and click Edit.
- In the Edit Managed FortiSwitch panel, the Firmware section displays the current build on the FortiSwitch.
To upgrade the firmware on multiple FortiSwitch units at the same time:
- Go to WiFi & Switch Controller> Managed FortiSwitch.
- Select the faceplates of the FortiSwitch units that you want to upgrade.
- Click Upgrade.
The Upgrade FortiSwitches page opens.
- Select FortiGuard or select Upload and then select the firmware file to upload.
If you select FortiGuard, all FortiSwitch units that can be upgraded are upgraded. If you select Upload, only one firmware image can be used at a time for upgrading.
- Select Upgrade.
Using the CLI
Use the following command to display the latest version: diagnose fdsm fortisw-latest-ver <model>
Use the following command to download the image: diagnose fdsm fortisw-download <image id>
The following example shows how to download the latest image for FS224D:
FG100D3G15801204 (global) # diagnose fdsm fortisw-latest-ver FS224D FS224D – 3.4.2 b192 03004000FIMG0900904002FG100D3G15801204 (global) # diagnose fdsm fortisw-download 03004000FIMG0900904002
Download image-03004000FIMG0900904002:
################################################################################ Result=Success
Use the following CLI commands to enable the use of HTTPS to download firmware to managed FortiSwitch units:
config switch-controller global set https-image-push enable end
FortiSwitch log export
From your FortiGate CLI, you can upgrade the firmware of all of the managed FortiSwitch units of the same model using a single execute command. The command includes the name of a firmware image file and all of the managed FortiSwitch units compatible with that firmware image file are upgraded. For example: execute switch-controller stage-tiered-swtp-image ALL <firmware-image-file>
You can also use the following command to restart all of the managed FortiSwitch units after a 2-minute delay.
execute switch-controller restart-swtp-delayed ALL