• 产品与解决方案
  • 行业解决方案
  • 服务
  • 支持
  • 合作伙伴
  • 新华三人才研学中心
  • 关于我们

01-License管理命令参考

目录

02-License管理命令

本章节下载 02-License管理命令  (213.06 KB)

docurl=/cn/Service/Document_Software/Document_Center/Home/Wlan/00-Public/Command/Command_Manual/H3C_CR(R5426P02)-6W102/01/202006/1309117_30005_0.htm

02-License管理命令


1 License管理

1.1  License管理命令

说明

由于WX1800H系列、WX2500H系列和WX3000H系列无线控制器不支持IRF功能,因此不支持IRF模式的命令行配置。

 

设备各款型对于License授权方式支持情况有所不同,详细差异信息如下:

产品系列

产品型号

产品代码

激活文件授权方式

激活码授权方式

WX1800H系列

WX1804H-PWR

EWP-WX1804H-PWR-CN

支持

不支持

WX2500H系列

WX2508H-PWR-LTE

EWP-WX2508H-PWR-LTE

支持

不支持

WX2510H-PWR

EWP-WX2510H-PWR

支持

不支持

WX2510H-F-PWR

EWP-WX2510H-F-PWR

不支持

不支持

WX2540H

EWP-WX2540H

支持

不支持

WX2540H-F

EWP-WX2540H-F

不支持

不支持

WX2560H

EWP-WX2560H

支持

不支持

WX3000H系列

WX3010H

EWP-WX3010H

支持

不支持

WX3010H-L-PWR

EWP-WX3010H-L-PWR

支持

不支持

WX3010H-X-PWR

EWP-WX3010H-X-PWR

支持

不支持

WX3024H

EWP-WX3024H

支持

不支持

WX3024H-L-PWR

EWP-WX3024H-L-PWR

支持

不支持

WX3024H-F

EWP-WX3024H-F

支持

不支持

WX3500H系列

WX3508H

EWP-WX3508H

支持

不支持

WX3508H

EWP-WX3508H-F

支持

不支持

WX3510H

EWP-WX3510H

支持

不支持

WX3510H

EWP-WX3510H-F

支持

不支持

WX3520H

EWP-WX3520H

支持

不支持

WX3520H-F

EWP-WX3520H-F

支持

不支持

WX3540H

EWP-WX3540H

支持

不支持

WX3540H

EWP-WX3540H-F

支持

不支持

WX5500E系列

WX5510E

EWP-WX5510E

支持

支持

WX5540E

EWP-WX5540E

支持

支持

WX5500H系列

WX5540H

EWP-WX5540H

支持

不支持

WX5560H

EWP-WX5560H

支持

不支持

WX5580H

EWP-WX5580H

支持

不支持

AC插卡系列

LSUM1WCME0

LSUM1WCME0

支持

支持

EWPXM1WCME0

EWPXM1WCME0

支持

支持

LSQM1WCMX20

LSQM1WCMX20

支持

不支持

LSUM1WCMX20RT

LSUM1WCMX20RT

支持

不支持

LSQM1WCMX40

LSQM1WCMX40

支持

不支持

LSUM1WCMX40RT

LSUM1WCMX40RT

支持

不支持

EWPXM2WCMD0F

EWPXM2WCMD0F

支持

不支持

EWPXM1MAC0F

EWPXM1MAC0F

支持

不支持

 

产品系列

产品型号

产品代码

激活文件授权方式

激活码授权方式

WX1800H系列

WX1804H-PWR

EWP-WX1804H-PWR

不支持

不支持

WX1810H-PWR

EWP-WX1810H-PWR

不支持

不支持

WX1820H

EWP-WX1820H-PWR

不支持

不支持

WX1840H

EWP-WX1840H-GL

支持

不支持

WX3800H系列

WX3820H

EWP-WX3820H-GL

支持

不支持

WX3840H

EWP-WX3840H-GL

支持

不支持

WX5800H系列

WX5860H

EWP-WX5860H-GL

支持

不支持

 

1.1.1  display license

display license命令用来显示License的详细信息。

【命令】

(独立运行模式)

display license [ activation-file | activation-key ]

(IRF模式)

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

【视图】

任意视图

【缺省用户角色】

network-admin

network-operator

【参数】

activation-file:显示设备上激活文件对应的License的相关信息。

activation-key显示设备上已存在的激活码相关信息。

slot slot-number:显示指定成员设备上安装的License信息。slot-number表示设备在IRF中的成员编号。不指定该参数时,显示所有成员设备上的License信息。(IRF模式)

【举例】

# 显示设备上所有License的详细信息。

<Sysname> display license

