What it actually does
When you run diagnose fdsm contract-controller-update, you are manually triggering the logic that syncs the FortiGate’s entitlement status with its controller. It focuses on:
Contract Validation – Updating the status of support contracts (e.g., 24x7 FortiCare).
License Synchronization – Ensuring the FortiGate knows which licenses are active (UTM/ATP bundles, Web Filtering, etc.) as reported by the FortiManager.
Controller Alignment – Refreshing the connection to the management IP that is authorized to provide these updates.
When to use it
You’ll typically run this in your lab or production environment when:
* You’ve just added a new license to FortiManager, but the FortiGate still shows Expired or Unlicensed.
* The FortiGate is in a closed network (no internet access) and is relying on FortiManager for its local FDS/Contract info.
* You see Contract info is invalid errors in the GUI.
How to analyze the output
To get any value from it, you usually need to enable the debug console first:
diagnose fdsm contract-controller-update
get sys fortiguard-service status
What to look for
SSL Errors – If the FortiGate can’t verify the FortiManager’s certificate, the update will fail here.
IP/Port Mismatch – It will show the IP address the FortiGate is trying to reach. If this doesn’t match your FortiManager’s DevProf or System IP, you’ve found your bug.
Success Code – You’re looking for a `200 OK` or a successful parsing of the XML/JSON payload containing the contract dates.