Technical Tip: Send/resend FortiToken Activation email for a FortiGate user via FortiManager
| Description | This article describes how to send or resend the FortiToken activation email for a FortiGate user from FortiManager. |
| Scope | FortiManager, FortiGate, FortiToken. |
| Solution | FortiGate Users and FortiTokens are managed in FortiManager ADOM DB (Policy & Objects) and cannot send or resend FortiToken activation email directly.
The solution is to use the FortiManager script.
In FortiManager Device Manager -> Scripts -> Create New: Set run on 'Remote FortiGate Directly (via CLI)' and use the command below:
execute fortitoken-mobile renew <FortiToken-Serial>
execute fortitoken activate <FortiToken-Serial>
To manually check the FortiToken activation code (can be found in FortiGate CLI only) use a Tcl script to fetch it from the FortiGate:
Enable the Tcl script option in FortiManager:
config system admin setting (setting) set show_tcl_script enable (setting) end
Go to Device Manager -> Scripts, select type TCL Script and select 'Create new'.
Create the following TCL script:
#! /usr/bin/tclsh # --- user options --- proc do_cmd {cmd} { # Get system status with a 15s timeout # Detect VDOM status # Enter VDOM if enabled # Show FortiToken configuration (optionally filtered by serial) return
Related documents: Technical Tip: FortiToken email activation via FortiGate shows Failed to send activation code error |

