Skip to main content
calvinc97
Staff & Editor
Staff & Editor
January 22, 2025

Technical Tip: Clearing license entries in the database

  • January 22, 2025
  • 0 replies
  • 279 views
Description

This article provides a method to clear license entries in the database.

Scope FortiSOAR.
Solution

When the license table has additional entries of a license, it is required to have only one license in the database.

This can occur when the database is externalized and the application server is cloned or restored from backup, as the uuid is changing.

 

Note:

Take a snapshot for revert in case of any issues before proceeding with the below:

 

  1. Run the following command below on FortiSOAR SSH to enter the database:

 

# psql -U cyberpgsql -d das <----- Password is the device uuid = # csadm license --get-device-uuid.

 

  1. List out all existing license files and verify them accordingly:

 

das=# select serial_no,hardware_key from envc

 

  1. Run the command below to truncate the env file, clearing all license entries in the database:

 

truncate envc;

 

After that, proceed to access the GUI and deploy the correct license on the FortiSOAR.

Thought Leadership Security Summit. Outpace New Threats with AI - enhanced defense. Tuesday, Septmeber 15, 8:30 AM - 2:30 PM PT. The Golf Club at Newcastle, WA.
Fortinet Flag the Hack. Wednesday, August 26, 9:00 AM - 5:00 PM ET, COSM, Atlanta, GA.