display license state

Function

The display license state command displays the status of a license file in the current system.

Format

display license state

Parameters

None

Views

All views

Default Level

1: Monitoring level

Task Name and Operations

Task Name Operations
license read

Usage Guidelines

Usage Scenario

To view the status of a running license file in the current system, run the display license state command. The command output includes the current status of the license file and the remaining days for the license file before expiration.

A license file can be in any of the following states:

  • Demo: The license file is in the demo state.
  • Normal: The license file is in the normal state.
  • Default: The license file is in the default state. In this case, the license becomes invalid. The possible causes are as follows: The license has expired naturally. 60 days after the license revoke command is executed. 60 days after the ESN does not match during license activation.
  • Trial: The license file is in the trial state.
  • Emergency: The license file is in the emergency state.

If a license file has been activated and in the keepalive period, the display license state command can be run to display the remaining valid keepalive period of the license file.

Prerequisites

An active license file exists on the device.

Precautions

In VS mode, this command is supported only by the admin VS.

Example

The actual command output varies according to the device. The command output here is only an example.

# Display the status of a license file in the current system.
<HUAWEI> display license state
Info: Current license state is Demo. The license for the current configuration will expire in 4 day(s).
Table 1 Description of the display license state command output
Item Description
state
  • Demo: The license file is in the demo state.
  • Normal: The license file is in the normal state.
  • Default: The device is in the default state when no license is authorized. If no license file is activated after delivery or the license file is not reactivated after the grace period expires, the license is in this state.
  • Trial: The license file is in the trial state.
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >