Troubleshooting Tip: Restoring FortiManager or FortiAnalyzer configuration when admin password is lost
Description
This article describes what to do when access to the admin password for a FortiManager or FortiAnalyzer unit is lost.
Scope
FortiManager, FortiAnalyzer.
Solution
FortiManager or FortiAnalyzer products since version 5.4.0 do not have a password recovery mechanism (maintainer account) as there is in FortiOS.
There are two approaches for dealing with this scenario.
![]() | Special precautions must be taken if workflow mode is in use (see below). |
- BIOS Configuration Menu (Does NOT require a configuration backup file).
For FortiManager and FortiAnalyzer appliances, formatting flash and reloading the image (from the BIOS configuration menu) will erase the system settings, including the administrative accounts.
![]() | System settings include IP and routes. Access to the serial console to reconfigure IP and routing is required to restore remote connectivity. |
![]() | For FortiManager and FortiAnalyzer VMs, the above step is not an option. Workflow sessions are lost when using this approach. |
- Migrate Command (Requires a configuration backup file).
Starting in v5.4.1, the CLI command:
execute migrate all-settings <ftp/scp/sftp> <server ip:port> <path_filename> <username> <password>It was introduced, allowing a backup of the configuration file to be loaded onto a new FortiManager/FortiAnalyzer VM.
See also related KB Article 'Using 'exec migrate' to migrate to a new FortiAnalyzer/FortiManager model'.
This approach is the main one for virtual machines (VMs) because approach #1 applies only to hardware appliances and not to VMs.
Here are the steps:
- Create a new VM.
![]() | Prior to running exec migrate: If workflow mode was in use on the original unit, workflow mode should be enabled on the new unit PRIOR to running execute migrate. If this order is followed, workflow sessions are preserved. Also, if multiple ADOMs were previously in use, enable ADOMs first. |
- Run the execute migrate command.
- The factory default admin account and password can be used (system settings are not restored).
Related articles:
