Support Forum
The Forums are a place to find answers on a range of Fortinet products from peers and product experts.
fortiFWuser
Contributor

Fortiguard login from cli

Hello, 

 

I have a fortigate and it is registered to forticloud. 

 

I would like to change the account it is registered to. I have done it previously  through CLI, but I cannot find the correct command. 

 

I have found this page but I get an error

https://community.fortinet.com/t5/FortiGate/Technical-Tip-Logging-in-to-FortiCloud-from-FortiGate-CL...

 

Any help appreciated

 

Thanks and regards, 

Konstantinos

1 Solution
srajeswaran
Staff
Staff

This message states the password is incorrect. Are you able to login to the portal directly with this password? Can you reset your password and then try.

Regards,

Suraj

- Have you found a solution? Then give your helper a "Kudos" and mark the solution.

View solution in original post

6 REPLIES 6
srajeswaran
Staff
Staff

Can you share the OS version and the error you are getting.

Regards,

Suraj

- Have you found a solution? Then give your helper a "Kudos" and mark the solution.

fortiFWuser
Contributor

Hello, 

Version is v7.0.9 build0444

and the error is 

Failed: FortiCloud system error(-400)
Command fail. Return code 5

 

Regards, 

Konstantinos

srajeswaran
Staff
Staff

Did you specify the domain name while executing the command? I see this error when the domain name is not specified, it works fine when I use "global" as domain.

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

 

 

Regards,

Suraj

- Have you found a solution? Then give your helper a "Kudos" and mark the solution.

fortiFWuser
Contributor

Yes I input either europe or Europe but I get the following 

 

Failed: Error password(-403)
Command fail. Return code 5

 

It is the same with global

 

Regards, 

Konstantinos

srajeswaran
Staff
Staff

This message states the password is incorrect. Are you able to login to the portal directly with this password? Can you reset your password and then try.

Regards,

Suraj

- Have you found a solution? Then give your helper a "Kudos" and mark the solution.

fortiFWuser
Contributor

Great Suraj, 

 

I had the wrong password..

The lesson is .. do not trust the customer.. hahah

 

Regards, 

Konstantinos

Labels
Top Kudoed Authors