Fortinet white logo
Fortinet white logo

CLI Reference

execute restore

execute restore

restore

This topic includes the following commands:

execute restore av ftp

Restore antivirus database from FTP server.

execute restore av ftp <string> <ftp server>[:ftp port] <Enter>|<user> <passwd>

Parameter

Description

Type

Size

<string>

Antivirus data base file name (path) on the remote server.

string

<ftp server>[:ftp port]

FTP server IPv4, IPv6, or FQDN can be attached with port.

string

<Enter>|<user>

FTP username may be needed.

string

<passwd>

FTP password.

string

execute restore av tftp

Restore antivirus database from TFTP server.

execute restore av tftp <string> <tftp server>

Parameter

Description

Type

Size

<string>

Antivirus database file name on the TFTP server.

string

<tftp server>

TFTP server IPv4, IPv6, or FQDN.

string

execute restore config dhcp

Load config file via DHCP.

execute restore config dhcp <port> <Enter> | <vlanid>

Parameter

Description

Type

Size

<port>

Port to be DHCP client.

string

<Enter> | <vlanid>

Enter or specify VLAN ID to create a VLAN on the <port>.

string

execute restore config flash

Load config file from flash to firewall.

execute restore config flash <revision>

Parameter

Description

Type

Size

<revision>

Revision ID on the flash.

string

execute restore config ftp

Load config file from FTP server.

execute restore config ftp <string> <ftp server>[:ftp port] <Enter>|<user> <passwd> <Enter>|<passwd>

Parameter

Description

Type

Size

<string>

Configure file name(path) on the remote server.

string

<ftp server>[:ftp port]

FTP server IPv4, IPv6, or FQDN can be attached with port.

string

<Enter>|<user>

FTP username may be needed.

string

<passwd>

FTP password.

string

<Enter>|<passwd>

Password may be needed to restore.

string

execute restore config management-station normal

Load normal config file from management station to firewall.

execute restore config management-station normal <revision>

Parameter

Description

Type

Size

<revision>

Revision to retrieve, or enter '0' to get latest revision list.

string

execute restore config management-station script

Load script config file from management station to firewall.

execute restore config management-station script <revision>

Parameter

Description

Type

Size

<revision>

Revision to retrieve, or enter '0' to get latest revision list.

string

execute restore config management-station template

Load template config file from management station to firewall.

execute restore config management-station template <revision>

Parameter

Description

Type

Size

<revision>

Revision to retrieve, or enter '0' to get latest revision list.

string

execute restore config tftp

Load config file from TFTP server to firewall.

execute restore config tftp <string> <tftp server> <Enter>|<passwd>

Parameter

Description

Type

Size

<string>

File name on the TFTP server.

string

<tftp server>

TFTP server IPv4, IPv6, or FQDN.

string

<Enter>|<passwd>

Password may be needed to restore.

string

execute restore config usb

Load config file from USB disk to firewall.

execute restore config usb <string> <Enter>|<passwd>

Parameter

Description

Type

Size

<string>

File name on USB disk.

string

<Enter>|<passwd>

Password may be needed to restore.

string

execute restore config usb-mode

Load config file from USB disk and reboot.

execute restore config usb-mode <Enter>|<passwd>

Parameter

Description

Type

Size

<Enter>|<passwd>

Optional password to protect.

string

execute restore image flash

Restore image from flash.

execute restore image flash <revision>

Parameter

Description

Type

Size

<revision>

Image revision ID on flash.

string

execute restore image ftp

Load image from FTP server.

execute restore image ftp <string> <ftp server>[:ftp port] <Enter>|<user> <passwd>

Parameter

Description

Type

Size

<string>

Image file name(path) on the remote server.

string

<ftp server>[:ftp port]

FTP server IPv4, IPv6, or FQDN can be attached with port.

string

<Enter>|<user>

FTP username may be needed.

string

<passwd>

FTP password.

string

execute restore image management-station

Restore image from Management station.

execute restore image management-station <string>

Parameter

Description

Type

Size

<string>

Image ID on the server.

string

execute restore image tftp

Restore image from TFTP server.

execute restore image tftp <string> <tftp address>

