FortiManager provides various CLI commands to diagnose system performance, network connectivity, and policy management issues. Below are some of the most frequently used troubleshooting commands.
When FortiManager slows down or crashes, checking system processes can help identify high CPU or memory usage.
Command:
diag sys top
What it does:
Example Output:
Run Time: 23 days, 14 hours
PID USER PRI NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
1003 root 20 0 325m 85m 15m R 15.3 10.2 1:03.55 fmgd
Solution:
If CPU or memory usage is high, consider restarting unnecessary processes using:
diag sys kill 9 <PID>
(Replace <PID> with the process ID from diag sys top.)
If a FortiGate device cannot connect to FortiManager, use ping and traceroute to check connectivity.
Command to Ping a Target:
execute ping <target_IP>
What it does:
Command to Trace Network Route:
execute traceroute <target_IP>
What it does:
Example Output (Traceroute to FortiGate):
1 192.168.1.1 1.234 ms
2 203.0.113.10 2.345 ms
3 10.10.10.1 3.456 ms
Solution:
FortiManager logs system events, errors, and policy installation failures.
Command to View Debug Logs:
diag debug application fmg -1
What it does:
Example Output:
2024-03-04 10:15:23 fmgd: FortiGate (10.0.0.1) failed to connect - Authentication Error
Solution:
Now, let’s go through common problems and how to fix them.
When a FortiGate device does not appear in FortiManager or is disconnected, follow these steps:
Step 1: Check Firewall Rules on FortiGate
Ensure that FortiGate allows connections from FortiManager.
Use the following command to verify access permissions:
show system interface
Ensure that fgfm (FortiGate-FortiManager communication) is enabled on the management interface:
config system interface
edit "port1"
set allowaccess ping https ssh fgfm
end
Step 2: Verify FortiGate’s Central Management Settings Run the following command on FortiGate to check if it is properly configured for FortiManager:
show system central-management
What it does:
Example Output:
config system central-management
set mode normal
set type fortimanager
set fmg "192.168.1.100"
end
Solution:
If the FortiManager IP is incorrect, update it using:
config system central-management
set fmg <FortiManager_IP>
end
If the FortiGate is disconnected, check network settings and firewall rules.
If a policy fails to install on FortiGate, follow these steps:
Step 1: Check Policy Installation Logs Use FortiManager CLI:
diag debug application install -1
What it does:
Step 2: Common Error Messages and Fixes
| Error Message | Possible Cause | Solution |
|---|---|---|
Installation failed: Policy conflict detected |
Duplicate firewall rules exist. | Remove or modify conflicting policies. |
FortiGate unreachable |
Network issue or device is offline. | Ensure FortiGate is online and accessible. |
Invalid policy configuration |
Misconfigured security profiles. | Check policy objects and correct errors. |
Step 3: Fix Configuration Sync Issues If FortiManager and FortiGate are out of sync, manually resync:
execute refresh-device
What it does:
If FortiManager or FortiGate displays a license error, follow these steps:
Step 1: Check License Status in FortiManager Use:
diag hardware deviceinfo license
What it does:
Step 2: Common License Issues and Fixes
| Issue | Cause | Solution |
|---|---|---|
License expired |
FortiManager or FortiGate subscription expired. | Renew the license through Fortinet Support. |
Device limit exceeded |
Too many FortiGate devices registered. | Upgrade the FortiManager license. |
License not activated |
License file not uploaded. | Upload the license file in System Settings → License Management. |
Step 3: Re-apply a License If a FortiManager license is not recognized, reload it:
execute update-now
What it does:
When troubleshooting device registration, policy installation, or system errors, real-time debug logs provide detailed information.
diag debug enable
diag debug console timestamp enable
diag debug application fmg -1
Explanation:
diag debug enable – Turns on debugging.diag debug console timestamp enable – Adds timestamps to log entries.diag debug application fmg -1 – Displays FortiManager-specific logs.If a FortiGate fails to register with FortiManager, use diagnostic commands to verify communication.
diagnose sys central-management status
Explanation:
If a policy installation fails, use debug logs to identify the issue.
diag debug application install -1
Explanation:
If FortiManager and FortiGate show "Out of Sync", you can debug configuration synchronization.
diagnose dvm device list
Explanation:
If a FortiGate is not appearing in FortiManager, first check if it can reach FortiManager's IP.
execute ping <FortiManager_IP>
Explanation:
If FortiGate is not registered with FortiManager, verify its central management configuration.
show system central-management
Explanation:
If FortiGate is not automatically registering, you can manually add it.
config system central-management
set type fortimanager
set fmg <FortiManager_IP>
end
Explanation:
A FortiGate that was previously connected to FortiManager is now showing as "Disconnected".
What steps should be taken to troubleshoot a disconnected FortiGate device in FortiManager?
Answer:
Check if FortiGate can reach FortiManager:
execute ping <FortiManager_IP>
Verify firewall policies allowing FortiManager communication.
Check FortiGate's system central-management settings:
show system central-management
execute central-management register <FortiManager_IP>
```</ANSWER>
A policy installation in FortiManager fails with an error message.
What steps should be taken to troubleshoot a failed policy installation?
Answer:
Check policy package logs:
diag debug application install -1
Ensure the policy is assigned to the correct ADOM.
Run Retrieve Config to update FortiManager with FortiGate’s latest settings.
If "Out of Sync," force synchronization:
execute refresh-device
```</ANSWER>
A security team receives a license error message in FortiManager.
diag hardware deviceinfo license
Explanation:
diag sys top to monitor CPU and memory usage.diag debug application fmg -1.execute ping <FortiManager_IP> to check connectivity from FortiGate.execute traceroute <FortiManager_IP> to identify network delays.execute refresh-device if configurations are out of sync.diagnose dvm device list to check sync status.diag debug application install -1 to check why a policy failed.diag hardware deviceinfo license to check license validity.What does a device out-of-sync status indicate in FortiManager?
The device configuration differs from the FortiManager database configuration.
Out-of-sync status occurs when configuration changes are made directly on the FortiGate instead of through FortiManager. Because FortiManager stores its own configuration database, these changes create a mismatch between the two configurations. Administrators must retrieve or import the device configuration to synchronize the databases before installing new policies.
Demand Score: 90
Exam Relevance Score: 94
Why might a policy installation fail during deployment?
Configuration conflicts or missing objects may prevent the installation.
Policy installation failures often occur when referenced objects do not exist, configurations conflict with device settings, or the device database is out of sync. FortiManager generates an installation script based on the policy database, and any mismatch between the database and the device configuration can cause errors. Administrators should review installation logs to identify the specific issue.
Demand Score: 92
Exam Relevance Score: 95
Why is reviewing installation logs important during troubleshooting?
They provide detailed information about configuration errors and deployment failures.
When FortiManager installs policies or configuration changes, it generates logs showing each step of the deployment process. If an error occurs, the logs indicate which configuration element failed. This helps administrators quickly identify issues such as invalid objects, incompatible settings, or device communication problems.
Demand Score: 82
Exam Relevance Score: 88
What troubleshooting step should be taken when device configuration changes are not reflected in FortiManager?
Perform a configuration retrieval from the device.
Configuration retrieval updates the FortiManager device database to match the current configuration on the FortiGate. This is necessary when changes are made directly on the device outside of FortiManager management.
Demand Score: 80
Exam Relevance Score: 90
Why should administrators avoid making direct configuration changes on FortiGate devices when using FortiManager?
It can cause configuration synchronization issues.
Direct changes on the device bypass the FortiManager database. This creates inconsistencies between the centralized management configuration and the device configuration, potentially causing installation failures or policy conflicts.
Demand Score: 78
Exam Relevance Score: 87
What is the first step when troubleshooting policy installation errors?
Review the installation preview and logs.
Installation preview shows the configuration changes that will be applied to the device, while logs provide detailed error messages if the installation fails. Together, they help identify configuration mismatches, missing objects, or device-level conflicts.
Demand Score: 83
Exam Relevance Score: 91