License management commands -- display license

Use display license to display detailed license information.

Syntax

Centralized devices:

display license [ activation-file | activation-key | license-key ]

Distributed devices in standalone mode:Centralized IRF devices:

display license [ activation-file | activation-key | license-key ] [ slot slot-number ]

Distributed devices in IRF mode:

display license [ activation-file | activation-key | license-key ] [ chassis chassis-number slot slot-number ]

Views

Any view

Predefined user roles

network-admin

network-operator

mdc-admin

mdc-operator

Parameters

activation-file: Displays license information about activation files. The device supports only license installation through activation files, so this command always displays license information about activation files whether you specify this keyword or not.

activation-key: Displays license information about activation keys.

license-key: Displays license information about license keys.

slot slot-number: Specifies the slot number of an MPU. If no slot number is specified, this command displays license information for all MPUs. (Distributed devices in standalone mode.)

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. (Centralized IRF devices.)

chassis chassis-number slot slot-number: Specifies an MPU in an IRF member device. The chassis-number argument represents the member ID of the IRF member device. The slot-number argument represents the slot number of the MPU on the device. If no IRF member device and slot number are specified, this command displays license information for all MPUs in the IRF fabric. (Distributed devices in IRF mode.)

Usage guidelines

The display license command displays detailed information about all licenses if it is used without the activation-file, activation-key, and license-key keywords.

Examples

# Display detailed information about all licenses.

<Sysname> display license

Feature: opt

Feature Description: opt license.

Activation Key: QvkT-%gfS-Xz/4-jR@V-9g%3-79wv-NMFG-kmJ9

Registered at: 2013-02-23 11:36:09

License Type: Days restricted

Time Left (days): 249

Current State: In use

flash:/license/2014072009113494375.ak

Feature: LISP EVB evi mdc SPBM TRILL FCoE

Product Description: Advanced Data Center License

Registered at: 2014-05-07 15:07:39

License Type: Permanent

Current State: In use

Table 1 Command output

Field | Description
Feature | Feature name.
Product Description | License description.
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. · Date restricted—Purchased license that is valid for an absolute date range, for example, 2015-05-01 to 2015-05-30. · Trial (days restricted)—Free trial license that is valid for a period of days. · Trial (date restricted)—Free trial license that is valid for an absolute date range.
Time Left (days) | Remaining days of the license. This field is available for a purchased license.
Trial Time Left (days) | Remaining days of the trial period. This field is available for a trial license.
Validity Period | Start date and end state for a date restricted purchased license. If the start or end date is not limited, this field displays No limit.
Trial Validity Period | Start date and end state for a date restricted trial license. If the start or end date is not limited, this field displays No limit.
Current State | State of the license: · In use—The license is being used. · Usable—The license is available for use. ?span style='font:7.0pt "Times New Roman"'> 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. ?span style='font:7.0pt "Times New Roman"'> A date restricted license is in this state if its start date is not reached. · 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.
Uninstall Key | This field is available for licenses that have been uninstalled. When you uninstall an activation file, an Uninstall file that contains an Uninstall key is created. When you uninstall an activation key, an Uninstall key is created. The Uninstall key is required for transferring the license.
Uninstall Date | Date when the activation file was uninstalled.

‌

License management commands -- display license device-id

Use display license device-id to display SN and DID information.

Syntax

Centralized devices:

display license device-id

Distributed devices in standalone mode:Centralized IRF devices:

display license device-id slot slot-number

Distributed devices in IRF mode:

display license device-id chassis chassis-number slot slot-number

Views

Any view

Predefined user roles

network-admin

network-operator

mdc-admin

mdc-operator

Parameters

slot slot-number: Specifies the slot number of an MPU. (Distributed devices in standalone mode.)

slot slot-number: Specifies the member ID of an IRF member device. (Centralized IRF devices.)

chassis chassis-number slot slot-number: Specifies an MPU in an IRF member device. The chassis-number argument represents the member ID of the IRF member device. The slot-number argument represents the slot number of the MPU on the device. (Distributed devices in IRF mode.)