Parameter

Description

Type

Size

<string>

Image file name on the TFTP server.

string

<tftp address>

TFTP server IPv4, IPv6, or FQDN.

string

execute restore image url

Restore image from URL with HTTP/HTTPS protocols. Decrypt image if needed.

execute restore image url <string> <Enter>|<passwd>|<force> <Enter>|<force>

Parameter

Description

Type

Size

<string>

URL string with protocol prefix. e.g: https://example.com/image.aes

string

<Enter>|<passwd>|<force>

Image encryption passphrase.

string

<Enter>|<force>

Bypass signature and validity checking.

string

execute restore image usb

Restore image from USB disk.

execute restore image usb <string>

Parameter

Description

Type

Size

<string>

Image file name on the USB disk.

string

execute restore ips ftp

Restore IPS database from FTP server.

execute restore ips ftp <string> <ftp server>[:ftp port] <Enter>|<user> <passwd>

Parameter

Description

Type

Size

<string>

IPS data base file name (path) on the remote server.

string

<ftp server>[:ftp port]

FTP server IPv4, IPv6, or FQDN can be attached with port.

string

<Enter>|<user>

FTP username may be needed.

string

<passwd>

FTP password.

string

execute restore ips tftp

Restore IPS database from TFTP server.

execute restore ips tftp <string> <tftp server>

Parameter

Description

Type

Size

<string>

IPS database file name on the TFTP server.

string

<tftp server>

TFTP server IPv4, IPv6, or FQDN.

string

execute restore ipsuserdefsig ftp

Restore user-defined ips signatures file from FTP server.

execute restore ipsuserdefsig ftp <string> <ftp server>[:ftp port] <Enter>|<user> <passwd>

Parameter

Description

Type

Size

<string>

User-defined ips signatures file on the remote server.

string

<ftp server>[:ftp port]

FTP server IPv4, IPv6, or FQDN can be attached with port.

string

<Enter>|<user>

FTP username may be needed.

string

<passwd>

FTP password.

string

execute restore ipsuserdefsig tftp

Restore user defined IPS signatures file from TFTP server.

execute restore ipsuserdefsig tftp <string> <tftp server>

Parameter

Description

Type

Size

<string>

File name on the TFTP server.

string

<tftp server>

TFTP server IPv4, IPv6, or FQDN.

string

execute restore manual-license ftp

Restore Manual License from FTP server.

execute restore manual-license ftp <string> <ftp server>[:ftp port] <Enter>|<user> <passwd>

Parameter

Description

Type

Size

<string>

FortiGuard Contract License file name on the FTP server.

string

<ftp server>[:ftp port]

FTP server IPv4, IPv6, or FQDN can be attached with port.

string

<Enter>|<user>

FTP username may be needed.

string

<passwd>

FTP password.

string

execute restore manual-license tftp

Restore Manual License from TFTP server.

execute restore manual-license tftp <string> <tftp server>

Parameter

Description

Type

Size

<string>

Fortiguard Contract License file name on the TFTP server.

string

<tftp server>

TFTP server IPv4, IPv6, or FQDN.

string

execute restore other-objects ftp

Restore other FortiGuard packages from FTP server. Current support: Internet-service Database Apps/Maps, URL Allow List and CASB signatures.

execute restore other-objects ftp <string> <ftp server>[:ftp port] <Enter>|<user> <passwd>

Parameter

Description

Type

Size

<string>

Other FortiGuard package file name on the FTP server.

string

<ftp server>[:ftp port]

FTP server IPv4, IPv6, or FQDN can be attached with port.

string

<Enter>|<user>

FTP username may be needed.

string

<passwd>

FTP password.

string

execute restore other-objects tftp

Restore other FortiGuard packages from TFTP server. Current support: Internet-service Database Apps/Maps, URL Allow List and CASB signatures.

execute restore other-objects tftp <string> <tftp server>

Parameter

Description

Type

Size

<string>

Other FortiGuard package file name on the TFTP server.

string

<tftp server>

TFTP server IPv4, IPv6, or FQDN.

string

execute restore script ftp

Load script from FTP server.

