13-License管理命令
本章节下载: 13-License管理命令 (115.02 KB)
目 录
1.1.3 display license device-id
1.1.4 license activation-file install
1.1.5 license activation-file uninstall
display license命令用来显示License的详细信息。
display license [ activation-file ]
IRF模式:
display license [ activation-file ] [ chassis chassis-number ]
activation-file:显示设备上已存在的激活文件相关信息。
chassis chassis-number:显示指定成员设备上安装的License信息。chassis-number表示设备在IRF中的成员编号。不指定该参数时,显示所有成员设备上的License信息。(IRF模式)
# 显示设备上所有License的详细信息。(独立运行模式)
Feature: opt
Feature Description: opt license.
Activation Key: QvkT-%gfS-Xz/4-jR@V-9g%3-79wv-NMFG-kmJ9
Registered at: 2012-02-23 11:36:09
License Type: Days restricted
Time Left (days): 249
Current State: In use
# 显示IRF中所有License的详细信息。(IRF模式)
Chassis 2:
Feature: opt
Feature Description: opt license.
Activation Key: cyKT-x3vc-WsCa-n4gn-YB83-rsY3-C8:7-e3pg
Registered at: 2011-02-21 15:26:33
License Type: Trial (days restricted)
Trial Time Left (days): 20
Current State: In use
表1-1 display license命令显示信息描述表
n号成员设备上的License信息(IRF模式) |
|
License的类型,取值为: · NA:无法获取License的类型 · Permanent:永久类型,表示该License永远有效,不会过期 |
|
License当前状态取值为: · In use:当前License正在使用 · Uninstalled:当前License已卸载 · Unusable:当前License无法使用 · Invalid:不合法的数据,无法使用 |
|
display license feature命令用来显示特性的License摘要信息。
License摘要信息包括哪些特性需要安装License,以及已安装的License的简要信息。
# 显示License摘要信息。(独立运行模式)
<Sysname> display license feature
Total: 50 Usage: 7
Feature Licensed State
OPT Y Formal
OSPF N -
MPLS Y Trail
# 显示License摘要信息。(IRF模式)
<Sysname> display license feature
Chassis 1:
Total: 50 Usage: 7
Feature Licensed State
OPT Y Formal
OSPF N -
MPLS Y Trail
Chassis 2:
Total: 50 Usage: 7
Feature Licensed State
OPT Y Formal
OSPF N -
MPLS Y Trail
表1-2 display license feature命令显示信息描述表
n号成员备上的License摘要信息(IRF模式) |
|
设备上一共可安装License的总数目 |
|
需要License授权才能使用的业务特性的名称 |
|
· N表示未授权 · Y表示已授权 |
|
License的当前状态: · Formal表示当前已经为该特性安装了正式License,License处于有效状态 · -表示当前无有效License,用户如需使用该特性,请安装对应的License |
display license device-id命令用来显示设备的SN和DID信息。(独立运行模式)
display license device-id chassis chassis-number命令用来显示指定成员设备的SN和DID信息。(IRF模式)
IRF模式:
display license device-id chassis chassis-number
chassis chassis-number:表示设备在IRF中的成员编号。(IRF模式)
生成License激活文件需要使用DID和SN,用来表示激活文件和设备的绑定关系。
DID在执行压缩命令的时候会发生变化。因此,请在申请激活文件前,查询设备的DID信息。
DID有两种形式:
· 字符串形式。在申请激活文件时,直接在申请页面输入该字符串即可。
# 显示设备的SN和DID信息。(独立运行模式)
<Sysname> display license device-id
SN: XXXXXXXXXXXXXXXXXXXX
Device ID: XXXX-XXXX-XXXX-XXXX-XXXX-XXXX-XXXX-XXXX
# 显示成员设备2的SN和DID信息。(IRF模式)
<Sysname> display license device-id chassis 2
SN: XXXXXXXXXXXXXXXXXXXX
Device ID: XXXX-XXXX-XXXX-XXXX-XXXX-XXXX-XXXX-XXXX
表1-3 display license device-id命令显示信息描述表
license activation-file install命令用来安装License的激活文件。
license activation-file install file-name
IRF模式:
license activation-file install file-name chassis chassis-number
file-name:激活文件的全路径,为1~127个字符的字符串,区分大小写。激活文件必须合法、有效,并且保存在设备存储介质上。
chassis chassis-number:表示给成员设备安装License激活文件,成员设备安装激活文件后,即便加入别的IRF,也具有运行相应特性的授权。chassis-number表示设备在IRF中的成员编号。(IRF模式)
激活文件是用户购买的激活受控特性的凭证。激活文件安装到设备上后,对应的特性得到授权,可以正常使用。
# 安装激活文件20110810.ak。(独立运行模式)
[Sysname] license activation-file install cfa0:/license/20110810.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...
# 给成员设备2安装激活文件20110813.ak。(IRF模式)
[Sysname] license activation-file install cfa0:/license/20110813.ak chassis 2
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...
· display license activation-file
· license activation-file uninstall
license activation-file uninstall命令用来卸载License的激活文件。
license activation-file uninstall file-name
IRF模式:
license activation-file uninstall file-name chassis chassis-number
file-name:激活文件的全路径,为1~127个字符的字符串,区分大小写。
chassis chassis-number:表示给成员设备卸载License激活文件,成员设备卸载激活文件后,将不能使用该激活文件包含的特性。chassis-number表示设备在IRF中的成员编号。(IRF模式)
当用户购买的正式激活文件在当前上设备不需要再使用时,可以卸载该激活文件,此时设备会产生一个卸载凭证——卸载文件。用户可以将该卸载凭证和其它设备绑定,获取一个新的激活文件,并在新设备上安装,从而将License从当前设备迁移到其它设备。
· 激活文件被卸载后,对应的特性将无法获得到被卸载的激活文件的信息,特性无法运行。
# 卸载正式激活文件cfa0:/license/20110810.ak。(独立运行模式)
[Sysname] license activation-file uninstall cfa0:/license/20110810.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: cfa0:/license/20110810.uak
# 给成员设备2卸载正式激活文件cfa0:/license/20110813.ak。(IRF模式)
[Sysname] license activation-file uninstall cfa0:/license/20110813.ak chassis 2
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: cfa0:/license/20110813.uak
不同款型规格的资料略有差异, 详细信息请向具体销售和400咨询。H3C保留在没有任何通知或提示的情况下对资料内容进行修改的权利!