Skip to main content
FortiElie
Staff
Staff
Aug 30, 2023 12:07 PM UTC

Technical Tip: How to add a license to FortiNAC-F v7.x from the CLI

  • Sep 10, 2026 11:41 AM UTC
  • 0 replies
  • 3979 views
  • Translate All

Description

This article describes how to add a license to FortiNAC-F v7.x from the CLI when the GUI is not reachable.

Scope

FortiNAC-F v7.x.

Solution

Verify that the GUI is not accessible because the license has expired:

get system status
Version: FortiNAC-HyperV v7.2.8,build0149,241111 (GA)
Serial-Number: FNVXCATM2000000
License Status: Unlicensed
License Expiration Date: Fri Jan 03 10:15:03 2025
Hostname: fnac
Release Version Information: GA
System Time: Fri Jan 03 15:52:27 2025

 
Download the new license file from the Support portal, refer to License Upgrade Guide.

The license content can be opened with a text editor and pasted in the FortiNAC CLI by issuing the following command:

execute license add <license file contents>

 

For example:

execute license add FNC:KEg.....E/kg==


license.PNG

 

Note: It will include multiple lines of content, approximately 40 lines, depending on the emulator resolution. Make sure to copy all the content of the file, and in the end, press Enter.

It is also possible to import the license from an external TFTP server by using the following command:

execute license import tftp <license-filepath> <remote-host>


For example, assuming the license is in the root directory of the TFTP server:

execute license import tftp FNVXxyz.lic 10.48.48.123


tftp.PNG

 

After applying the new license, stop/start the NAC application and verify the license again:

execute service stop nacapplication
execute service start nacapplication
get system status
Version: FortiNAC-HyperV v7.2.8,build0149,241111 (GA)
Serial-Number: FNVMCATM2000000
License Status: Valid
License Expiration Date: Sat Jan 03 15:56:23 2026
Hostname: fnac
Release Version Information: GA
System Time: Fri Jan 03 16:15:20 2025

 

The GUI should be available after 10 to 15 minutes.

Note:
The latest versions of FortiNAC support licensing through FortiFlex.

execute license vm
Usage:  execute license vm <licenseToken>
Retrieve a VM license from FortiFlex using the specified license token
  <licenseToken>            License Token


Additional details are available in the following documentation: FortiFlex Reference Manual.

Related documents:

Risk and Resilience in the Age of AI. An OT Thought Leadership Summit for Houston's Critical Infrastructure Leaders. Date: Thursday, December 3, 2026. Time: 8:30 am - 1:30 pm (CT). Location: The Westin Houston, Memorial City | 945 Gessner Road, Houston, TX 77024