execute restore script ftp <string> <ftp server>[:ftp port] <Enter>|<user> <passwd>

Parameter

Description

Type

Size

<string>

Script on the remote server.

string

<ftp server>[:ftp port]

FTP server IPv4, IPv6, or FQDN can be attached with port.

string

<Enter>|<user>

FTP username may be needed.

string

<passwd>

FTP password.

string

execute restore script lastlog

Read the result of last restored script.

execute restore script lastlog

execute restore script scp

Load script from SCP server to firewall.

execute restore script scp <string> <ip> <user> <Enter>|<passwd>

Parameter

Description

Type

Size

<string>

File name on the SCP server.

string

<ip>

IP address.

string

<user>

User name.

string

<Enter>|<passwd>

Enter or input password.

string

execute restore script tftp

Load script from TFTP server to firewall.

execute restore script tftp <string> <tftp server> <Enter>|<passwd>

Parameter

Description

Type

Size

<string>

File name on the TFTP server.

string

<tftp server>

TFTP server IPv4, IPv6, or FQDN.

string

<Enter>|<passwd>

Password may be needed to restore.

string

execute restore tls-finger-print tftp

Restore TLS fingerprint file from TFTP server.

execute restore tls-finger-print tftp <string> <ip>

Parameter

Description

Type

Size

<string>

File name on the TFTP server.

string

<ip>

IP address of TFTP server.

string

execute restore vmlicense ftp

Restore VM license from FTP server.

execute restore vmlicense ftp <string> <ftp server>[:ftp port] <Enter>|<user> <passwd>

Parameter

Description

Type

Size

<string>

VM license file name(path) on the remote server.

string

<ftp server>[:ftp port]

FTP server IPv4, IPv6, or FQDN can be attached with port.

string

<Enter>|<user>

FTP username may be needed.

string

<passwd>

FTP password.

string

execute restore vmlicense tftp

restore VM license from tftp server

execute restore vmlicense tftp <string> <tftp server>

Parameter

Description

Type

Size

<string>

VM license file name on the tftp server

string

<tftp server>

TFTP server IPv4, IPv6, or FQDN.

string

execute restore

execute restore

restore

This topic includes the following commands:

execute restore av ftp

Restore antivirus database from FTP server.

execute restore av ftp <string> <ftp server>[:ftp port] <Enter>|<user> <passwd>

Parameter

Description

Type

Size

<string>

Antivirus data base file name (path) on the remote server.

string

<ftp server>[:ftp port]

FTP server IPv4, IPv6, or FQDN can be attached with port.

string

<Enter>|<user>

FTP username may be needed.

string

<passwd>

FTP password.

string

execute restore av tftp

Restore antivirus database from TFTP server.

execute restore av tftp <string> <tftp server>

Parameter

Description

Type

Size

<string>

Antivirus database file name on the TFTP server.

string

<tftp server>

TFTP server IPv4, IPv6, or FQDN.

string

execute restore config dhcp

Load config file via DHCP.

execute restore config dhcp <port> <Enter> | <vlanid>

Parameter

Description

Type

Size

<port>

Port to be DHCP client.

string

<Enter> | <vlanid>

Enter or specify VLAN ID to create a VLAN on the <port>.

string

execute restore config flash

Load config file from flash to firewall.

execute restore config flash <revision>

Parameter

Description

Type

Size

<revision>

Revision ID on the flash.

string

execute restore config ftp

Load config file from FTP server.

execute restore config ftp <string> <ftp server>[:ftp port] <Enter>|<user> <passwd> <Enter>|<passwd>

Parameter

Description

Type

Size

<string>

Configure file name(path) on the remote server.

string

<ftp server>[:ftp port]

FTP server IPv4, IPv6, or FQDN can be attached with port.

string

<Enter>|<user>

FTP username may be needed.

string

<passwd>

FTP password.

string

<Enter>|<passwd>

Password may be needed to restore.

string

execute restore config management-station normal

Load normal config file from management station to firewall.

execute restore config management-station normal <revision>

Parameter

Description

Type

Size

<revision>

Revision to retrieve, or enter '0' to get latest revision list.

string

execute restore config management-station script

