< Home

license active

Function

The license active command activates the license file saved in the storage of the device.

This command takes effect only on the device that loads the license control item.

Format

license active file-name

Parameters

Parameter

Description

Value

file-name

Specifies the name of a license file.

file-name supports file name association. The disk where the file resides can be automatically associated.
  • Full help: All the disks of the device can be associated and displayed.
  • Partial help: The related disk and file can be associated and displayed after you enter a specified character string.

The value is a string of 5 to 64 characters without spaces.

Views

User view

Default Level

3: Management level

Usage Guidelines

Usage Scenario

Change or upgrade the license file when the current license file is outdated or needs higher specifications and more features. The initial state of a license file is inactive and the license file does not take effect in the system. Run this command to activate the new or updated license file.

The license active command can be used to activate a license file in the following situations:

  • The license needs to be activated for the first time.

    You can directly run this command to activate a license.

  • The current license file needs to be updated.

    If the specifications of the new license file are lower than those of the current license file, the system displays a message asking you whether to continue. If you choose No, the system retains the current license file. If you choose Yes, the master switch activates the current license file and the system uses the new license file.

    If the configuration items of the new license file are lower than those of the current license file, check whether the configuration items required by services exist in the new license file. If not, apply for a correct license file and activate it. Otherwise, services may be interrupted due to lack of dependent license configuration items after the board or the device is restarted.

Prerequisites

The new license file has been uploaded to the device.

Follow-up Procedure

When the system restarts, the system activates the license file that was activated last time to ensure the license files are the same before and after restart.

Precautions

  • The license file must use .dat as file name extension and be saved to the default root directory in the storage of the device.
  • If no path is specified, the license file in the working path is activated by default.
  • If the specifications of the new license file are lower than those of the current license file (some functions are authorized in the current license file, but not in the new license file, or the new license file allows fewer resources than the current one), the system displays a message asking you whether to continue.
  • If the license is loaded and activated on the S5720-28P-PWR-LI-AC, S5720-52P-LI-AC, and S5720-52P-PWR-LI-AC in V200R011C00 and later versions and the switch is restarted, configuration information will be lost in the following scenarios. Reconfigure the device and run the save command to save the configuration.
    1. In the standalone and stack systems, when the configuration file contains configurations implemented using commands in which GE uplink interfaces are specified and no key word interface is before the specified GE uplink interfaces in views excluding the interface view, such configurations are completely lost if the switch is restarted after the license is loaded.
    2. In the standalone and stack systems, when the configuration file contains configurations implemented using commands in which the key work interface is contained and the specified interfaces are GE uplink interfaces in views excluding the interface view, such configurations and configurations of the GE uplink interfaces are lost if the switch is restarted after the license is loaded.
    3. Assume that a stack system configuration file contains the configuration of a GE uplink port of a member switch. Load the license and restart the stack system. The GE uplink port configuration will be lost if this switch joins the stack system after the stack system is set up.

Example

# Activate license.dat in the storage of the device.

<HUAWEI> license active license.dat
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >