Diagnose FortiToken Cloud
Use the following commands to diagnose and troubleshoot FTC issues.
debug Enable/disable debug output. server IP address port number and https. show Display diagnostics information. delete Command to delete a user. clear Clear server connection settings for diagnostics. migrate-ftm Perform FTM license migration. set-http Set HTTP status return code for diagnostics only. sync Synchronize user information with FortiToken Cloud.
Examples
FG100D3G13804897 (global) # diag fortitoken-cloud debug {enable | disable}
FG100D3G13804897 (global) # diag fortitoken-cloud server
FG100D3G13804897 (global) # diag fortitoken-cloud show {server | realm | users | user <username> <VDOM>}
FG100D3G13804897 (global) # diag fortitoken-cloud delete <username>
FG100D3G13804897 (global) # diag fortitoken-cloud set-http <number>
FG100D3G13804897 (global) # diag fortitoken-cloud clear <Enter>
FG100D3G13804897 (global) # diag fortitoken-cloud sync { <Enter> | all | local | remote }
The diag fortitoken-cloud sync
command requires you to specify the type of user to sync to FortiToken Cloud:
diagnose fortitoken-cloud sync ? <user type> {Enter <return> | all | local | remote}
The "local"
and "remote"
options for the above command apply to FOS 6.4.0 or later. They do not apply to FOS 6.2.3 which does not distinguish between local and remote users.
FGVM01TM21005936 (global) # diagnose fortitoken-cloud migrate-ftm <string> Enter command: show, start, abort, add-users, delete-users, ftm2ftc. FGVM01TM21005936 (global) # diagnose fortitoken-cloud migrate-ftm show <string> FTM license number. FGVM01TM21005936 (global) # diagnose fortitoken-cloud migrate-ftm start <string> FTM license number. FGVM01TM21005936 (global) # diagnose fortitoken-cloud migrate-ftm abort <string> FTM license number. FGVM01TM21005936 (global) # diagnose fortitoken-cloud migrate-ftm add-users <string> FTM license number. FGVM01TM21005936 (global) # diagnose fortitoken-cloud migrate-ftm delete-users <string> FTM license number. FGVM01TM21005936 (global) # diagnose fortitoken-cloud migrate-ftm ftm2ftc <string> FTM license number.
The above diagnose CLI command shows FTM license migration status, start migration process, abort migration process, add-users into FTC and delete-users from FTC, and force to covert two-factor authentication from FortiToken to FortiToken Cloud during the migration.