Usage guidelines

When you register a license for a device, you must provide its unique SN and DID.

The DID changes each time you use the license compress command 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.

Examples

# (Centralized devices.) Display the device SN and DID.

<Sysname> display license device-id

SN: 210231S12500XSUPSUPC

Device ID: jFvq-zRGA-DpJy-VK@d-$Zz+-QjA7-$pLP-xvzR

# (Distributed devices in standalone mode.) (Centralized IRF devices.) Display the SN and DID for the specified slot.

<Sysname> display license device-id slot 1

SN: 210231S12500XSUPSUPC

Device ID: jFvq-zRGA-DpJy-VK@d-$Zz+-QjA7-$pLP-xvzR

License management commands -- 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

mdc-admin

mdc-operator

Examples

# (Centralized devices.) Display brief feature license information.

<Sysname> display license feature

Total: 50 Usage: 7

Feature Licensed State

OPT Y Formal

OSPF N -

MPLS Y Trial

# (Distributed devices in standalone mode.) (Centralized IRF devices.) Display brief feature license information.

<Sysname> display license feature

Slot 1:

Total: 64 Usage: 1

Feature Licensed State

EVB Y Trial

FCoE Y Trial

SPBM Y Trial

TRILL Y Trial

evi Y Trial

Table 2 Command output

Field | Description
Total | Total number of licenses that can be installed.
Usage | Number of installed licenses.
Feature | Feature that must be licensed before being used. The device does not support EVI in the current software version.
Licensed | Licensing state of the feature: · N—Not licensed. · Y—Licensed.
State | License type by purchasing state: · Formal—Purchased license. · Trial—Trial license. If the feature is not licensed, this field displays a hyphen (-). To use the feature, you must install a valid license file.

License management commands -- license activation-file install

Use license activation-file install to install an activation file.

Syntax

Centralized devices:

license activation-file install file-name

Distributed devices in standalone mode:Centralized IRF devices:

license activation-file install file-name slot slot-number

Distributed devices in IRF mode:

license activation-file install file-name chassis chassis-number slot slot-number

Views

System view

Predefined user roles

network-admin

mdc-admin

Parameters

file-name: Specifies the file path, 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 slot number of an MPU. (Distributed devices in standalone mode.)

slot slot-number: Specifies the member ID of an IRF member device. (Centralized IRF devices.)

chassis chassis-number slot slot-number: Specifies an MPU in an IRF member device. The chassis-number argument represents the member ID of the IRF member device. The slot-number argument represents the slot number of the MPU on the device. (Distributed devices in IRF mode.)

Usage guidelines

(Centralized devices.) License registration requires the device's hardware SN and DID.

Distributed devices:

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 specified MPU.

Activation files are MPU locked rather than device locked. A licensed feature can run on the MPU where its activation file is installed even after the MPU is moved between devices.

Centralized IRF devices:

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.

Activation files are device locked rather than MPU locked. A licensed feature can run on the entire system even after an MPU replacement.

Examples

# (Centralized devices.) Install activation file 20130810.ak.

<Sysname> system-view

[Sysname] license activation-file install flash:/license/20130810.ak

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...

# (Distributed devices in standalone mode.) (Centralized IRF devices.) Install activation file 20130811.ak to the specified slot.

<Sysname> system-view

[Sysname] license activation-file install flash:/license/20130811.ak slot 1

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 management commands -- license activation-file uninstall

Use license activation-file uninstall to uninstall an activation file.

Syntax

Centralized devices:

license activation-file uninstall file-name

Distributed devices in standalone mode:Centralized IRF devices:

license activation-file uninstall file-name slot slot-number

Distributed devices in IRF mode:

license activation-file uninstall file-name chassis chassis-number slot slot-number

Views

System view

Predefined user roles

network-admin

mdc-admin

Parameters

file-name: Specifies the file path, a case-sensitive string of 1 to 127 characters.