Load script config file from management station to firewall.

execute restore config management-station script <revision>

Parameter

Description

Type

Size

<revision>

Revision to retrieve, or enter '0' to get latest revision list.

string

execute restore config management-station template

Load template config file from management station to firewall.

execute restore config management-station template <revision>

Parameter

Description

Type

Size

<revision>

Revision to retrieve, or enter '0' to get latest revision list.

string

execute restore config tftp

Load config file from TFTP server to firewall.

execute restore config tftp <string> <tftp server> <Enter>|<passwd>

Parameter

Description

Type

Size

<string>

File name on the TFTP server.

string

<tftp server>

TFTP server IPv4, IPv6, or FQDN.

string

<Enter>|<passwd>

Password may be needed to restore.

string

execute restore config usb

Load config file from USB disk to firewall.

execute restore config usb <string> <Enter>|<passwd>

Parameter

Description

Type

Size

<string>

File name on USB disk.

string

<Enter>|<passwd>

Password may be needed to restore.

string

execute restore config usb-mode

Load config file from USB disk and reboot.

execute restore config usb-mode <Enter>|<passwd>

Parameter

Description

Type

Size

<Enter>|<passwd>

Optional password to protect.

string

execute restore image flash

Restore image from flash.

execute restore image flash <revision>

Parameter

Description

Type

Size

<revision>

Image revision ID on flash.

string

execute restore image ftp

Load image from FTP server.

execute restore image ftp <string> <ftp server>[:ftp port] <Enter>|<user> <passwd>

Parameter

Description

Type

Size

<string>

Image file name(path) on the remote server.

string

<ftp server>[:ftp port]

FTP server IPv4, IPv6, or FQDN can be attached with port.

string

<Enter>|<user>

FTP username may be needed.

string

<passwd>

FTP password.

string

execute restore image management-station

Restore image from Management station.

execute restore image management-station <string>

Parameter

Description

Type

Size

<string>

Image ID on the server.

string

execute restore image tftp

Restore image from TFTP server.

execute restore image tftp <string> <tftp address>

Parameter

Description

Type

Size

<string>

Image file name on the TFTP server.

string

<tftp address>

TFTP server IPv4, IPv6, or FQDN.

string

execute restore image url

Restore image from URL with HTTP/HTTPS protocols. Decrypt image if needed.

execute restore image url <string> <Enter>|<passwd>|<force> <Enter>|<force>

Parameter

Description

Type

Size

<string>

URL string with protocol prefix. e.g: https://example.com/image.aes

string

<Enter>|<passwd>|<force>

Image encryption passphrase.

string

<Enter>|<force>

Bypass signature and validity checking.

string

execute restore image usb

Restore image from USB disk.

execute restore image usb <string>

Parameter

Description

Type

Size

<string>

Image file name on the USB disk.

string

execute restore ips ftp

Restore IPS database from FTP server.

execute restore ips ftp <string> <ftp server>[:ftp port] <Enter>|<user> <passwd>

Parameter

Description

Type

Size

<string>

IPS data base file name (path) on the remote server.

string

<ftp server>[:ftp port]

FTP server IPv4, IPv6, or FQDN can be attached with port.

string

<Enter>|<user>

FTP username may be needed.

string

<passwd>

FTP password.

string

execute restore ips tftp

Restore IPS database from TFTP server.

execute restore ips tftp <string> <tftp server>

Parameter

Description

Type

Size

<string>

IPS database file name on the TFTP server.

string

<tftp server>

TFTP server IPv4, IPv6, or FQDN.

string

execute restore ipsuserdefsig ftp

Restore user-defined ips signatures file from FTP server.

execute restore ipsuserdefsig ftp <string> <ftp server>[:ftp port] <Enter>|<user> <passwd>

Parameter

Description

Type

Size

<string>

User-defined ips signatures file on the remote server.

string

<ftp server>[:ftp port]

FTP server IPv4, IPv6, or FQDN can be attached with port.

string

<Enter>|<user>

FTP username may be needed.

string

<passwd>

FTP password.

string

execute restore ipsuserdefsig tftp

Restore user defined IPS signatures file from TFTP server.

