On FortiGate: Go to 'Security Fabric -> Settings -> Central Management -> FortiManager Cloud' and check whether the option for FortiManager Cloud is greyed out or not.
Run the following commands and attach the output to the ticket:
get sys status
get sys global
get system central-management
fnsysctl ls -l /etc/cert/local/
fnsysctl ls -l /etc/cert/ca
diagnose fdsm central-mgmt-status
execute telnet <FMG-IP> 541
 If the source IP is not configured under 'config system central-management', add it:
config system central-management
  set fmg-source-ip <FGT-IP>
end
 On FortiGate, register the FortiManager device serial number:
execute central-mgmt register-device {fmg-serial-no} {fmg-register-password}
 Replace {fmg-register-password} with the registration password.  Reinitiate the connection from the FortiGate CLI by restarting the 'FGFM' daemon:
fnsysctl killall fgfmd
 Note:
config system global
set fgfm-allow-vm enable
end
 On FortiManager: Reclaim the tunnel from the CLI using the following syntax:
execute fgfm reclaim-dev-tunnel <device_name>Â
(Use 'diagnose dvm device list' to get the device ID).
 Delete the device from FortiManager and add it again (if needed). Run FortiGate-FortiManager (FGFM) connection debugs on both sides and provide the output to the ticket:
On FortiGate session #1:
diagnose debug reset
diagnose debug application fgfm 255
diagnose debug console time enable
diagnose debug enable
On FortiGate session #2:
diagnose sniffer packet any 'port 541' 6 0 a
 On FortiManager:
diagnose debug reset
diagnose debug application fgfm 255 <IP address or Serial Number of the FGT>
diagnose debug time enable
diagnose debug enable
execute fgfm reclaim-dev-tunnel <device_name>
diagnose fgfm session-list <device ID>
 Run these debug commands for 2-3 minutes and then disable them:
diagnose debug disable
diagnose debug resetÂ
Related articles: |