Ran execute factory reset on a FortiGate and now the two free FortiToken Mobile licenses are gone from User & Authentication > FortiTokens? Good news: nothing was actually lost. Here is the fast fix.
Why This Happens
The two free tokens are FortiToken Mobile trial licenses, tracked under a license string that looks like FTMTRIALXXXXXXXX. That license lives against your FortiGuard entitlement, not in the local config file. A factory reset wipes the local config user fortitoken table, so the GUI shows zero tokens, but the trial entitlement itself is untouched. You just need to pull it back down.
The Fix
Step 1: Confirm FortiGuard reachability.
The trial download is a live request to FortiGuard, so the unit needs to be registered and able to reach FortiGuard first. Check the License Information widget on the Dashboard, or confirm the serial number shows as registered on the Fortinet Support portal, before moving on.
Step 2: Import the trial tokens (GUI).
Go to User & Authentication > FortiTokens > Create New > Mobile Token. You may also see an Import Free Trial FortiToken button on the same page. Enter the activation code below, hyphens included, then click OK.
0000-0000-0000-0000-0000
Step 2 (alternative): Import the trial tokens (CLI).
execute fortitoken-mobile import 0000-0000-0000-0000-0000
Step 3: Verify.
Both tokens should reappear in the FortiTokens list under the FTMTRIAL license, ready to assign to users or admin accounts.
A Note on VDOMs
If VDOMs are enabled, the trial tokens live in the management VDOM, which is root by default. Run the import from there.
Common Errors
| Error | Meaning | Fix |
|---|---|---|
| -7571 | Unit not registered, or no FortiGuard reachability yet | Confirm registration on the Support portal and internet/FortiGuard path, then retry |
| -7566 | Malformed activation code | Re-enter as 0000-0000-0000-0000-0000, hyphens included |