• 产品与解决方案
  • 行业解决方案
  • 服务
  • 支持
  • 合作伙伴
  • 关于我们

01-基础配置命令参考

目录

04-License管理命令

本章节下载 04-License管理命令  (181.72 KB)

04-License管理命令


1 License管理

1.1  License管理命令

1.1.1  display license

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

【命令】

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

【视图】

任意视图

【缺省用户角色】

network-admin

network-operator

【参数】

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

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

【使用指导】

本命令不指定参数时,显示设备上所有License的详细信息。

【举例】

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

<Sysname> display license

Slot 1:

flash:/license/NGFirewall2017111419524513753.ak

Feature: IPS

Product Description: Trial IPS License, 30 Days

Registered at: 2017-11-14 20:07:06

License Type: Trial (date restricted)

Trial Validity Period: 2017-11-14 to 2017-12-14

Current State: Expired

表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

卸载日期

# 显示设备上所有License的详细信息。(支持License池的设备)

<Sysname> display license

Slot 1:

cfa0:/license/2017072009113494375.ak

Feature: LISP EVB evi mdc SPBM TRILL FCoE

Product Description: Advanced Data Center License

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

License Type: Permanent

Current State: In use

 

Remote license information:

slot2#cfa0:/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): -

Current State: In use

 

Slot 2:

slot2#cfa0:/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

 

以上显示信息表明,设备上有两个授权可用,其中:

·     cfa0:/license/2017072009113494375.ak是安装在slot 1上的,用于对数据中心特性的授权,该授权不支持共享。对于不支持共享的授权,其授权信息只显示在安装slot下,只有安装slot才能运行该授权对应的特性。如果安装slot离开IRF,会带走该授权。

·     cfa0:/license/219801A0WL9166Q000042018122016485038123.ak是安装在slot 2上的,用于对AP管理的授权,该授权支持共享。对于支持共享的授权,授权在某个slot安装后,IRF会自动将该授权共享给所有slot,可以被所有slot使用,其授权信息会在所有slot下显示。如果安装slot离开IRF,会带走该授权,但IRF中的其它slot还可以继续使用该授权30天。

(分布式设备)

以上显示信息表明,设备上有两个授权可用,其中:

·     cfa0:/license/2017072009113494375.ak是安装在slot 1上的,用于对数据中心特性的授权,该授权不支持共享。对于不支持共享的授权,其授权信息只显示在安装slot下,只有安装slot才能运行该授权对应的特性。如果安装slot从设备拔出,会带走该授权。

·     cfa0:/license/219801A0WL9166Q000042018122016485038123.ak是安装在slot 2上的,用于对AP管理的授权,该授权支持共享。对于支持共享的授权,授权在某个slot安装后,设备会自动将该授权共享给所有主控板,可以被所有主控板使用,其授权信息会在所有主控板slot下显示。如果安装主控板从设备拔出,会带走该授权,但系统中的其它主控板还可以继续使用该授权30天。

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

字段

描述

Remote license information

表示该License是共享License,它安装在其它Slot上,从其它slot同步到当前Slot,可以被当前slot使用

AP管理License是共享License,只需在IRF中的某个slot上安装,便可以共享给所有Slot使用。当安装License的slot离开IRF后,IRF中的其它slot仍可以使用该License 30天

AP管理License是共享License,只需在某个主控板上安装,便可以共享给所有主控板使用。当安装License的主控板拔出后,系统中的其它主控板仍可以使用该License 30天(分布式设备)

Feature

特性名称

Feature Description

特性的相关描述

Product Description

License的描述信息

License Key

显示安装的授权码信息

Activation Key

显示安装的激活码信息

Registered at

在设备上的安装时间

License Type

License的类型,取值为:

·     NA:无法获取License的类型

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

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

·     Date restricted:绝对时间类型,表示该License是正式发布的,且有效期是一个绝对时间段,比如2017年5月1日到2017年5月30日

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

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

Time Left (days)

正式授权相对时间类型剩余时间。“-”表示未获取到有效时间

Trial Time Left (days)

临时授权相对时间类型剩余时间。“-”表示未获取到有效时间

Validity Period

正式授权绝对时间类型过期日期。No limit表示不限制时间

Trial Validity Period

临时授权绝对时间类型过期日期。No limit表示不限制时间

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 slot slot-number

【视图】

任意视图

【缺省用户角色】

network-admin

network-operator

【参数】

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

【使用指导】

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

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

【举例】

# 显示指定slot的SN和DID信息。

<Sysname> display license device-id slot 1

SN: 210235A1FXH164000026

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

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

字段

描述

SN

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

Device ID

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

 

1.1.3  display license feature

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

【命令】

display license feature

【视图】

任意视图

【缺省用户角色】

network-admin

network-operator

【举例】

# 显示License摘要信息。

<Sysname> display license feature

Slot 1:

Total: 32  Usage: 0

Feature                         Licensed        State

ACG                             N               -

AV                              N               -

IPRPT                           N               -

IPS                             N               -

SSLVPN                          N               -

UFLT                            N               -

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

字段

描述

Total

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

Usage

设备上已经安装的License总数

Feature

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

Licensed

是否已经授权

·     N表示未授权

·     Y表示已授权

State

License的当前状态:

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

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

·     Pre-licensed表示当前已经为该特性安装了预安装License,License处于有效状态

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

 

1.1.4  license activation-file install

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

【命令】

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

【视图】

系统视图

【缺省用户角色】

network-admin

【参数】

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

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

【使用指导】

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

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

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

【举例】

# 给指定slot安装激活文件20170811.ak。

<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

·     display license device-id

·     license activation-file uninstall

1.1.5  license compress

license compress命令用来清理License存储区。

【命令】

license compress slot slot-number

【视图】

系统视图

【缺省用户角色】

network-admin

【参数】

slot slot-number:表示对指定成员设备的License存储区进行清理。slot-number表示设备在IRF中的成员编号。

【使用指导】

License存储区空间是有限的。通过执行该命令,设备会自动将已卸载授权和过期授权的信息从License存储区中删除,从而达到释放License存储区的目的。

清理License存储区可能会改变设备的DID/设备信息文件。为避免因DID/设备信息文件的改变,导致通过现有DID/设备信息文件申请到、但还未安装的激活文件后期无法安装,建议在清理License存储区前,确认使用现有DID/设备信息文件申请的激活文件已经全部安装完毕。

【举例】

# 给指定slot清理License存储区。

<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保留在没有任何通知或提示的情况下对资料内容进行修改的权利!

新华三官网
联系我们