Fortinet black logo

CLI reference

execute restore image

execute restore image

Use this command to restore a firmware file from a TFTP server or a FortiManager unit.

Caution

Back up your configuration before using this command. This command makes major changes to your configuration. If you are downgrading the firmware, this procedure resets all changes you have made to the FortiNDR configuration file and reverts the system to the default values for that firmware version, including factory default settings for the IP addresses of network interfaces. For information on creating a backup, see the FortiAI Administration Guide in the Fortinet Document Library.

Syntax

execute restore image {disk <filename> | ftp <file name> <server_ipv4> | scp <file name> <server_ipv4> | tftp <file name> <server_ipv4>}

Variable

Description

Default

<filename_str>

Name of the firmware file on the TFTP server.

<server_ipv4>

IP address of the TFTP server where the firmware file is stored.

Example

This example restores firmware file FAI_3500F-v12-build0047-FORTINET.out, which is stored on the TFTP server 192.168.1.20.

execute restore image tftp FAI_3500F-v12-build0047-FORTINET.out 192.168.1.20

The CLI displays the following:

This operation will replace the current firmware version!

Do you want to continue? (y/n)

After you enter y (yes), the CLI displays the following:

Connect to tftp server 192.168.1.20 ...

Please wait...

########################

Get image from tftp server OK.

Check image OK.

execute restore image {disk <filename> | ftp <file name> <server_ipv4> | scp <file name> <server_ipv4> | tftp <file name> <server_ipv4>}

execute restore image

Use this command to restore a firmware file from a TFTP server or a FortiManager unit.

Caution

Back up your configuration before using this command. This command makes major changes to your configuration. If you are downgrading the firmware, this procedure resets all changes you have made to the FortiNDR configuration file and reverts the system to the default values for that firmware version, including factory default settings for the IP addresses of network interfaces. For information on creating a backup, see the FortiAI Administration Guide in the Fortinet Document Library.

Syntax

execute restore image {disk <filename> | ftp <file name> <server_ipv4> | scp <file name> <server_ipv4> | tftp <file name> <server_ipv4>}

Variable

Description

Default

<filename_str>

Name of the firmware file on the TFTP server.

<server_ipv4>

IP address of the TFTP server where the firmware file is stored.

Example

This example restores firmware file FAI_3500F-v12-build0047-FORTINET.out, which is stored on the TFTP server 192.168.1.20.

execute restore image tftp FAI_3500F-v12-build0047-FORTINET.out 192.168.1.20

The CLI displays the following:

This operation will replace the current firmware version!

Do you want to continue? (y/n)

After you enter y (yes), the CLI displays the following:

Connect to tftp server 192.168.1.20 ...

Please wait...

########################

Get image from tftp server OK.

Check image OK.

execute restore image {disk <filename> | ftp <file name> <server_ipv4> | scp <file name> <server_ipv4> | tftp <file name> <server_ipv4>}