FortiGate
FortiGate Next Generation Firewall utilizes purpose-built security processors and threat intelligence security services from FortiGuard labs to deliver top-rated protection and high performance, including encrypted traffic.
haljawhari
Staff
Staff
Article Id 193664

Description


This article explains how to integrate FortiGate with FortiCloud account from the CLI in case of issues with GUI (that is, GUI is inaccessible or the FortiCloud account has a long password).

 

Scope


FortiGate and FortiCloud.

 


Solution

 

From a console or SSH connection, run the following command:


execute fortiguard-log login <email> <password> <domain>

Domain can be Global/US/Europe

 

Troubleshooting

 

When trying to change a FortiCloud user from a previous account to a newer account, the below error appears.

 

"Failed: FGT internal error(-1)

Command fail. Return code 5"

 

Clearing the service-account-id on the FortiGate may resolve this issue.

 

config system fortiguard

unset service-account-id

end

 

The following commands will enable debug logging for troubleshooting:

 

diagnose debug console timestamp enable

diagnose debug application forticldd -1

diagnose debug enable

 

To disable debug logging, run the following command:

 

diagnose debug reset diagnose debug disable

 

Note:
The commands 'execute 'fortiguard-log' login and 'unset service-account-id' are hidden commands and must be manually typed in. The auto-complete feature will not work for those.