Skip to main content
Esteemed Contributor III
Dec 6, 2021 10:22 AM UTC

Technical Tip: Installing new or changing license on FortiNAC appliance from CLI

Description

This article describes how to change or install a new license for a FortiNAC appliance via the CLI, when a change in any of the following license components are required:

  • Number of concurrent endpoint licenses.

  • License type (e.g. upgrading from Plus to Pro).

  • UUID or MAC address due to a FortiNAC appliance migration.

Scope

FortiNAC v8.x, 9.x, FortiNAC-F v7.2.x, v7.4.x.

Solution

In order to achieve this, FortiNAC should be accessed via a terminal emulator with the root credentials.

Follow these steps:
 

  1. Download the new license from the support portal. Refer to page 14 of this guide.
     

  2. Access FortiNAC via a terminal emulator like PuTTY with root credentials.

 

ethomollari_0-1638725050613.png

 

  1. Navigate to the directory /bsc/campusMgr.

 

cd /bsc/campusMgr
ls -la 


'ls -la' is an optional step to check the contents of the directory. An existing license is highlighted in yellow and noted with the red arrow.

 

ethomollari_1-1638725640492.png

 

  1. Rename the existing licenseKey to .licenseKeyOLD with the command below:
     

mv .licenseKey .licenseKeyOLD

  

  1. Create a new file named .licenseKey using the nano or VI editor.
     

nano .licenseKey

 

ethomollari_2-1638726113688.png

 

  1. Paste the key from the license file downloaded in step 1.
    Tip: It can be opened with notepad and must start with FNC: 

  

ethomollari_3-1638726279771.png

 

 
The end of the key should terminate with two delimiter characters (==).

  • Press Ctrl + O to save the file.

  • Press Ctrl + X to finish and exit the editor.

 

 

  1. Restart the FortiNAC appliance with this command:

restartNAC


ethomollari_4-1638726769423.png

 

  1. The new license now should be applied. It can be checked via the CLI.


licensetool -check
entitlementstool

 

ethomollari_5-1638728291195.png

 

Note:

This method can be used if the FortiNAC appliance is not reachable via the GUI because of a 'processes are down' error or if the license is not applicable via ConfigWizard, like in v9.2.0 where ConfigWizard is not a separate webservice and is included in the main GUI instead.

 

In a FortiNAC-F environment, refer to the steps in Technical Tip: How to add a license to FortiNAC-F v7.x from the CLI:

  1. Download the new license file from the support portal.
    Refer to page 9 of the FortiNAC upgrade license guide.

  2. Log in to the FortiNAC CLI and issue the following command:


execute license add <license file contents>


For example:

execute license add FNC:KEgYrWC34d59R....


Related articles:

    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