License Activation Fails
Symptom
A license file fails to be activated.
Possible Causes
- The license file name is invalid. (The system displays the message "Error: The filename is invalid, and the postfix of the file name must be 'dat'.")
- The license file does not exist. (The system displays the message "Error: The specified file does not exist or is illegal.")
- The license file is not saved in the root directory. (The system displays the message "Error: The license file should been in root directory.")
- The license file does not match the device type. (The system displays the message "Info: License File Product invalid.")
- The ESN in the license file does not match the device ESN (case-sensitive). (The system displays the message "Info: License File with ESN or Version mismatch cannot be activated repetitively.")
- The license file is invalid. (The system displays the message "Info: File has been actived before!")
- The license file has expired. (The system displays the message "Info: License File expired.")
- The license file has been modified. (The system displays the message "Info: GTL verify license failed, change an authentic license please.")
- In the scenario where ACs work in hot standby (HSB) mode, the license is not synchronized because the link between the active and standby ACs is not set up.
- The available memory of the AP is insufficient for storing the RTU license file. (The display ap rtu status all command output displays "Flash memory not enough.")
- The delivered RTU license is invalid. (The display ap rtu status all command output displays "Invalid license.")
- The AP does not support RTU licenses. (The display ap rtu status all command output displays "Not support.")
Troubleshooting Procedure
- Check whether the license file exists and is saved to the correct directory.
- Run the dir flash:/*.dat command to check whether the license file exists and is saved to flash:/.
- The license file must be saved to the default root directory in the storage device.
- The root directory of the AC6003 and AC6005 is sdcard:/, and that of the AC6800V is disk:/.
<HUAWEI> dir flash:/*.dat Directory of flash:/ Idx Attr Size(Byte) Date Time(LMT) FileName 0 -rw- 1,578 Sep 08 2015 19:49:22 LICQPZQ6F901HL_210235791710F9000002.dat
- If no license file exists in the flash:/ directory, you can use FTP or SFTP to upload a license file to the root directory.
- Run the dir flash:/*.dat command to check whether the license file exists and is saved to flash:/.
- Check whether the license file name is correct.
- Check whether the license file name is correct and complete when the license file is activated.
The license file must use .dat as the file name extension and be saved to the default root directory in the storage device.
<HUAWEI> license active LICQPZQ6F901HL_210235791710F9000002.dat
- If the message "Error: The specified file does not exist or is illegal." is displayed, enter the correct license file name.
- Check whether the license file name is correct and complete when the license file is activated.
- Check whether the device type and ESN are the same as those in the license file.
- Run the display version command to check the device model.
<HUAWEI> display version Huawei Versatile Routing Platform Software VRP (R) software, Version 5.160 (AC6605 V200R006C10SPC100) Copyright (C) 2011-2015 HUAWEI TECH CO., LTD
- Run the display esn command to check the device ESN.
<HUAWEI>display esn ESN of device: 210235791710F9000002
- Use a text editor to open the license source file and check the device information. The license source file cannot be modified.
Product=AC6605 Feature=Service Esn="210235791710F9000002" Attrib="COMM, NULL, NULL, NULL, NULL, NULL" Version=V200R005 Libver=1.2 Sign=
The device ESN can be different from that in the license file only when the license file is activated for the first time. In this case, the validity period of the license is 60 days.
- If the device type or ESN is different from that in the license file, obtain a new license file based on the device type and ESN, and then load and activate the license file.
Collect the following information and send it to license@huawei.com:
- License key reapplication and commitment letter for Huawei IP products
- Contract number and project name
- ESNs of the old and replacement products
- Incorrect license file
- Version, patch, configuration, license, and log information
- Run the display version command to check the device model.
- Check whether the license file has been modified.
- Run the dir command to check whether the size of the license file on the device is the same as that of the source license file.
<AC6605> dir flash:/*.dat Directory of flash:/ Idx Attr Size(Byte) Date Time(LMT) FileName 0 -rw- 1,578 Sep 08 2015 19:49:22 LICQPZQ6F901HL_210235791710F9000002.dat
- If they are different, ensure that the device has sufficient storage space, and use FTP/SFTP to upload the license file to the root directory of the device.
- Run the dir command to check whether the size of the license file on the device is the same as that of the source license file.
- Check whether the license file is invalid or has expired.
- Run the display license state command to check the current state and the remaining validity period of the license.
<HUAWEI> display license state Info: Master board license state: Default.
Currently, the system supports the following license states:- Normal
- Demo
- Trial: trial license that has expired but is still valid during the trial period
- Emergency
- Default
After a license expires or becomes invalid, it enters the Default state.
- If the license file is invalid, run the display license revoke-ticket command to obtain the license revocation code. Submit an ESN change e-flow, change the ESN, obtain a new license, and load the license to the device.
Collect the following information and send it to license@huawei.com:
- License key reapplication and commitment letter for Huawei IP products
- Contract number and project name
- ESNs of the old and replacement products
- Incorrect license file
- License revocation code
- Version, patch, configuration, license, and log information
- Obtain the license revocation code.
<HUAWEI> display license revoke-ticket Info: The revoke ticket is: LIC20120423008110:E08EB5B9F003D8BB127074C4E0CCD1B1F44AFD58
- Contact local AC product managers of Huawei to change the ESN and obtain a new license.
- Load the new license to the device and run the license active license.dat command to activate the license.
- If the license file expires, purchase a new license.
- Run the display license state command to check the current state and the remaining validity period of the license.
- Check whether the license can be backed up when ACs work in hot standby (HSB) mode.
- From V200R006C10 to V200R008C10, run the display ap-backup-license command in the diagnostic view to check information about the backup license.
[Huawei-diagnose] display ap-backup-license ------------------------------------------------------------------------------ AC MAC License Backup time Origin ------------------------------------------------------------------------------ 0200-0000-00b2 1024 2015-06-18/14:00:30 HSB ------------------------------------------------------------------------------ Total records: 1
- In V200R009 and later versions, run the display license resource usage command in any view to check information about the backup license.
[Huawei] display license resource usage Activated License: flash:/LIC92680232*****_*****5396810CB000006.dat FeatureName | ConfigureItemName | ResourceUsage CRFEA1 LH85WLANAP01 1/256 [Huawei]
Table 12-1 Description of the display license resource usage command outputItem
Description
Activated License
Name and path of the active license file.
FeatureName
Feature name.
ConfigureItemName
Control item name.
ResourceUsage
License resource usage, that is, ratio of the number of used licenses to the total number of licenses.
If the connection between the active and standby ACs is not established, the license cannot be synchronized to the standby AC. If the license cannot be backed up, check the configurations of the active and standby ACs to ensure that the link between them can be set up.
- From V200R006C10 to V200R008C10, run the display ap-backup-license command in the diagnostic view to check information about the backup license.
- Collect fault information.
- Version information
[Huawei-diagnose] vrbd
- Patch information
<Huawei> display patch-information
- Configuration information
<Huawei> display current-configuration
- License Information
<Huawei> display license <Huawei> display license revoke-ticket <Huawei> more XXX.dat //Query the content of a license file. *.dat is the name of the license file.
- Device ESN information
<Huawei> display esn
- Log information
[Huawei-diagnose] display logfile buffer [Huawei-diagnose] display diag-logfile buffer
Export all log files (in the .dblg, .log, .dblg.zip, or .log.zip format) that record the fault occurrence time in the flash:/logfile directory using FTP or through the web platform.
- Version information