Upgrading the firmware - CLI
Installing firmware replaces your current antivirus and attack definitions, along with the definitions included with the firmware release you are installing. After you install new firmware, make sure that antivirus and attack definitions are up to date. You can also use the CLI command
execute update-now to update the antivirus and attack definitions. For more information, see the System Administration handbook.
Before you begin, ensure you have a TFTP server running and accessible to the FortiGate unit.
|Always remember to back up your configuration before making any changes to the firmware.|
To upgrade the firmware using the CLI
- Make sure the TFTP server is running.
- Copy the new firmware image file to the root directory of the TFTP server.
- Log into the CLI.
- Make sure the FortiGate unit can connect to the TFTP server.
You can use the following command to ping the computer running the TFTP server. For example, if the IP address of the TFTP server is 192.168.1.168:
execute ping 192.168.1.168
- Enter the following command to copy the firmware image from the TFTP server to the FortiGate unit:
execute restore image tftp <filename> <tftp_ipv4>
is the name of the firmware image file and
<tftp_ip4>is the IP address of the TFTP server. For example, if the firmware image file name is
image.outand the IP address of the TFTP server is 192.168.1.168, enter:
execute restore image tftp image.out 192.168.1.168
The FortiGate unit responds with the message:
This operation will replace the current firmware version!
Do you want to continue? (y/n)
- The FortiGate unit uploads the firmware image file, upgrades to the new firmware version, and restarts. This process takes a few minutes.
- Reconnect to the CLI.
- Update antivirus and attack definitions, by entering: