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

01-基础配置命令参考

目录

14-License管理命令

本章节下载 14-License管理命令  (157.07 KB)

docurl=/cn/Service/Document_Software/Document_Center/Routers/Catalog/NFV/H3C_VSR/Command/Command_Manual/H3C_VSR_CR-E0322P02-5W105/01/201607/935290_30005_0.htm

14-License管理命令


1 License管理

1.1  License管理配置命令

1.1.1  display license

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

【命令】

独立运行模式:

display license [ activation-file ]

IRF模式:

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

【视图】

任意视图

【缺省用户角色】

network-admin

network-operator

【参数】

activation-file:显示设备上已存在的激活文件相关信息。如果不指定本参数,将显示所有License的详细信息。

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

【举例】

# 显示设备上所有License的详细信息。(独立运行模式)

<Sysname> display license

flash:/license/xxx.ak

Feature: xxx

Product Description: xxx

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

License Type: Permanent

Current State: In use

 

flash:/license/xxx.ak

Feature: xxx

Product Description: xxx

Registered at: 2014-07-20 09:13:29

License Type: Permanent

Current State: In use

# 显示IRF中所有License的详细信息。(IRF模式)

<Sysname> display license

Slot 1:

flash:/license/xxx.ak

Feature: xxx

Product Description: xxx

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

License Type: Permanent

Current State: In use

 

flash:/license/xxx.ak

Feature: xxx

Product Description: xxx

Registered at: 2014-07-20 09:13:29

License Type: Permanent

Current State: In use

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

字段

描述

Slot n

n号成员设备上的License信息

Feature

特性名称

Product Description

激活文件产品描述信息

Registered at

在设备上的安装时间

License Type

License的类型,取值为:

·     NA:无法获取License的类型

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

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

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

Validity Period

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

Trial Validity Period

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

Current State

License当前状态取值为:

·     In use:当前License正在使用

·     Usable:当前License未到启用时间

·     Expired:当前License已过期

·     Uninstalled:当前License已卸载

·     Unusable:当前License无法使用

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

Uninstall Key

卸载码

Uninstall Date

卸载日期

 

1.1.2  display license client

display license client命令用来显示设备作为License客户端时的配置信息和获取到的授权信息。

【命令】

独立运行模式:

display license client

IRF模式:

display license client slot slot-number

【视图】

任意视图

【缺省用户角色】

network-admin

network-operator

【举例】

# 显示License client和服务器建立连接后获取到的授权信息。

<Sysname> display license client

Username: user      

Ciphertext password: ******

License server's IPv4 address: 192.168.3.124, port: 5001

License client: Enabled

 

License name: OPT

License data: Usercount=3, Content=ON

License description: OPT License

Get licensed time: 2015-03-05 17:52:44

 

License name: OSPF

License data: Count=3, Content=”a=1 b=2 c=”

License description: OSPF License

Get licensed time: 2015-03-05 17:53:57

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

字段

描述

Username

认证用户名,如未指定则显示为Not configured

Ciphertext password

认证用户密文密码,如未指定则显示为Not configured

License server's IPv4 address

授权服务器IPv4地址信息,如未指定则显示为Not configured

Port

授权服务器端口信息,如未指定则显示为Not configured

License client

License client的状态信息,取值为:

Enabled:License client处于使能状态

Disabled:License client处于未使能状态

Connection status

连接状态信息,取值为:

·     Connected:与服务器建立连接

·     Disconnected:与服务器断开连接

·     Connecting:连接已经建立,等待验证用户名密码

License name

授权的名称

License data

授权的内容:

·     Count:表示客户端从License Server请求到对应授权的数量。此授权为不可回收的授权

·     Usercount:表示客户端从License Server请求到对应授权的数量。此授权为可回收的授权,在客户端不需要的时候,断开和License服务器的链接,即可释放授权供其它客户端使用

·     Content:授权中携带的参数,供特性模块使用

License description

授权的描述信息

Get licensed time

授权的获取时间

 

【相关命令】

·     display license feature

1.1.3  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:显示指定成员设备的信息,slot-number表示设备在IRF中的成员编号。

【使用指导】

生成License激活文件需要使用DID,用来表示激活文件和设备的绑定关系。DID为文件形式。在申请激活文件时,需通过申请页面上传该文件。

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

【举例】

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

<Sysname> display license device-id

SN: xxxxxxxxxxxxxxxxxxxxxxxx

Device ID: flash:/license/xxxxxxxxxxxxxxxxxxxxxxxx.did

# 显示成员设备2的SN和DID信息。(IRF模式)

<Sysname> display license device-id slot 2

SN: xxxxxxxxxxxxxxxxxxxxxxxx

Device ID: flash:/license/xxxxxxxxxxxxxxxxxxxxxxxx.did

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

字段

描述

SN

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

Device ID

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

 

1.1.4  display license feature

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

【命令】

display license feature

【视图】

任意视图

【缺省用户角色】

network-admin

network-operator

【使用指导】

License摘要信息包括哪些特性需要安装License,以及已安装的License的简要信息。

【举例】

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

<Sysname> display license feature

Total: 128  Usage: 7

Feature                         Licensed        State

OPT                             Y               Formal

OSPF                            N               -

MPLS                            Y               Trail

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

<Sysname> display license feature

Slot 0:

Total: 128  Usage: 7

Feature                         Licensed        State

OPT                             Y               Formal

OSPF                            N               -

MPLS                            Y               Trail

 

Slot 1:

Total: 128  Usage: 7

Feature                         Licensed        State

OPT                             Y               Formal

OSPF                            N               -

MPLS                            Y               Trail

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

字段

描述

Slot n

n号成员备上的License摘要信息

Total

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

Usage

设备上已经安装的License总数

Feature

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

Licensed

是否已经授权

·     N:表示未授权

·     Y:表示已授权

State

License的当前状态:

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

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

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

 

1.1.5  license activation-file install

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

【命令】

独立运行模式:

license activation-file install file-name

IRF模式:

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

【视图】

系统视图

【缺省用户角色】

network-admin

【参数】

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

slot slot-number:表示给成员设备安装License激活文件,成员设备安装激活文件后,即便加入别的IRF,也具有运行相应特性的授权。slot-number表示设备在IRF中的成员编号。

【使用指导】

激活文件是用户购买的激活受控特性的凭证。激活文件安装到设备上后,对应的特性得到授权,可以正常使用。

【举例】

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

<Sysname> system-view

[Sysname] license activation-file install 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...

# 给成员设备2安装激活文件20130812.ak。(IRF模式)

<Sysname> system-view

[Sysname] license activation-file install flash:/license/20130812.ak slot 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

1.1.6  license activation-file uninstall

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

【命令】

独立运行模式:

license activation-file uninstall file-name

IRF模式:

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

【视图】

系统视图

【缺省用户角色】

network-admin

【参数】

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

slot slot-number:表示给成员设备卸载License激活文件,成员设备卸载激活文件后,将不能使用该激活文件包含的特性。slot-number表示设备在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...

Uninstall file: flash:/license/20130810.uak

# 给成员设备2卸载正式激活文件flash:/license/20130812.ak。(IRF模式)

<Sysname> system-view

[Sysname] license activation-file uninstall flash:/license/20130812.ak slot 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: flash:/license/20130812.uak

【相关命令】

·     display license activation-file

·     license activation-file install

1.1.7  license client enable

license client enable命令用来使能License客户端功能。

undo license client enable命令用来取消使能License客户端功能。

【命令】

license client enable

undo license client enable

【缺省情况】

未使能License客户端功能,客户端不能从License授权服务器获取授权。

【视图】

系统视图

【缺省用户角色】

network-admin

【使用指导】

·     请先配置License授权服务器的IP地址和用户名密码,再使能License客户端功能。否则配置失败。

·     配置该命令后,设备会自动向License授权服务器发起连接,License授权服务器会对设备进行身份认证。如果用户名和密码正确,则认证成功,License授权服务器将为设备授权。设备获得授权后,可以使用授权对应的特性。

【举例】

# 开启License客户端功能。

<Sysname> system-view

[Sysname] license client enable

【相关命令】

·     license server ipv4

·     license client username

1.1.8  license client install feature

license client install feature命令用来向License server申请授权并安装BRAS或SSL VPN特性License。

undo license client install feature命令用来卸载特性License并释放授权信息。

【命令】

H3C VSR1000、HP VSR1000、VSR2000设备:

license client install feature { bras-1cpu | bras-2cpu | bras-4cpu | bras-4vcpu | bras-8vcpu | sslvpn-25 | sslvpn-100 | sslvpn-500 | sslvpn-1000 }