slot slot-number: Specifies the slot number of an MPU. (Distributed devices in standalone mode.)

slot slot-number: Specifies the member ID of an IRF member device. (Centralized IRF devices.)

chassis chassis-number slot slot-number: Specifies an MPU in an IRF member device. The chassis-number argument represents the IRF member ID of the device. The slot-number argument represents the slot number of the MPU on the device. (Distributed devices in IRF mode.)

Usage guidelines

Use this command to revoke an unexpired license if you want to transfer the license from one device to another.

When an activation file is uninstalled, the system creates an Uninstall file. Use this file together with the SN and DID of the transfer destination to register the license for the transfer destination.

A feature cannot run after you uninstall all of its activation files.

Trial licenses are not transferrable. When you uninstall the activation file of a trial license, no Uninstall file is created.

Examples

# (Centralized devices.) Uninstall activation file flash:/license/20130810.ak.

<Sysname> system-view

[Sysname] license activation-file uninstall flash:/license/20130810.ak

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/20130810.uak

# (Distributed devices in standalone mode.) (Centralized IRF devices.) Uninstall activation file flash:/license/20130811.ak from the specified slot.

<Sysname> system-view

[Sysname] license activation-file uninstall flash:/license/20130811.ak slot 1

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/20130811.uak

Related commands

display license activation-file

license activation-file install

License management commands -- license activation-key install

Use license activation-key install to install an activation key.

Syntax

Centralized devices:

license activation-key install activation-key-string

Distributed devices in standalone mode:Centralized IRF devices:

license activation-key install activation-key-string slot slot-number

Distributed devices in IRF mode:

license activation-key install activation-key-string chassis chassis-number slot slot-number

Views

System view

Predefined user roles

network-admin

mdc-admin

Parameters

activation-key-string: Specifies the activation key in the XXXX-XXXX-XXXX-XXXX-XXXX-XXXX-XXXX-XXXX format. The string is case sensitive and must be valid.

slot slot-number: Specifies the slot number of an MPU. (Distributed devices in standalone mode.)

slot slot-number: Specifies the member ID of an IRF member device. (Centralized IRF devices.)

chassis chassis-number slot slot-number: Specifies an MPU in an IRF member device. The chassis-number argument represents the member ID of the IRF member device. The slot-number argument represents the slot number of the MPU on the device. (Distributed devices in IRF mode.)

Usage guidelines

(Centralized devices.) License registration requires the device's hardware SN and DID.

Distributed devices:

To install a license activation key successfully, make sure the SN and DID used for registering the feature license matches the current SN and DID of the specified MPU.

Activation keys are MPU locked rather than device locked. A licensed feature can run on the MPU where its activation key is installed even after the MPU is moved between devices.

Centralized IRF devices:

To install a license activation key successfully, make sure the SN and DID used for registering the feature license matches the current SN and DID of the device.

Activation keys are device locked rather than MPU locked. A licensed feature can run on the entire system even after an MPU replacement.

Examples

# (Centralized devices.) Install activation key XXXX-XXXX-XXXX-XXXX-XXXX-XXXX-XXXX-XXXX.

<Sysname> system-view

[Sysname] license activation-key install XXXX-XXXX-XXXX-XXXX-XXXX-XXXX-XXXX-XXXX

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...

# (Distributed devices in standalone mode.) (Centralized IRF devices.) Install activation key XXXX-XXXX-XXXX-XXXX-XXXX-XXXX-XXXX-XXXX on the specified slot.

<Sysname> system-view

[Sysname] license activation-key install XXXX-XXXX-XXXX-XXXX-XXXX-XXXX-XXXX-XXXX slot 1

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-key

display license device-id

license activation-key uninstall

License management commands -- license activation-key uninstall

Use license activation-key uninstall to uninstall an activation key.

Syntax

Centralized devices:

license activation-key uninstall activation-key-string

Distributed devices in standalone mode:Centralized IRF devices:

license activation-key uninstall activation-key-string slot slot-number

Distributed devices in IRF mode:

license activation-key uninstall activation-key-string chassis chassis-number slot slot-number

Views

System view

Predefined user roles

network-admin

mdc-admin

Parameters

activation-key-string: Specifies the activation key in the XXXX-XXXX-XXXX-XXXX-XXXX-XXXX-XXXX-XXXX format. The string is case sensitive. The activation key must not be expired.

slot slot-number: Specifies the slot number of an MPU. (Distributed devices in standalone mode.)

slot slot-number: Specifies the member ID of an IRF member device. (Centralized IRF devices.)

chassis chassis-number slot slot-number: Specifies an MPU in an IRF member device. The chassis-number argument represents the IRF member ID of the device. The slot-number argument represents the slot number of the MPU on the device. (Distributed devices in IRF mode.)

Usage guidelines

Use this command to revoke an unexpired license if you want to transfer the license from one device to another.

If an activation key 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.

A feature cannot run after you uninstall all of its activation keys.

Trial licenses are not transferrable. When you uninstall the activation key of a trial license, no Uninstall key is created.

Examples

# (Centralized devices.) Uninstall activation key XXXX-XXXX-XXXX-XXXX-XXXX-XXXX-XXXX-XXXX.

<Sysname> system-view

[Sysname] license activation-key uninstall XXXX-XXXX-XXXX-XXXX-XXXX-XXXX-XXXX-XXXX

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 key: YYYY-YYYY-YYYY-YYYY-YYYY-YYYY-YYYY-YYYY

# (Distributed devices in standalone mode.) (Centralized IRF devices.) Uninstall activation key XXXX-XXXX-XXXX-XXXX-XXXX-XXXX-XXXX-XXXX from the specified slot.

<Sysname> system-view

[Sysname] license activation-key uninstall XXXX-XXXX-XXXX-XXXX-XXXX-XXXX-XXXX-XXXX slot 1

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 key: YYYY-YYYY-YYYY-YYYY-YYYY-YYYY-YYYY-YYYY

Related commands

display license activation-key

license activation-key install

License management commands -- license compress

Use license compress to compress the license storage.

Syntax

Centralized devices:

license compress

Distributed devices in standalone mode:Centralized IRF devices:

license compress slot slot-number

Distributed devices in IRF mode:

license compress chassis chassis-number slot slot-number

Views

System view

Predefined user roles

network-admin

mdc-admin

Parameters

slot slot-number: Specifies the slot number of an MPU. (Distributed devices in standalone mode.)

slot slot-number: Specifies the member ID of an IRF member device. (Centralized IRF devices.)

chassis chassis-number slot slot-number: Specifies an MPU in an IRF member device. The chassis-number argument represents the IRF member ID of the device. The slot-number argument represents the slot number of the MPU on the device. (Distributed devices in IRF mode.)

Usage guidelines

Use this command if the free license storage (see the display license feature command) is not sufficient.

The DID changes each time the license storage is compressed. Before performing a compression, make sure all licenses registered with the old DID have been installed. They cannot be installed after the compression.

This command clears invalid licenses (expired licenses and uninstalled licenses) and Uninstall keys from the license storage area. Back up the Uninstall keys before you compress the license storage.

Examples

# (Centralized devices.) Compress the license storage.

<Sysname> system-view

[Sysname] license compress

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...

# (Distributed devices in standalone mode.) (Centralized IRF devices.) Compress the license storage on the specified slot.

<Sysname> system-view

[Sysname] license compress slot 1

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...

License management commands -- license license-key install

Use license license-key install to install a license key.

Syntax

Centralized devices:

license license-key install license-key-string

Distributed devices in standalone mode:Centralized IRF devices:

license license-key install license-key-string slot slot-number

Distributed devices in IRF mode:

license license-key install license-key-string chassis chassis-number slot slot-number

Views

System view

Predefined user roles

network-admin

mdc-admin

Parameters

license-key-string: Specifies a license key, a string of case-sensitive characters.

slot slot-number: Specifies the slot number of an MPU. (Distributed devices in standalone mode.)

slot slot-number: Specifies the member ID of an IRF member device. (Centralized IRF devices.)

chassis chassis-number slot slot-number: Specifies an MPU in an IRF member device. The chassis-number argument represents the IRF member ID of the device. The slot-number argument represents the slot number of the MPU on the device. (Distributed devices in IRF mode.)

Usage guidelines

(Centralized devices.) License keys are purchased for activating licenses.

(Distributed devices.) License keys are MPU locked rather than device locked. A licensed feature can run on the MPU where its license key is installed even after the MPU is moved between devices.

(Centralized IRF devices.) License keys are device locked rather than MPU locked. A licensed feature can run on the entire system even after an MPU replacement.

You can install a license key on multiple devices.

Examples

# (Centralized devices.) Install license key XXXXXXXX-(XXXX-)XXXXXXXX-XXXXXXXX-XXXXXXXX.

<Sysname> system-view

[Sysname] license license-key install XXXXXXXX-(XXXX-)XXXXXXXX-XXXXXXXX-XXXXXXXX

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...

# (Distributed devices in standalone mode.) (Centralized IRF devices.) Install license key XXXXXXXX-(XXXX-)XXXXXXXX-XXXXXXXX-XXXXXXXX to the specified slot.

<Sysname> system-view

[Sysname] license license-key install XXXXXXXX-(XXXX-)XXXXXXXX-XXXXXXXX-XXXXXXXX slot 1

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 license-key

license license-key uninstall

License management commands -- license license-key uninstall

Use license license-key uninstall to uninstall a license key.

Syntax

Centralized devices:

license license-key uninstall license-key-string

Distributed devices in standalone mode:Centralized IRF devices:

license license-key uninstall license-key-string slot slot-number

Distributed devices in IRF mode:

license license-key uninstall license-key-string chassis chassis-number slot slot-number

Views

System view

Predefined user roles

network-admin

mdc-admin

Parameters

license-key-string: Specifies a license key, a string of case-sensitive characters. The key must not be expired.

slot slot-number: Specifies the slot number of an MPU. (Distributed devices in standalone mode.)

slot slot-number: Specifies the member ID of an IRF member device. (Centralized IRF devices.)

chassis chassis-number slot slot-number: Specifies an MPU in an IRF member device. The chassis-number argument represents the IRF member ID of the device. The slot-number argument represents the slot number of the MPU on the device. (Distributed devices in IRF mode.)

Usage guidelines

A feature cannot run correctly after you uninstall all of its license keys.

Examples

# (Centralized devices.) Uninstall license key XXXXXXXX-XXXX-XXXXXXXX-XXXXXXXX-XXXXXXXX.

<Sysname> system-view

[Sysname] license license-key uninstall XXXXXXXX-XXXX-XXXXXXXX-XXXXXXXX-XXXXXXXX

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...

# (Distributed devices in standalone mode.) (Centralized IRF devices.) Uninstall license key XXXXXXXX-XXXX-XXXXXXXX-XXXXXXXX-XXXXXXXX from the specified slot.

<Sysname> system-view

[Sysname] license license-key uninstall XXXX-XXXX-XXXX-XXXX-XXXX-XXXX-XXXX-XXXX slot 1

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 license-key

license license-key install

License management commands (distributed devices not supporting slots) -- display license

Use display license to display detailed license information.

Syntax

Distributed devices in standalone mode:

display license [ activation-file | activation-key | license-key ]

Distributed devices in IRF mode:

display license [ activation-file | activation-key | license-key ] [ chassis chassis-number ]

Views

Any view

Predefined user roles

network-admin

network-operator

mdc-admin

mdc-operator

Parameters

activation-file: Displays license information about activation files. The device supports only license installation through activation files, so this command always displays license information about activation files whether you specify this keyword or not.

activation-key: Displays license information about activation keys.

license-key: Displays license information about license keys.

chassis chassis-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. (Distributed devices in IRF mode.)

Usage guidelines

The display license command displays detailed information about all licenses if it is used without the activation-file, activation-key, and license-key keywords.

Examples

# (Distributed devices in standalone mode.) Display detailed information about all licenses.

<Sysname> display license

Feature: opt

Feature Description: opt license.

Activation Key: QvkT-%gfS-Xz/4-jR@V-9g%3-79wv-NMFG-kmJ9

Registered at: 2014-02-23 11:36:09

License Type: Days restricted

Time Left (days): 249

Current State: In use

flash:/license/2014072009113494375.ak

Feature: LISP EVB evi mdc SPBM TRILL FCoE

Product Description: Advanced Data Center License

Registered at: 2014-05-07 15:07:39

License Type: Permanent

Current State: In use

Table 3 Command output

Field | Description
Feature | Feature name.
Product Description | License description
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. · Date restricted—Purchased license that is valid for an absolute date range, for example, 2013-05-01 to 2013-05-30. · Trial (days restricted)—Free trial license that is valid for a period of days. · Trial (date restricted)—Free trial license that is valid for an absolute date range.
Time Left (days) | Remaining days of the license. This field is available for a purchased license.
Trial Time Left (days) | Remaining days of the trial period. This field is available for a trial license.
Validity Period | Start date and end state for a date restricted purchased license. If the start or end date is not limited, this field displays No limit.
Trial Validity Period | Start date and end state for a date restricted trial license. If the start or end date is not limited, this field displays No limit.
Current State | State of the license: · In use—The license is being used. · Usable—The license is available for use. ?span style='font:7.0pt "Times New Roman"'> 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. ?span style='font:7.0pt "Times New Roman"'> A date restricted license is in this state if its start date is not reached. · 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.
Uninstall Key | This field is available for licenses that have been uninstalled. When you uninstall an activation file, an Uninstall file that contains an Uninstall key is created. When you uninstall an activation key, an Uninstall key is created. The Uninstall key is required for transferring the license.
Uninstall Date | Date when the activation file was uninstalled.

‌

License management commands (distributed devices not supporting slots) -- display license device-id

Use display license device-id to display SN and DID information.

Syntax

Distributed devices in standalone mode:

display license device-id

Distributed devices in IRF mode:

display license device-id chassis chassis-number

Views

Any view

Predefined user roles

network-admin

network-operator

mdc-admin

mdc-operator

Parameters

chassis chassis-number: Specifies the member ID of an IRF member device. (Distributed devices in IRF mode.)

Usage guidelines

Each device has a unique SN and DID. When you register a license for a device, you must provide its SN and DID.

The DID changes each time you use the license compress command 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.

Examples

# (Distributed devices in standalone mode.) Display the device SN and DID.

<Sysname> display license device-id

SN: 210231S12500XSUPSUPC

Device ID: jFvq-zRGA-DpJy-VK@d-$Zz+-QjA7-$pLP-xvzR

License management commands (distributed devices not supporting slots) -- 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

mdc-admin

mdc-operator

Examples

# (Distributed devices in standalone mode.) Display brief feature license information.

<Sysname> display license feature

Total: 5 Usage: 1

Feature Licensed State

EVB Y Formal

FCoE Y Formal

LISP Y Formal

SPBM Y Formal

TRILL Y Formal

evi Y Formal

mdc Y Formal

Table 4 Command output

Field | Description
Total | Total number of licenses that can be installed.
Usage | Number of installed licenses.
Feature | Feature that must be licensed before being used. The device does not support EVB, LISP, or EVI in the current software version.
Licensed | Licensing state of the feature: · N—Not licensed. · Y—Licensed.
State | License type by purchasing state: · Formal—Purchased license. · Trial—Trial license. If the feature is not licensed, this field displays a hyphen (-). To use the feature, you must install a valid license file.

License management commands (distributed devices not supporting slots) -- license activation-file install

Use license activation-file install to install an activation file.

Syntax

Distributed devices in standalone mode:

license activation-file install file-name

