Created on
04-18-2018
01:39 PM
Edited on
12-26-2022
03:03 AM
By
Anthony_E
Description
This article explains the use of the 'exec migrate' command on FortiAnalyzer/FortiManager to help with migrating configurations between models (since configuration backup files are model specific).
Scope
FortiManager and FortiAnalyzer.
Solution
Some common migration scenarios that this command helps with:
- Upgrading to a larger appliance.
- Moving configurations between a physical appliance and either VM or Cloud environments (or vice versa).
- Recovering from the loss of administrative passwords (see related article).
Command Usage
In order to help to migrate from one model to another, the following command line (CLI) command was introduced starting in FortiAnalyzer/FortiManager 5.4.1:
# execute migrate all-settings <ftp/scp/sftp> <server ip> <filename> <username> <password>
It allows all configurations in the configuration file to be loaded except for system settings (see below).
Requirement
The configuration file should be loaded onto a VM/appliance running the same firmware as the original VM/appliance when the configuration was backed up.
System Settings
Any logs must be backed up and restored independently of the configuration file.
# exec backup logs
# exec restore logs
FGT config adjustment
Once you have loaded the new FortiAnalyzer config and or FortiManager config adjusting the FortiGate config will be needed.
This can be done using the below batch CLI command:
Changing FMG config:
# exe batch start
config system central
set fmg 'new FMG IP if needs be'
set serial 'new FMG serial'
end
exe batch end
Changing FortiAnalyzer config:
# exe batch start
config log fortianalyzer setting
set server 'new FAZ IP if needs be'
set serial 'new FAZ serial'
end
exe batch end
References
Also see the FortiManager Admin / Online guide
Related Articles:
Technical Note: Management IP for Fortinet VM products
Technical Note: Pointing the FortiGate to a new FortiManager IP
The Fortinet Security Fabric brings together the concepts of convergence and consolidation to provide comprehensive cybersecurity protection for all users, devices, and applications and across all network edges.
Copyright 2023 Fortinet, Inc. All Rights Reserved.