flash:/license/219801A0WL9166Q000042018122016485038123.ak

Feature: APMGR

Product Description: Enhanced Access Controller License,16 APs,for Verticals,for V7

Registered at: 2018-12-20 21:59:46

License Type: Trial (days restricted)

Trial Time Left (days): 180

Current State: In use

表1-1 display license命令显示信息描述表

字段

描述

Feature

特性名称

Product Description

License的描述信息

Registered at

在设备上的安装时间

License Type

License的类型,取值为:

·     NA:无法获取License的类型

·     Permanent:永久类型,表示该License永远有效,不会过期

·     Days restricted:相对时间类型,表示该License是正式发布的,且有效期是一个相对时间段,比如30天

·     Trial (days restricted):相对时间类型的试用License,表示该License是相对时间类型的、非正式发布的License

Time Left (days)

正式授权相对时间类型剩余时间

Trial Time Left (days)

临时授权相对时间类型剩余时间

Current State

License当前状态取值为:

·     In use:当前License正在使用

·     Usable:当前License正在等待使用(当设备同时安装了多个相对时间License,且多个License均支持某一特性时,则只有一个License中的该特性处于In use状态,其它License中的该特性会处于Usable状态。绝对时间License,此状态表示未到启用时间)

·     Expired:当前License已过期

·     Uninstalled:当前License已卸载

·     Unusable:当前License无法使用

·     Invalid:不合法的数据,无法使用

Uninstall Key

卸载码。卸载激活文件,会生成卸载文件,卸载文件中包含卸载码。卸载码用于授权迁移

Uninstall Date

卸载日期

1.1.2  display license device-id

display license device-id命令用来显示SN和DID信息。

【命令】

(独立运行模式)

display license device-id

(IRF模式)

display license device-id slot slot-number

【视图】

任意视图

【缺省用户角色】

network-admin

network-operator

【参数】

slot slot-number:表示设备在IRF中的成员编号。(IRF模式)

【使用指导】

生成License激活码或激活文件需要使用DID和SN,用来表示激活码/激活文件和设备的绑定关系。

DID在执行压缩命令的时候会发生变化。因此,请在申请激活码或激活文件前,查询设备的DID信息。

DID为文件形式。在申请激活文件时,需通过申请页面上传该文件。

【举例】

# 显示设备的SN和DID信息。(独立运行模式)

<Sysname> display license device-id

SN: 219801A11XH133000015

SN CHECK_SUM: 157E907E

Device ID: flash:/license/219801A11XH133000015.did

# 显示指定slot的SN和DID信息。(IRF模式)

<Sysname> display license device-id slot 1

SN: 210235A1JNC14B900031

SN CHECK_SUM: BBB9E675

Device ID: flash:/license/210235A1JNC14B900031.did

表1-2 display license device-id命令显示信息描述表

字段

描述

SN

序列号信息,用于生成激活码或激活文件

SN CHECK_SUM

序列号校验码

Device ID

设备编号信息,用于生成激活码或激活文件

 

1.1.3  display license feature

display license feature命令用来显示特性的License摘要信息。

【命令】

display license feature

【视图】

任意视图

【缺省用户角色】

network-admin

network-operator

【举例】

# 显示License摘要信息。(独立运行模式)

<Sysname> display license feature

Total: 360  Usage: 0

Feature                         Licensed        State

APMGR                           N               -

# 显示License摘要信息。(IRF模式)

<Sysname> display license feature

Slot 1:

Total: 360  Usage: 0

Feature                         Licensed        State

APMGR                           N               -

表1-3 display license feature命令显示信息描述表

字段

描述

Total

设备上一共可安装License的总数目

Usage

设备上已经安装的License总数

Feature

需要License授权才能使用的业务特性的名称

Licensed

是否已经授权

·     N表示未授权

·     Y表示已授权

State

License的当前状态:

·     Formal表示当前已经为该特性安装了正式License,License处于有效状态

·     Trial表示当前已经为该特性安装了临时License,License处于有效状态

·     -表示当前无有效License,用户如需使用该特性,请安装对应的License

 

1.1.4  license activation-file install

license activation-file install命令用来安装激活文件。

【命令】

(独立运行模式)

license activation-file install license-file

(IRF模式)

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

【视图】

系统视图

【缺省用户角色】

network-admin

【参数】

license-file:激活文件的全路径,为1~127个字符的字符串,区分大小写。激活文件必须合法、有效,并且保存在设备存储介质上。

slot slot-number:表示给成员设备安装激活文件。slot-number表示设备在IRF中的成员编号。(IRF模式)

【使用指导】

(独立运行模式)