undo license client install feature

【缺省情况】

设备未安装特性License。

【视图】

系统视图

【缺省用户角色】

network-admin

【参数】

install:请求并安装License。

bras-4vcpu:授权设备的BRAS特性,同时要求设备的BRAS特性可用的虚拟CPU个数为4个。

bras-8vcpu:授权设备的BRAS特性,同时要求设备的BRAS特性可用的虚拟CPU个数为8个。

bras-1cpu:授权设备的BRAS特性,同时要求设备的BRAS特性可用的物理CPU个数为1个。

bras-2cpu:授权设备的BRAS特性,同时要求设备的BRAS特性可用的物理CPU个数为2个。

bras-4cpu:授权设备的BRAS特性,同时要求设备的BRAS特性可用的物理CPU个数为4个。

sslvpn-25:授权设备可管理的SSL VPN会话数为25条。

sslvpn-100:授权设备可管理的SSL VPN会话数为100条。

sslvpn-500:授权设备可管理的SSL VPN会话数为500条。

sslvpn-1000:授权设备可管理的SSL VPN会话数为1000条。

【使用指导】

通过该特性License可以控制设备BRAS和SSL VPN特性的接入性能和使用的期限。设备的BRAS特性可用的虚拟或物理CPU个数由基础License控制。当基础License授权设备可用的虚拟或物理CPU个数与特性License要求的CPU个数不同时,特性License将安装失败。

需要注意的是:

·     只有在已安装基础License的情况下,安装该特性License才能生效。

·     多次申请SSL VPN特性License,设备授权可管理的SSL VPN会话数将会累加。

·     重复申请相同类型的授权,以最后一次申请成功的授权为准。

·     当License申请失败时,设备会周期性向License server发起授权申请。

·     当设备卸载License并释放授权后,License server将回收授权信息。回收的授权信息可以继续向其他设备授权。

【举例】

# 设备向License server申请并安装4vCPU类型的BRAS特性License。

<Sysname> system-view

[Sysname] license client install feature bras-4vcpu

【相关命令】

·     license server ipv4

·     license client username

·     license client enable

·     license client install standard

1.1.9  license client install standard

license client install standard命令用来向License server申请授权并安装基础License。

undo license client install standard命令用来卸载基础License并释放授权信息。

【命令】

H3C VSR1000、VSR2000设备:

license client install standard { 1cpu | 2cpu | 4cpu | 1vcpu-1year | 1vcpu-3year | 1vcpu-permanent | 4vcpu-1year | 4vcpu-3year | 4vcpu-permanent | 8vcpu-1year | 8vcpu-3year | 8vcpu-permanent | license-type }

HP VSR1000设备:

license client { install | uninstall } standard { 1vcpu | 4vcpu | 8vcpu | license-type }

undo license client install standard

【缺省情况】

设备未安装基础License。

【视图】

系统视图

【缺省用户角色】

network-admin

【参数】

install:申请授权并安装License。

1vcpu-1year:授权设备可使用的虚拟CPU个数为1个,有效期为1年。该参数仅支持VSR1000设备。

1vcpu-3year:授权设备可使用的虚拟CPU个数为1个,有效期为3年。该参数仅支持VSR1000设备。

1vcpu-permanent:授权设备可使用的虚拟CPU个数为1个,且永久生效。该参数仅支持VSR1000设备。

4vcpu-1year:授权设备可使用的虚拟CPU个数为4个,有效期为1年。该参数仅支持VSR1000设备。

4vcpu-3year:授权设备可使用的虚拟CPU个数为4个,有效期为3年。该参数仅支持VSR1000设备。

4vcpu-permanent:授权设备可使用的虚拟CPU个数为4个,且永久生效。该参数仅支持VSR1000设备。

8vcpu-1year:授权设备可使用的虚拟CPU个数为8个,有效期为1年。该参数仅支持VSR1000设备。

8vcpu-3year:授权设备可使用的虚拟CPU个数为8个,有效期为3年。该参数仅支持VSR1000设备。

8vcpu-permanent:授权设备可使用的虚拟CPU个数为8个,且永久生效。该参数仅支持VSR1000设备。

1cpu:授权设备可使用的物理CPU个数为1个。该参数仅支持VSR2000设备。

2cpu:授权设备可使用的物理CPU个数为2个。该参数仅支持VSR2000设备。

