Skip to main content
sotir1984
New Member
June 5, 2017
Question

How to check account via CLI

  • June 5, 2017
  • 2 replies
  • 26618 views

Hi,

 

Does anyone know how to check to which account is the device registered via CLI?

 

-sotir1984-

    2 replies

    a_acampa
    New Member
    July 7, 2017

    I suppose you mean account for license and support.

    i don't know if exist this type of command

    Via cli you can use: 

    get sys fortiguard-service status

    get sys fortiguard  but you can see status of updates and license, the accout is not showned

    emnoc
    New Member
    July 7, 2017

    You can do the following

     

    diag debug reset

    diag debug app update -1 diag debug enable

     

    Now run the following and capture to a file

    exec update-now

     

     

    Look for the contract names and email.

     

    EDIT alternative you can use the  hidden fnsysctl cmd

     

    fnsysctl more  /etc/upd.dat

     

    That file 1st line would be account  detail ( email )

     

     

    Ken

     

    Matt_B
    Staff & Editor
    Staff & Editor
    December 3, 2025

    Thread is old, but to avoid the use of fnsysctl (which loses permissions to read /etc/upd.dat in later firmware versions), use "diagnose test update info" to retrieve the FortiCare account FortiGate believes it is registered to.

    diagnose test update info | grep "Support contract" -A 4

    Is it a bug, is it a feature? It's... not in spec!