Fortinet black logo

Online Help

Import config to FortiGate by restoring migrated file

Import config to FortiGate by restoring migrated file

This section is only valid for FortiGate to FortiGate conversion.

Restoring the migrated file

After migrated file from FortiConverter is saved locally, please open the target FortiGate Web GUI and follow the steps below:

  1. In the upper-right corner, click admin -> Configuration -> Restore to access Restore System Configuration.
  2. In Restore System Configuration, click Upload and upload your converted file.
  3. Wait for the system to reboot.

CLI debugging

After the system is rebooted, connect to the console and input this CLI command to review the error logs of the restoration:

diagnose debug config-error-log read

The error logs show the information about the command line, line number, config path, and the error description.

For example, for this error log:

>>> "set" "dlp-sensor" "test" @ 7717:firewall.policy.101000:value parse error (error -3)

The error log description is as the following:

Error Log Section

Description

"set" "dlp-sensor" "test"

The command line "set dlp-sensor test" is failed to be imported.

7717

This command line is the 7717th line in the restored configuration file.

firewall.policy.101000

This command is located in the following config path:

config firewall policy

edit 101000

set dlp-sensor "test"

value parse error (error -3)

The system returned error description. It is recommend to input the command again manually in the console for a more detailed error message.

The error message shown in the error log is usually unclear. Please manually run the CLI command again for a more detailed error message. In this example, the error is generated due to DLP sensors are no longer referenced in the newer version.

Import config to FortiGate by restoring migrated file

This section is only valid for FortiGate to FortiGate conversion.

Restoring the migrated file

After migrated file from FortiConverter is saved locally, please open the target FortiGate Web GUI and follow the steps below:

  1. In the upper-right corner, click admin -> Configuration -> Restore to access Restore System Configuration.
  2. In Restore System Configuration, click Upload and upload your converted file.
  3. Wait for the system to reboot.

CLI debugging

After the system is rebooted, connect to the console and input this CLI command to review the error logs of the restoration:

diagnose debug config-error-log read

The error logs show the information about the command line, line number, config path, and the error description.

For example, for this error log:

>>> "set" "dlp-sensor" "test" @ 7717:firewall.policy.101000:value parse error (error -3)

The error log description is as the following:

Error Log Section

Description

"set" "dlp-sensor" "test"

The command line "set dlp-sensor test" is failed to be imported.

7717

This command line is the 7717th line in the restored configuration file.

firewall.policy.101000

This command is located in the following config path:

config firewall policy

edit 101000

set dlp-sensor "test"

value parse error (error -3)

The system returned error description. It is recommend to input the command again manually in the console for a more detailed error message.

The error message shown in the error log is usually unclear. Please manually run the CLI command again for a more detailed error message. In this example, the error is generated due to DLP sensors are no longer referenced in the newer version.