Skip to main content
cmaheu
Staff
Staff
January 12, 2022

Troubleshooting Tip: Unable to update license on Primary Server with licenseKeyPrimary file

  • January 12, 2022
  • 0 replies
  • 1246 views
Description

This article explains about the issue where updated license key on Primary Server does not apply after restarting processes even though the .licenseKey file shows updated.

 

> licensetool -key FILE -file /bsc/campusMgr/.licenseKey
FILE:
serial = xxxxxxxxxxxx
type = NetworkControlManager
level = PRO
count = 7000 <--- New count
expiration = 0
expired = false
mac = xx:xx:xx:xx:xx:xx
uuid = xxxxxx-xxxx-xxxx-xxxx-xxxxxxxxx
certificates = [xxxxxxxxxxxxxxxxxxxxxxxxx, xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx]

 


> licensetool -key EFFECTIVE
EFFECTIVE:
serial = xxxxxxxxxxxx
type = NetworkControlManager
level = PRO
count = 6000 <--- Old count
expiration = 0
expired = false
mac = xx:xx:xx:xx:xx:xx
uuid = xxxxxx-xxxx-xxxx-xxxx-xxxxxxxxx
certificates = [xxxxxxxxxxxxxxxxxxxxxxxxx, xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx]

 

This can occur if there is a /bsc/campusMgr/.licenseKeyPrimary file on the Primary server with the older entitlements.


licensetool -key FILE -file /bsc/campusMgr/.licenseKeyPrimary
FILE
serial = xxxxxxxxxxxx
type = NetworkControlManager
level = PRO
count = 6000 <----- Old count
expiration = 0
expired = false
mac = xx:xx:xx:xx:xx:xx
uuid = xxxxxx-xxxx-xxxx-xxxx-xxxxxxxxx
certificates = [xxxxxxxxxxxxxxxxxxxxxxxxx, xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx]

Scope All versions.
Solution

Remove /bsc/campusMgr/.licenseKeyPrimary from the Primary Server.

This file should only reside on the Secondary Server.

 

1) Log in to the PRIMARY SERVER CLI as root and type:


cd /bsc/campusMgr/

rm .licenseKeyPrimary

 

2) Restart services so the entitlements are reloaded. Run the command:


shutdownNAC

 

Wait for 30 seconds.

 

startupNAC

 

Contact Support for assistance. 

 

For instructions on upgrading licenses and applying to High Availability environments, refer to the License Upgrade Guide.