execute restore ipsuserdefsig tftp <string> <tftp server>

Parameter

Description

Type

Size

<string>

File name on the TFTP server.

string

<tftp server>

TFTP server IPv4, IPv6, or FQDN.

string

execute restore manual-license ftp

Restore Manual License from FTP server.

execute restore manual-license ftp <string> <ftp server>[:ftp port] <Enter>|<user> <passwd>

Parameter

Description

Type

Size

<string>

FortiGuard Contract License file name on the FTP server.

string

<ftp server>[:ftp port]

FTP server IPv4, IPv6, or FQDN can be attached with port.

string

<Enter>|<user>

FTP username may be needed.

string

<passwd>

FTP password.

string

execute restore manual-license tftp

Restore Manual License from TFTP server.

execute restore manual-license tftp <string> <tftp server>

Parameter

Description

Type

Size

<string>

Fortiguard Contract License file name on the TFTP server.

string

<tftp server>

TFTP server IPv4, IPv6, or FQDN.

string

execute restore other-objects ftp

Restore other FortiGuard packages from FTP server. Current support: Internet-service Database Apps/Maps, URL Allow List and CASB signatures.

execute restore other-objects ftp <string> <ftp server>[:ftp port] <Enter>|<user> <passwd>

Parameter

Description

Type

Size

<string>

Other FortiGuard package file name on the FTP server.

string

<ftp server>[:ftp port]

FTP server IPv4, IPv6, or FQDN can be attached with port.

string

<Enter>|<user>

FTP username may be needed.

string

<passwd>

FTP password.

string

execute restore other-objects tftp

Restore other FortiGuard packages from TFTP server. Current support: Internet-service Database Apps/Maps, URL Allow List and CASB signatures.

execute restore other-objects tftp <string> <tftp server>

Parameter

Description

Type

Size

<string>

Other FortiGuard package file name on the TFTP server.

string

<tftp server>

TFTP server IPv4, IPv6, or FQDN.

string

execute restore script ftp

Load script from FTP server.

execute restore script ftp <string> <ftp server>[:ftp port] <Enter>|<user> <passwd>

Parameter

Description

Type

Size

<string>

Script on the remote server.

string

<ftp server>[:ftp port]

FTP server IPv4, IPv6, or FQDN can be attached with port.

string

<Enter>|<user>

FTP username may be needed.

string

<passwd>

FTP password.

string

execute restore script lastlog

Read the result of last restored script.

execute restore script lastlog

execute restore script scp

Load script from SCP server to firewall.

execute restore script scp <string> <ip> <user> <Enter>|<passwd>

Parameter

Description

Type

Size

<string>

File name on the SCP server.

string

<ip>

IP address.

string

<user>

User name.

string

<Enter>|<passwd>

Enter or input password.

string

execute restore script tftp

Load script from TFTP server to firewall.

execute restore script tftp <string> <tftp server> <Enter>|<passwd>

Parameter

Description

Type

Size

<string>

File name on the TFTP server.

string

<tftp server>

TFTP server IPv4, IPv6, or FQDN.

string

<Enter>|<passwd>

Password may be needed to restore.

string

execute restore tls-finger-print tftp

Restore TLS fingerprint file from TFTP server.

execute restore tls-finger-print tftp <string> <ip>

Parameter

Description

Type

Size

<string>

File name on the TFTP server.

string

<ip>

IP address of TFTP server.

string

execute restore vmlicense ftp

Restore VM license from FTP server.

execute restore vmlicense ftp <string> <ftp server>[:ftp port] <Enter>|<user> <passwd>

Parameter

Description

Type

Size

<string>

VM license file name(path) on the remote server.

string

<ftp server>[:ftp port]

FTP server IPv4, IPv6, or FQDN can be attached with port.

string

<Enter>|<user>

FTP username may be needed.

string

<passwd>

FTP password.

string

execute restore vmlicense tftp

restore VM license from tftp server

execute restore vmlicense tftp <string> <tftp server>

Parameter

Description

Type

Size

<string>

VM license file name on the tftp server

string

<tftp server>

TFTP server IPv4, IPv6, or FQDN.

string