- Table of Contents
-
- 01-Fundamentals Command Reference
- 00-Preface
- 01-CLI commands
- 02-Login management commands
- 03-RBAC commands
- 04-FTP and TFTP commands
- 05-File system management commands
- 06-Configuration file management commands
- 07-Software upgrade commands
- 08-ISSU commands
- 09-Emergency shell commands
- 10-Device management commands
- 11-Tcl commands
- 12-Python commands
- 13-License management commands
- 14-Preprovisioning commands
- Related Documents
-
Title | Size | Download |
---|---|---|
13-License management commands | 55.45 KB |
License management commands
display license
Use display license to display detailed license information.
Syntax
display license [ activation-file ] [ slot slot-number ]
Views
Any view
Predefined user roles
network-admin
network-operator
Parameters
activation-file: Displays information about activation files.
slot slot-number: Specifies the member ID of an IRF member device. If no member device is specified, this command displays license information for all IRF member devices.
Usage guidelines
The display license command displays detailed information about all licenses if it is used without any keywords.
Examples
# Display detailed license information for each IRF member device.
flash:/license/210235A0U0H12A0000652013093013451765317.ak
Feature: evi SPBM EVB FCoE TRILL
Product Description: H3C S6300 Data Center License
Registered at: 2014-01-01 04:53:49
Table 1 Command output
Field |
Description |
Slot n |
Member ID of the IRF member device. |
Feature |
Feature name. Switches of this series do not support the EVI or SPBM feature in the current software version. |
Registered at |
Time when the license was installed. |
License Type |
License type by validity period: · NA—The system cannot obtain the license type. · Permanent—Purchased license that never expires and is always valid. · Days restricted—Purchased license that is valid for a period of days, for example, 30 days. · Trial (days restricted)—Free trial license that is valid for a period of days. |
Current State |
State of the license: · In use—The license is being used. · Usable—The license is available for use. If multiple days-restricted licenses for one feature are installed, only one license is in In use state and the rest licenses are in Usable state. · Expired—The license has expired. · Uninstalled—The license has been uninstalled. · Unusable—The license cannot be used. · Invalid—The license is invalid and cannot be used. |
display license feature
Use display license feature to display brief license information for features.
Syntax
display license feature
Views
Any view
Predefined user roles
network-admin
network-operator
Usage guidelines
Feature license information includes the following information:
· The total number of licenses that the device supports.
· The number of installed licenses.
· Features that must be licensed to run on the device.
Examples
# Display brief feature license information.
<Sysname> display license feature
Slot 1:
Total: 64 Usage: 4
Feature Licensed State
evi Y Formal
SPBM Y Formal
EVB Y Formal
FCoE Y Formal
TRILL Y Formal
Table 2 Command output
Field |
Description |
Slot n |
Member ID of the IRF member device. (Centralized IRF devices.) |
Total |
Total number of licenses that can be installed. |
Usage |
Number of installed licenses. |
Feature |
Feature that must be licensed before being used. Switches of this series do not support the EVI or SPBM feature in the current software version. |
Licensed |
Licensing state of the feature: · N—Not licensed. · Y—Licensed. |
State |
License type by purchasing state: · Trial—Trial license. · Formal—Purchased license. If the feature is not licensed, this field displays a hyphen (-). To use the feature, you must install a valid license file. |
display license device-id
Use display license device-id to display device SN and DID information.
Syntax
display license device-id slot slot-number
Views
Any view
Predefined user roles
network-admin
network-operator
Parameters
slot slot-number: Specifies the member ID of an IRF member device.
Usage guidelines
The DID changes each time the license compress command is used to compress the license storage. Use the display license device-id command to identify the up-to-date DID each time you register licenses.
The DID can be generated as a string or .id file.
· If the DID is a string, enter the string when you register the license with the license center.
· If the DID is contained in an .id file, upload the file when you register the license with the license center.
The DID for the switch series is a string.
Examples
# Display the SN and DID of IRF member device 1.
<Sysname> display license device-id slot 1
SN: 210235A0U0H12A000065
Device ID: 3ixZ-yCB5-zPnH-#W/#-FA2j-Ngn2-Zku6-gvJg
license activation-file install
Use license activation-file install to install a license activation file.
Syntax
license activation-file install file-name slot slot-number
Views
System view
Predefined user roles
network-admin
Parameters
file-name: Specifies the file name, a case-sensitive string of 1 to 127 characters. The activation file must be valid and stored on the device.
slot slot-number: Specifies the member ID of an IRF member device.
Usage guidelines
To install a license activation file successfully, make sure the SN and DID used for registering the feature license matches the current SN and DID of the device.
You can install the activation files of multiple licenses for a feature. The feature can be used as long as one of the licenses is valid.
Activation files are device locked. A licensed feature can run on the entire system even after an MPU replacement.
Examples
# Install activation file 20110812.ak to IRF member device 2.
<Sysname> system-view
[Sysname] license activation-file install flash:\license\20110812.ak slot 2
This operation might take some time. Do not perform any other operations until the operation is completed or a failure message is displayed. Please wait...
Related commands
· display license activation-file
· display license device-id
· license activation-file uninstall
license activation-file uninstall
Use license activation-file uninstall to uninstall an activation file.
Syntax
license activation-file uninstall file-name slot slot-number
Views
System view
Predefined user roles
network-admin
Parameters
file-name: Specifies the file name, a case-sensitive string of 1 to 127 characters. The activation file must not be expired.
slot slot-number: Specifies the member ID of an IRF member device.
Usage guidelines
If the activation files for all licenses for a feature are uninstalled or expired, the feature is unavailable.
Use this command to revoke an unexpired license if you want to transfer the license from one device to another.
If an activation file is uninstalled, the system creates an Uninstall key. Use this key together with the SN and DID of the transfer destination to register the license for the transfer destination.
Trial licenses are not transferrable. When you uninstall the activation file of a trial license, no Uninstall file is created.
Examples
# Uninstall activation file flash:\license\20110812.ak from IRF member device 2.
<Sysname> system-view
[Sysname] license activation-file uninstall flash:\license\20110812.ak slot 2
This operation might take some time. Do not perform any other operations until the operation is completed or a failure message is displayed. Please wait...
Uninstall file: flash:\license\20110812.uak
· display license activation-file
· license activation-file install
license compress
Use license compress to compress the license storage.
Syntax
license compress slot slot-number
Views
System view
Predefined user roles
network-admin
Parameters
slot slot-number: Specifies the member ID of an IRF member device.
Usage guidelines
|
CAUTION: The DID changes each time the license storage is compressed. Before performing a compression, make sure all activation files generated based on the old DID have been installed. They cannot be installed after the compression. |
Use this command if the free license storage (see the display license feature command) is not sufficient.
This command clears invalid licenses (expired licenses and uninstalled licenses) from the license storage area.
Examples
# Compress the license storage on IRF member device 2.
<Sysname> system-view
[Sysname] license compress slot 2
This command will delete all data relevant to uninstalled and expired keys/licenses, including Uninstall keys, and create a new device ID for activation keys/files. Make sure you have saved the Uninstall keys so you can apply for a new activation key/file for the unexpired licenses that were covered by the uninstalled activation keys/files.
Are you sure you want to continue? [Y/N]: Y
This operation might take some time. Do not perform any other operations until the operation is completed or a failure message is displayed. Please wait...