Description |
This article describes how to migrate FortiManager or FortiAnalyzer to a different platform. These article's steps are intended for migration between different platforms such as a different hardware model, different VM environments, or from hardware to a VM. |
Scope | FortiManager, FortiAnalyzer. |
Solution |
Note: In the case of migrating between VM environments, 'exec restore' can be used instead of 'exec migrate' to load the configuration. This allows for system settings to be copied over. The license can run on 2 systems at the same time for a grace period of 7 days.
Config migration:
execute backup all-settings {ftp | sftp} <ip:port> <path/filename> <username> <password> <crptpasswd>
For example:
exe backup all-settings sftp 192.168.1.100:22 /home/fortinet/Downloads/ username password backup-file-pwd # Starting transfer the backup file to SFTP server...
Note: It is mandatory to enter password <crptpasswd> for the backup file in the latest firmware version.
This step is only applicable when migrating between VM platforms.
execute migrate all-settings <ftp/scp/sftp> <server ip> <path/filename> <username> <password> <crptpasswd>
For example:
exe migrate all-settings sftp 192.168.1.100:22 /home/fortinet/Downloads/backup.dat username password backup-file-pwd This operation will replace the current databases and reboot the system. Starting transfer the backup file from SFTP server...
Technical Tip: Backup and restore of FortiAnalyzer settings, logs and reports
execute backup logs <device name(s)| all> <ftp/sftp/scp> <ip> <user name> <password> <directory> execute backup reports <report name or all> <ftp/sftp/scp> <ip> <user name> <password> <directory>
execute restore logs <device name(s)| all> <ftp/sftp/scp> <ip> <user name> <password> <directory> execute restore reports <report name or all> <ftp/sftp/scp> <ip> <user name> <password> <directory>
execute sql-local rebuild-db
diag sql status rebuild-db
Update FortiGate configuration settings:
For FortiAnalyzer:
exe batch start config log fortianalyzer setting set server <<new FAZ IP address>> set serial <<new FAZ serial number>> end
fnsysctl killall miglogd
For FortiManager:
exe batch start config system central-management set fmg <<new FMG IP address>> set serial-number <<new FMG serial number>> end exe batch end
fnsysctl killall fgfmd
execute fgfm reclaim-dev-tunnel --> For all managed FortiGates. execute fgfm reclaim-dev-tunnel <device_name> force --> For specific FortiGate.
Related articles: Technical Tip: Using exec migrate to migrate to a new FortiAnalyzer/FortiManager model |