Created on
11-30-2023
09:33 PM
Edited on
08-12-2025
05:26 AM
By
Anthony_E
This article explains how to use a script to upload the configuration of FortiGate devices to FortiManager. The script can be executed for multiple FortiGates simultaneously, enabling bulk retrieval.
Bulk retrieval may be necessary if a large-scale disconnection occurs between FortiGate devices and FortiManager, and local changes made to the firewalls need to be synchronized back to FortiManager.
Warning:
Running this process for a large number of FortiGates may result in high bandwidth consumption and performance issues.
After retrieving the configuration, the policy package status will change to unknown.
To minimize performance impacts, it is recommended to run the script for a maximum of 200 devices at a time.
FortiManager.
diagnose fdsm cfg-upload 'comment' <----- Any comment can be set, it will be used to identify the retrieve in the revision history.
Note:
For FortiGates with VDOMs enabled, the script should be modified to this:
config global
diagnose fdsm cfg-upload 'comment'
Note 1:
Script Status/logs can also be checked from: System Settings -> Task Monitor:
Note 2:
Bulk retrieval can also be done by selecting the notification icon on the top, but it only works if the devices are either in a 'conflict' or 'out-of-sync' state.
Troubleshooting Tip: FortiGate is Out-of-sync in the Device Manager
Technical Tip: Bulk retrieve device configuration from managed devices
Technical Tip: Retrieve configuration file using GUI or CLI from a FortiManager
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.