Fortinet white logo
Fortinet white logo

CLI Reference

restore image

restore image

Use this command to install firmware on the primary partition and reboot.

Back up the configuration before installing new firmware. Installing new firmware can change default settings and reset settings that are incompatible with the new version. For backup commands, see backup full-config and backup cli-config.

Unlike installing firmware via TFTP during a boot interrupt, installing firmware using this command will attempt to preserve settings and files, and not necessarily restore the FortiWeb appliance to its firmware/factory default configuration.

To use this command, your administrator account’s access control profile must have either w or rw permission to the mntgrp area. For details, see Permissions.

Syntax

execute restore image ftp <filename_str> <ftp_ipv4>

execute restore image tftp <filename_str> <tftp_ipv4>

Variable Description Default

<filename_str>

Enter the name of the firmware image file.

No default.

<ftp_ipv4>

Enter the IP address of the TFTP server.

No default.

<tftp_ipv4>

Enter the IP address of the FTP server.

No default.

Example

This example installs a firmware file named firmware.out from the TFTP server, 192.0.2.23, to the FortiWeb appliance.

execute restore image tftp firmware.out 192.0.2.23

The FortiWeb appliance downloads the firmware file, installs it, and reboots.

Related topics

restore image

restore image

Use this command to install firmware on the primary partition and reboot.

Back up the configuration before installing new firmware. Installing new firmware can change default settings and reset settings that are incompatible with the new version. For backup commands, see backup full-config and backup cli-config.

Unlike installing firmware via TFTP during a boot interrupt, installing firmware using this command will attempt to preserve settings and files, and not necessarily restore the FortiWeb appliance to its firmware/factory default configuration.

To use this command, your administrator account’s access control profile must have either w or rw permission to the mntgrp area. For details, see Permissions.

Syntax

execute restore image ftp <filename_str> <ftp_ipv4>

execute restore image tftp <filename_str> <tftp_ipv4>

Variable Description Default

<filename_str>

Enter the name of the firmware image file.

No default.

<ftp_ipv4>

Enter the IP address of the TFTP server.

No default.

<tftp_ipv4>

Enter the IP address of the FTP server.

No default.

Example

This example installs a firmware file named firmware.out from the TFTP server, 192.0.2.23, to the FortiWeb appliance.

execute restore image tftp firmware.out 192.0.2.23

The FortiWeb appliance downloads the firmware file, installs it, and reboots.

Related topics