Distributed devices in IRF mode:

license activation-file install file-name chassis chassis-number

Views

System view

Predefined user roles

network-admin

mdc-admin

Parameters

file-name: Specifies the file path, a case-sensitive string of 1 to 127 characters. The activation file must be valid and stored on the device.

chassis chassis-number: Specifies the member ID of an IRF member device. (Distributed devices in IRF mode.)

Usage guidelines

(Distributed devices in standalone mode.) License registration requires the device's hardware SN and DID.

Distributed devices in IRF mode:

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 IRF member device.

A licensed feature can run on the IRF member device where its activation file is installed even after the IRF member device joins another IRF fabric.

Examples

# (Distributed devices in standalone mode.) Install activation file 20130810.ak.

<Sysname> system-view

[Sysname] license activation-file install flash:/license/20130810.ak

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 management commands (distributed devices not supporting slots) -- license activation-file uninstall

Use license activation-file uninstall to uninstall an activation file.

Syntax

Distributed devices in standalone mode:

license activation-file uninstall file-name

Distributed devices in IRF mode:

license activation-file uninstall file-name chassis chassis-number

Views

System view

Predefined user roles

network-admin

mdc-admin

Parameters

file-name: Specifies the file path, a case-sensitive string of 1 to 127 characters.

chassis chassis-number: Specifies the member ID of an IRF member device. (Distributed devices in IRF mode.)

Usage guidelines

Use this command to revoke an unexpired license if you want to transfer the license from one device to another.

When an activation file is uninstalled, the system creates an Uninstall file. Use this file together with the SN and DID of the transfer destination to register the license for the transfer destination.

A feature cannot run after you uninstall all of its activation files.

Trial licenses are not transferrable. When you uninstall the activation file of a trial license, no Uninstall file is created.

Examples

# (Distributed devices in standalone mode.) Uninstall activation file flash:/license/20130810.ak.

<Sysname> system-view

[Sysname] license activation-file uninstall flash:/license/20130810.ak

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/20130810.uak

Related commands

display license activation-file

license activation-file install

License management commands (distributed devices not supporting slots) -- license activation-key install

Use license activation-key install to install an activation key.

Syntax

Distributed devices in standalone mode:

license activation-key install activation-key-string

Distributed devices in IRF mode:

license activation-key install activation-key-string chassis chassis-number

Views

System view

Predefined user roles

network-admin

mdc-admin

Parameters

activation-key-string: Specifies the activation key in the XXXX-XXXX-XXXX-XXXX-XXXX-XXXX-XXXX-XXXX format. The string is case sensitive and must be valid.

chassis chassis-number: Specifies the member ID of an IRF member device. (Distributed devices in IRF mode.)

Usage guidelines

(Distributed devices in standalone mode.) License registration requires the device's hardware SN and DID.

Distributed devices in IRF mode:

To install a license activation key successfully, make sure the SN and DID used for registering the feature license matches the current SN and DID of the IRF member device.

A licensed feature can run on the IRF member device where its activation key is installed even after the IRF member device joins another IRF fabric.

Examples

# (Distributed devices in standalone mode.) Install activation key XXXX-XXXX-XXXX-XXXX-XXXX-XXXX-XXXX-XXXX.

<Sysname> system-view

[Sysname] license activation-key install XXXX-XXXX-XXXX-XXXX-XXXX-XXXX-XXXX-XXXX

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-key

display license device-id

license activation-key uninstall

License management commands (distributed devices not supporting slots) -- license activation-key uninstall

Use license activation-key uninstall to uninstall an activation key.

Syntax

Distributed devices in standalone mode:

license activation-key uninstall activation-key-string

Distributed devices in IRF mode:

license activation-key uninstall activation-key-string chassis chassis-number

Views

System view

Predefined user roles

network-admin

mdc-admin

Parameters

activation-key-string: Specifies the activation key in the XXXX-XXXX-XXXX-XXXX-XXXX-XXXX-XXXX-XXXX format. The string is case sensitive. The activation key must not be expired.