用户需要使用设备的SN和DID为设备申请激活文件。

(IRF模式)

用户需要为每台成员设备安装激活文件。

用户使用指定成员设备的SN和DID申请到的激活文件只能安装在这台成员设备上。

成员设备安装激活文件后,即便加入别的IRF,也具有运行相应特性的授权。

【举例】

# 安装激活文件20170810.ak。(独立运行模式)

<Sysname> system-view

[Sysname] license activation-file install flash:/license/20170810.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...Done.

# 给指定slot安装激活文件20170811.ak。(IRF模式)

<Sysname> system-view

[Sysname] license activation-file install flash:/license/20170811.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...Done.

【相关命令】

·     display license activation-file

·     display license device-id

·     license activation-file uninstall

1.1.5  license activation-file uninstall

license activation-file uninstall命令用来卸载激活文件。

【命令】

(独立运行模式)

license activation-file uninstall license-file

(IRF模式)

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

【视图】

系统视图

【缺省用户角色】

network-admin

【参数】

license-file:激活文件的全路径,为1~127个字符的字符串,区分大小写。

slot slot-number:表示给成员设备卸载激活文件。slot-number表示设备在IRF中的成员编号。(IRF模式)

【使用指导】

当用户购买的正式激活文件还没有到期,并且当前设备不需要再使用时,可以卸载该激活文件,此时设备会产生一个卸载凭证——卸载文件。用户可以将该卸载凭证和其它设备绑定,获取一个新的激活文件,并在新设备上安装,从而将License从当前设备迁移到其它设备。

激活文件被卸载后,对应的特性将无法获得到被卸载的激活文件的信息,特性无法运行。

临时激活文件不能迁移,所以卸载临时激活文件,不会产生卸载文件。如果卸载的是正式激活文件,则会产生卸载文件。

【举例】

# 卸载正式激活文件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...Done.

Uninstall file: flash:/license/20130810.uak

# 给指定slot卸载正式激活文件flash:/license/20130811.ak。(IRF模式)

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

Uninstall file: flash:/license/20130813.uak

【相关命令】

·     display license activation-file

·     license activation-file install

1.1.6  license activation-key install

license activation-key install命令用来安装激活码。

【命令】

(独立运行模式)

license activation-key install activation-key-string

(IRF模式)

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

【视图】

系统视图

【缺省用户角色】

network-admin

【参数】

activation-key-string:激活码,格式为XXXX-XXXX-XXXX-XXXX-XXXX-XXXX-XXXX-XXXX,区分大小写,必须是合法、有效的激活码。

slot slot-number:表示给成员设备安装激活码。slot-number表示设备在IRF中的成员编号。(IRF模式)

【使用指导】

(独立运行模式)

用户需要使用设备的SN和DID为设备申请激活码。激活码安装到设备上后,对应的特性得到授权,可以正常使用。

(IRF模式)

用户需要为每台成员设备安装激活码。

用户使用指定成员设备的SN和DID申请到的激活码只能安装在这台成员设备上。

成员设备安装激活码后,即便加入别的IRF,也具有运行相应特性的授权。

【举例】

# 安装激活码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...Done.

# 给指定slot安装激活码XXXX-XXXX-XXXX-XXXX-XXXX-XXXX-XXXX-XXXX。(IRF模式)

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

【相关命令】

·     display license activation-key

·     display license device-id

·     license activation-key uninstall

1.1.7  license compress

license compress命令用来压缩License存储区。

【命令】

(独立运行模式)

license compress

(IRF模式)

license compress slot slot-number

【视图】

系统视图

【缺省用户角色】

network-admin

【参数】

slot slot-number:表示对指定成员设备的License存储区进行压缩。slot-number表示设备在IRF中的成员编号。(IRF模式)

【使用指导】

License存储区空间是有限的。执行该命令后,系统会自动判断各License的状态,将过期和卸载的License及其相关数据删除。从而释放空间,以便用户安装新的License。

用户卸载了License或者有License过期,且这个License是通过激活文件或者激活码安装的,再执行压缩操作,系统会自动变更DID。因此,在压缩License存储区前,请确保使用旧DID申请的License已经安装完毕,否则,License存储区压缩后,使用旧DID申请的License将无法继续安装。

请在执行该命令前,保存各卸载License的卸载码。因为执行该命令后,卸载码会被删除。

【举例】

# 压缩License存储区。(独立运行模式)

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

# 给指定slot压缩License存储区。(IRF模式)

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

 

不同款型规格的资料略有差异, 详细信息请向具体销售和400咨询。H3C保留在没有任何通知或提示的情况下对资料内容进行修改的权利!

新华三官网
联系我们