FortiNAC
NOTE: FortiNAC is now named FortiNAC-F. For post-9.4 articles, see FortiNAC-F. FortiNAC is a zero-trust network access solution that provides users with enhanced visibility into the Internet of Things (IoT) devices on their enterprise networks.
Anonymous
Not applicable
Article Id 200277
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 <- 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.
    Hint: 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.
  • 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

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 9.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 this article:

  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:

Technical-Tip-Installing-new-or-changing-license-on-FortiNAC

FortiNAC License Upgrade Guide