4cpu:授权设备可使用的物理CPU个数为4个。该参数仅支持VSR2000设备。

1vcpu:授权设备可使用的虚拟CPU个数为1个。

4vcpu:授权设备可使用的虚拟CPU个数为4个。

8vcpu:授权设备可使用的虚拟CPU个数为8个。

license-type:自定义指定基础License类型,格式必须为m(v)cpu-nyearm(v)cpu-permanent,其中m表示物理或虚拟CPU个数,n表示有效期为n年。

【使用指导】

未获得该License授权的设备拥有较差的数据处理性能。通过基础License可以扩展设备的处理性能及控制相应功能的使用期限。

需要注意的是:

·     重复申请相同类型的授权,以最后一次申请成功的授权为准。

·     获得该类型授权的设备,还可以申请其他类型的授权。

·     当License申请失败时,设备会周期性向License server发起授权申请。

·     当设备卸载License并释放授权后,License server将回收授权信息。回收的授权信息可以继续向其他设备授权。

【举例】

# 客户端向License server申请并安装“1vCPU 1年期”类型的基础License。

<Sysname> system-view

[Sysname] license client install standard 1vcpu-1year

# 客户端向License server申请并安装“6vCPU 1年期”类型的基础License。

<Sysname> system-view

[Sysname] license client install standard 6vcpu-1year

【相关命令】

·     license server ipv4

·     license client username

·     license client enable

1.1.10  license client username

license client username命令用来配置客户端连接License授权服务器所使用的用户名和密码。

undo license client username命令用来取消配置客户端连接License授权服务器所使用的用户名和密码。

【命令】

license client username username password { cipher | simple } password

undo license client username

【缺省情况】

客户端没有配置连接License授权服务器时使用的用户名和密码。

【视图】

系统视图

【缺省用户角色】

network-admin

【参数】

username:认证用户名,为1~31个字符的字符串,区分大小写。

cipher:以密文方式设置密码。

simple:以明文方式设置密码。

password:设置的明文或密文认证密码,区分大小写。明文认证密码为1~31个字符的字符串;密文认证密码为33~73个字符的字符串。

【使用指导】

·     客户端设备只能配置一个用于连接License授权服务器的用户名和密码。

·     在开启License客户端功能前,多次配置该命令,新配置生效。

·     在开启License客户端功能后,需要先关闭License客户端功能,才能修改用户名和密码。

【举例】

# 配置客户端访问License授权服务器时使用的用户名为test,密码为123456。

<Sysname> system-view

[Sysname] license client username test password simple 123456

【相关命令】

·     license server ipv4

·     license client enable

1.1.11  license compress

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

【命令】

独立运行模式:

license compress

IRF模式:

license compress slot slot-number

【视图】

系统视图

【缺省用户角色】

network-admin

【参数】

slot slot-number:表示对指定成员设备的License存储区进行压缩,成员设备将删除无效的License数据,对License存储区空间进行释放,用于安装新的激活信息。slot-number表示设备在IRF中的成员编号。

【使用指导】

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

# 给成员设备2压缩License存储区。(IRF模式)

<Sysname> system-view

[Sysname] license compress slot 2

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

1.1.12  license server ipv4

license server ipv4命令用来配置License授权服务器的IPv4地址和端口。

undo license server ipv4命令用来取消配置License授权服务器的IPv4地址和端口。

【命令】

license server ipv4 ip-address port port-number [vpn-instance vpn-instance-name ]

undo license server ipv4 ipv4-address [vpn-instance vpn-instance-name ]

【缺省情况】

未配置License授权服务器的IPv4地址和端口。

【视图】

系统视图

【缺省用户角色】

network-admin

【参数】

ip-address:License授权服务器的IPv4地址。

port-number:License授权服务器的端口号,取值范围为1~65535。

vpn-instance vpn-instance-name:连接License授权服务器的VPN实例名称,为1~31个字符的字符串,区分大小写。

【使用指导】

设备最多可配置四个License授权服务器。

在使能License客户端功能后,需要先关闭License客户端功能,才能修改License授权服务器的地址和端口。

【举例】

# 配置License授权服务器的地址和端口号分别为192.168.100.1和5001。

<Sysname> system-view

[Sysname] license server ipv4 192.168.100.1 port 5001

 

【相关命令】

·     license client username

·     license client enable

 

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

新华三官网
联系我们