chassis chassis-number: Specifies the member ID of an IRF member device. (Distributed devices in IRF mode.)

Usage guidelines

Use this command to revoke an unexpired license if you want to transfer the license from one device to another.

If an activation key 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.

A feature cannot run after you uninstall all of its activation keys.

Trial licenses are not transferrable. When you uninstall the activation key of a trial license, no Uninstall key is created.

Examples

# (Distributed devices in standalone mode.) Uninstall activation key XXXX-XXXX-XXXX-XXXX-XXXX-XXXX-XXXX-XXXX.

<Sysname> system-view

[Sysname] license activation-key uninstall XXXX-XXXX-XXXX-XXXX-XXXX-XXXX-XXXX-XXXX

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 key: YYYY-YYYY-YYYY-YYYY-YYYY-YYYY-YYYY-YYYY

Related commands

display license activation-key

license activation-key install

License management commands (distributed devices not supporting slots) -- license compress

Use license compress to compress the license storage.

Syntax

Distributed devices in standalone mode:

license compress

Distributed devices in IRF mode:

license compress chassis chassis-number

Views

System view

Predefined user roles

network-admin

mdc-admin

Parameters

chassis chassis-number: Specifies the member ID of an IRF member device. (Distributed devices in IRF mode.)

Usage guidelines

Use this command if the free license storage (see the display license feature command) is not sufficient.

The DID changes each time the license storage is compressed. Before performing a compression, make sure all licenses registered with the old DID have been installed. They cannot be installed after the compression.

This command clears invalid licenses (expired licenses and uninstalled licenses) and Uninstall keys from the license storage area. Back up the Uninstall keys before you compress the license storage.

Examples

# (Distributed devices in standalone mode.) Compress the license storage.

<Sysname> system-view

[Sysname] license compress

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...

License management commands (distributed devices not supporting slots) -- license license-key install

Use license license-key install to install a license key.

Syntax

Distributed devices in standalone mode:

license license-key install license-key-string

Distributed devices in IRF mode:

license license-key install license-key-string chassis chassis-number

Views

System view

Predefined user roles

network-admin

mdc-admin

Parameters

license-key-string: Specifies a license key, a string of case-sensitive characters.

chassis chassis-number: Specifies the member ID of an IRF member device. (Distributed devices in IRF mode.)

Usage guidelines

(Distributed devices in standalone mode.) License keys are purchased for activating licenses.

(Distributed devices in IRF mode.) A licensed feature can run on the IRF member device where its license key is installed even after the IRF member device joins another IRF fabric.

You can install a license key on multiple devices.

Examples

# (Distributed devices in standalone mode.) Install license key XXXXXXXX-(XXXX-)XXXXXXXX-XXXXXXXX-XXXXXXXX.

<Sysname> system-view

[Sysname] license license-key install XXXXXXXX-(XXXX-)XXXXXXXX-XXXXXXXX-XXXXXXXX

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 license-key

license license-key uninstall

License management commands (distributed devices not supporting slots) -- license license-key uninstall

Use license license-key uninstall to uninstall a license key.

Syntax

Distributed devices in standalone mode:

license license-key uninstall license-key-string

Distributed devices in IRF mode:

license license-key uninstall license-key-string chassis chassis-number

Views

System view

Predefined user roles

network-admin

mdc-admin

Parameters

license-key-string: Specifies a license key, a string of case-sensitive characters. The key must not be expired.

chassis chassis-number: Specifies the member ID of an IRF member device. (Distributed devices in IRF mode.)

Usage guidelines

A feature cannot run correctly after you uninstall all of its license keys.

Examples

# (Distributed devices in standalone mode.) Uninstall license key XXXXXXXX-XXXX-XXXXXXXX-XXXXXXXX-XXXXXXXX.

<Sysname> system-view

[Sysname] license license-key uninstall XXXXXXXX-XXXX-XXXXXXXX-XXXXXXXX-XXXXXXXX

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 license-key

license license-key install