FortiManager
FortiManager supports network operations use cases for centralized management, best practices compliance, and workflow automation to provide better protection against breaches.
rameshk_FTNT
Staff
Staff
Article Id 191000
Description
This article explains how the configuration file of a FortiGate can be retrieved by a FortiManager through the GUI or the CLI.
Retrieving the configuration file using CLI can be used to gather more debug information if the retrieve process fails in the GUI.

Scope


Solution
Use the following debug to retrieve the OID of the device in question:
#diagnose dvm device list
Once the OID value is known, the following command can be executed to retrieve the configuration file of the device in question:
#diagnose test deploymanager reloadconf                  <------OID value from the previous step


Sample Configuration:
# diagnose dvm device list
--- There are currently 2 devices/vdoms managed ---

TYPE            OID    SN               HA      IP              NAME                                 ADOM                                 IPS                FIRMWARE

fmg/faz enabled 158    FGVM0X00000XXXX -       10.5.60.3       FGVM010000******                     root                                 6.00741 (regular)  5.0 MR4 (7605)
                |- STATUS: db: not modified; conf: out of sync; cond: unknown; dm: autoupdated; conn: down
                |- vdom:[3]root flags:1 adom:root pkg:[imported]FGVM010000******

where the OID will be 158 for the respective FortiGate.
# diagnose test deploymanager reloadconf 158

Contributors