Fortinet black logo

CLI Reference

user fortitoken

user fortitoken

Use this command to register and view FortiTokens.

config user fortitoken
    edit {serial-number}
    # Configure FortiToken.
        set serial-number {string}   Serial number. size[16]
        set status {active | lock}   Status
                active  Activate FortiToken.
                lock    Lock FortiToken.
        set seed {string}   Token seed. size[200]
        set comments {string}   Comment. size[255]
        set license {string}   Mobile token license. size[31]
        set activation-code {string}   Mobile token user activation-code. size[32]
        set activation-expire {integer}   Mobile token user activation-code expire time. range[0-4294967295]
        set reg-id {string}   Device Reg ID. size[256]
        set os-ver {string}   Device Mobile Version. size[15]
    next
end

Additional information

The following section is for those options that require additional explanation.

activation-code <code>

Note: This entry is not configurable from the CLI. From the GUI, the token must be assigned to a user and the activation code sent from the FortiGate to the user's email.

activation-expire <expire-time>

Note: This entry is not configurable from the CLI. From the GUI, the token must be assigned to a user and the activation code sent from the FortiGate to the user's email. The email will tell the user by when they must activate their token.

license <license>

Enter the FortiToken Mobile license. You can retrieve the token's license by entering get, or by using its activation-code in the following command:

execute fortitoken-mobile import <activation-code>

serial-number

This is the serial number of the FortiToken device

status {active | lock}

Activate (by default) or lock the FortiToken.

user fortitoken

Use this command to register and view FortiTokens.

config user fortitoken
    edit {serial-number}
    # Configure FortiToken.
        set serial-number {string}   Serial number. size[16]
        set status {active | lock}   Status
                active  Activate FortiToken.
                lock    Lock FortiToken.
        set seed {string}   Token seed. size[200]
        set comments {string}   Comment. size[255]
        set license {string}   Mobile token license. size[31]
        set activation-code {string}   Mobile token user activation-code. size[32]
        set activation-expire {integer}   Mobile token user activation-code expire time. range[0-4294967295]
        set reg-id {string}   Device Reg ID. size[256]
        set os-ver {string}   Device Mobile Version. size[15]
    next
end

Additional information

The following section is for those options that require additional explanation.

activation-code <code>

Note: This entry is not configurable from the CLI. From the GUI, the token must be assigned to a user and the activation code sent from the FortiGate to the user's email.

activation-expire <expire-time>

Note: This entry is not configurable from the CLI. From the GUI, the token must be assigned to a user and the activation code sent from the FortiGate to the user's email. The email will tell the user by when they must activate their token.

license <license>

Enter the FortiToken Mobile license. You can retrieve the token's license by entering get, or by using its activation-code in the following command:

execute fortitoken-mobile import <activation-code>

serial-number

This is the serial number of the FortiToken device

status {active | lock}

Activate (by default) or lock the FortiToken.