Created on
12-22-2021
07:50 AM
Edited on
11-23-2025
06:00 AM
By
Jean-Philippe_P
| Description |
This article describes how to register a FortiGate to FortiManager from the CLI. |
| Scope | FortiGate, FortiManager. |
| Solution |
Start by setting up the configuration on the FortiGate with the following commands:
config system central-management
The FortiGate will then be visible in the FortiManager in the Root ADOM under the Unauthorized Devices:
It is now possible to authorize the unit on the FortiManager.
Starting from version 6.0, FortiManager will use the default admin/<blank password> to contact the FortiGate by default. Therefore, if the FortiGate admin password is not blank, FortiManager will be unable to authorize the device, and authorization will fail.
Also, an error might be seen in the FortiGate CLI as below :
(central-management) $ end
These 2 possibilities to work around this issue:
execute batch start end
config system central-management set serial-number "FMG_SN" end
Once one of the workarounds has been applied, it will be possible to authorize the FortiGate from the FortiManager GUI.
Alternatively, it is possible to configure the FortiManager to automatically accept registration requests from the FortiGate.
On the FortiManager:
config system admin setting end
On the FortiGate:
config system central-management
execute central-mgmt register-device <- FortiManager serial number, password on the FortiManager.
Note: If the FortiManager is connected to the FortiGate over the IPsec tunnel source IP address needs to be configured under FortiGate central-management.
config system central-management
The FortiGate will then be automatically registered on the FortiManager. If ADOM is enabled, it will be added to the root ADOM.
diagnose fdsm central-mgmt status
Related articles: |
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 2025 Fortinet, Inc. All Rights Reserved.