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

01-基础配置命令参考

目录

12-License管理命令

本章节下载 12-License管理命令  (254.60 KB)

docurl=/cn/Service/Document_Software/Document_Center/Routers/Catalog/NFV/H3C_VSR/Command/Command_Manual/H3C_VSR_(V7)_CR-E1219-5W400/01/202012/1368484_30005_0.htm

12-License管理命令


1 License管理

1.1  License管理命令

1.1.1  display license

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

【命令】

(独立运行模式)

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

(IRF模式)

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

【视图】

任意视图

【缺省用户角色】

network-admin

network-operator

【参数】

activation-file:显示设备上激活文件对应的License的相关信息。目前设备仅支持通过激活文件来安装License,所以,不管是否选择该参数,显示结果相同。

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

license-key:显示设备上已存在的授权码相关信息。

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

【举例】

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

<Sysname> display license

flash:/license/StandardTemporary.ak

Feature: STANDARD

Product Description: H3C VSR1000 License(Comware V7,STANDARD Edition,8vCPUs,1Year)

License SN: 213130A1DN0174000004

Registered at: 2018-12-04 07:16:28

License Type: Trial (days restricted)

Trial Time Left (days): 175

Current State: In use

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

字段

描述

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

(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: 000c29e6c55afcda18120407

Device ID: flash:/license/000c29e6c55afcda18120407.did

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

<Sysname> display license device-id slot 1

SN: 000c29e6c55afcda18110417

Device ID: flash:/license/000c29e6c55afcda18110417.did

表1-2 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

Total: 128  Usage: 1

Feature                         Licensed        State

ADVANCED-FIREWALL-1vCPU         N               -

ADVANCED-FIREWALL-4vCPU         N               -

ADVANCED-FIREWALL-8vCPU         N               -

ADVANCED-LOADBALANCE-1vCPU      N               -

ADVANCED-LOADBALANCE-4vCPU      N               -

ADVANCED-LOADBALANCE-8vCPU      N               -

BRAS-4vCPU                      N               -

BRAS-8vCPU                      N               -

CGNAT-4vCPU                     N               -

CGNAT-8vCPU                     N               -

SSLVPN                          N               -

STANDARD                        Y               Trial

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

<Sysname> display license feature

Slot 1:

Total: 128  Usage: 1

Feature                         Licensed        State

ADVANCED-FIREWALL-1vCPU         N               -

ADVANCED-FIREWALL-4vCPU         N               -

ADVANCED-FIREWALL-8vCPU         N               -

ADVANCED-LOADBALANCE-1vCPU      N               -

ADVANCED-LOADBALANCE-4vCPU      N               -

ADVANCED-LOADBALANCE-8vCPU      N               -

BRAS-4vCPU                      N               -

BRAS-8vCPU                      N               -

CGNAT-4vCPU                     N               -

CGNAT-8vCPU                     N               -

SSLVPN                          N               -

STANDARD                        Y               Trial

表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 activation-key uninstall

license activation-key uninstall命令用来卸载激活码。

【命令】

(独立运行模式)

license activation-key uninstall activation-key-string

(IRF模式)

license activation-key uninstall 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模式)

【使用指导】

当用户需要将特性授权信息迁移到其它设备上使用时,可以卸载特性对应的激活码,此时设备会产生一个卸载凭证——卸载码,本设备对应的特性将无法使用。用户可以将授权信息和其他设备绑定,从而将授权信息从一个设备迁移到另一台设备。

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

【举例】

# 卸载正式激活码XXXX-XXXX-XXXX-XXXX-XXXX-XXXX-XXXX-XXXX。(独立运行模式)

<Sysname> system-view

[Sysname] license activation-key uninstall 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

Uninstall key: YYYY-YYYY-YYYY-YYYY-YYYY-YYYY-YYYY-YYYY

# 给指定slot卸载正式激活码XXXX-XXXX-XXXX-XXXX-XXXX-XXXX-XXXX-XXXX。(IRF模式)

<Sysname> system-view

[Sysname] license activation-key uninstall 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.

Uninstall key: YYYY-YYYY-YYYY-YYYY-YYYY-YYYY-YYYY-YYYY

【相关命令】

·     display license activation-key

·     license activation-key install

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

1.1.9  license license-key install

license license-key install命令用来安装授权码。

【命令】

(独立运行模式)

license license-key install license-key-string

(IRF模式)

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

【视图】

系统视图

【缺省用户角色】

network-admin

【参数】

license-key-string:授权码,必须是合法、有效的授权码。输入时请以实际获得的格式为准,区分大小写。

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

【使用指导】

授权码是用户购买的激活受控特性的凭证。授权码安装到设备上后,对应的特性得到授权,可以正常使用。(独立运行模式)

授权码是用户购买的激活受控特性的凭证。用户需要为每台成员设备安装授权码。成员设备安装授权码后,即便加入别的IRF,也具有运行相应特性的授权。(IRF模式)

一个授权码可以安装到多台设备上。

【举例】

# 安装授权码XXXXXXXX-(XXXX-)XXXXXXXX-XXXXXXXX-XXXXXXXX。(独立运行模式)

<Sysname> system-view

[Sysname] license license-key install XXXXXXXX-(XXXX-)XXXXXXXX-XXXXXXXX-XXXXXXXX

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安装授权码XXXXXXXX-(XXXX-)XXXXXXXX-XXXXXXXX-XXXXXXXX。(IRF模式)

<Sysname> system-view

[Sysname] license license-key install XXXXXXXX-(XXXX-)XXXXXXXX-XXXXXXXX-XXXXXXXX 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 license-key

·     license license-key uninstall

1.1.10  license license-key uninstall

license license-key uninstall命令用来卸载授权码。

【命令】

(独立运行模式)

license license-key uninstall license-key-string

(IRF模式)

license license-key uninstall license-key-string slot slot-number

【视图】

系统视图

【缺省用户角色】

network-admin

【参数】

license-key-string:要卸载的授权码,必须是合法、有效的授权码。输入时请以实际获得的格式为准,区分大小写。只有设备上已安装且未过期的授权码才可以卸载。

slot slot-number:表示给成员设备卸载授权码。slot-number表示设备在IRF中的成员编号。(IRF模式)

【使用指导】

用户确定不再使用受控特性时,可以将授权码卸载,此时对应的特性将不会得到授权,不能正常使用。

【举例】

# 卸载授权码XXXXXXXX-XXXX-XXXXXXXX-XXXXXXXX-XXXXXXXX。(独立运行模式)

<Sysname> system-view

[Sysname] license license-key uninstall XXXXXXXX-XXXX-XXXXXXXX-XXXXXXXX-XXXXXXXX

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卸载授权码XXXXXXXX-XXXX-XXXXXXXX-XXXXXXXX-XXXXXXXX。(IRF模式)

<Sysname> system-view

[Sysname] license license-key uninstall 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 license-key

·     license license-key install

1.1.11  snmp-agent trap enable license

snmp-agent trap enable license命令用来开启License模块的告警功能。

undo snmp-agent trap enable license命令用来关闭License模块的告警功能。

【命令】

snmp-agent trap enable license

undo snmp-agent trap enable license

【缺省情况】

License模块的告警功能处于开启状态。

【视图】

系统视图

【缺省用户角色】

network-admin

【使用指导】

当开启了License模块的告警功能后,出现以下情况时,License模块会自动生成告警信息:

·     设备上正在使用的激活文件丢失,即display license命令显示信息中处于in use状态的文件丢失。

·     设备作为License client与License server断开连接或者重新连接成功。

·     设备作为License client从License server获取的授权即将过期或者已经过期。

生成的告警信息将发送到设备的SNMP模块,通过设置SNMP中告警信息的发送参数,来决定告警信息输出的相关特性。有关告警信息的详细介绍,请参见“网络管理和监控配置指导”中的“SNMP”。

【举例】

# 开启License模块的告警功能。

<Sysname> system-view

[Sysname] snmp-agent trap enable license

【相关命令】

·     display snmp-agent trap-list(网络管理和监控/SNMP

·     license client enable

 


2 License client

2.1  License client配置命令

2.1.1  display license client

display license client命令用来显示License client的配置信息以及设备获取到的授权信息。

【命令】

display license client slot slot-number

【视图】

任意视图

【缺省用户角色】

network-admin

network-operator

【举例】

# 显示License client的配置信息以及设备获取到的授权信息。

<Sysname> display license client slot 1

Username: user

Ciphertext password: ******

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

License client: Enabled

 

License Name: STANDARD

License Description: H3C VSR1000 License(Comware V7,STANDARD Edition,8vCPUs,1Year)

Current State: In use

Get Time: 2019-02-06 05:08:33

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

字段

描述

Username

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

Ciphertext password

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

License server's IPv4 address

License server的IPv4地址信息,如未指定则显示为Not configured

Port

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

License client

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

·     Enabled:License client功能处于使能状态

·     Disabled:License client功能处于关闭状态

License name

授权的名称

License description

授权的描述信息

Current State

当前授权License的状态,取值为:

·     In use:当前License正在使用

·     Unusable:License不可用

·     Reserved (client is disconnected from license server, but license is still available for n days):当前设备与License server断开连接超过32小时(不含32小时)后,License显示为该状态,且同时显示License可用天数。

·     Expired (will be reclaimed in n days):当前License将在n天后失效

Get Time

License client从License server获取到License的时间

2.1.2  license client username

license client username命令用来配置设备连接License server时使用的用户名和密码。

undo license client username命令用来恢复缺省情况。

【命令】

license client username username password { cipher | simple } password

undo license client username

【缺省情况】

未配置连接License server时使用的用户名和密码。

【视图】

系统视图

【缺省用户角色】

network-admin

【参数】

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

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

simple:以明文方式设置密码,该密码将以密文形式存储。

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

【使用指导】

设备只能配置一个用于连接License server的用户名和密码:

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

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

【举例】

# 配置设备访问License server时使用的用户名为test,密码为123456。

<Sysname> system-view

[Sysname] license client username test password simple 123456

2.1.3  license client enable

license client enable命令用来开启License client功能。

undo license client enable命令用来关闭License client功能。

【命令】

license client enable

undo license client enable

【缺省情况】

License client功能处于关闭状态。

【视图】

系统视图

【缺省用户角色】

network-admin

【使用指导】

请先配置License server的IP地址和用户名、密码,再开启License client功能。否则,配置失败。

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

【举例】

# 开启License client功能。

<Sysname> system-view

[Sysname] license client enable

2.1.4  license client install feature

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

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

【命令】

license client install feature { bras-4vcpu | bras-8vcpu | ipsec-acc-2g | l3vpn-50 count l3vpn-count | sslvpn-100 count count | sslvpn-1000 count count | sslvpn-25 count count | sslvpn-500 count count }

undo license client install feature { bras-4vcpu |  bras-8vcpu | ipsec-acc-2g | l3vpn-50 | sslvpn-100 | sslvpn-1000 | sslvpn-25 | sslvpn-500 }

【缺省情况】

License client不会自动向License server申请特性授权。

【视图】

系统视图

【缺省用户角色】

network-admin

【参数】

bras-4vcpu:授权BRAS特性可使用的虚拟CPU个数为4个。

bras-8vcpu:授权BRAS特性可使用的虚拟CPU个数为8个。

ipsec-acc-2g:授权IPSEC特性可使用的带宽为2Gbps。

l3vpn-50 count l3vpn-count:授权L3VPN 50 License。

sslvpn-100:授权SSL-VPN 100 License。

sslvpn-1000:授权SSL-VPN 1000 License。

sslvpn-25:授权SSL-VPN 25 License。

sslvpn-500:授权SSL-VPN 500 License。

count count:授权SSL-VPN License的个数,取值范围为1~64。

【使用指导】

SSL VPN授权用于控制设备上可以创建的SSL VPN数量,多次申请SSL VPN授权时,设备可创建的SSL VPN数量会逐渐累加。

L3VPN 50 License用于控制设备上可以创建的L3VPN数量,多次申请L3VPN 50 License时,设备可创建的L3VPN数量会逐渐累加(但实际最多可创建的L3VPN的数量不能超过产品允许的最大规格)。

当设备不再使用授权时,可卸载并释放授权,License server将回收授权。回收的且未过期授权可以继续向其他设备授权。

【举例】

# 向License server申请并安装SSL-VPN 100类型的License,安装个数为1个。

<Sysname> system-view

[Sysname] license client install feature sslvpn-100 count 1

2.1.5  license client install standard

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

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

【命令】

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

undo license client install standard

【缺省情况】

License client不会自动向License server申请基础授权。

【视图】

系统视图

【缺省用户角色】

network-admin

【参数】

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

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

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

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

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

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

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

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

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

l3vpn-advance:授权设备可使用的虚拟CPU个数为256个,全局可创建的L3VPN实例数量为240个,且永久生效。

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

【使用指导】

license client install standard命令用于通过License server授权的方式安装基础授权。基础授权用于控制设备最多可使用的虚拟CPU的个数。用户创建设备时,可指定设备能使用的虚拟CPU的个数,指定的虚拟CPU的个数必须小于或等于当前授权允许使用的虚拟CPU个数,否则,可能会出现严重丢包的情况。例如,创建时指定的虚拟CPU个数是5个,但当前安装的是4vcpu类型的授权,则可能会出现严重丢包的情况,此时,应安装8vcpu类型的授权。设备出厂时会携带一个期限为180天、可使用的虚拟CPU个数为256个的试用版License,第一次创建设备时,开始计时。请在试用版License到期前,使用本命令安装VCPU个数匹配的正式License,以免因为缺少License出现严重丢包的情况。

设备没有安装l3vpn-advance License时,最多可使用的虚拟CPU个数由设备上当前安装的基础授权决定,可创建的L3VPN实例数量为8191个。如果要使设备可使用的虚拟CPU的个数大于8个,则必须安装l3vpn-advance License,否则,可能会出现严重丢包的情况。安装l3vpn-advance License后,设备最多可使用的虚拟CPU个数增加到256个,同时可创建的L3VPN实例数量减少到240,用户可以通过license client install feature l3vpn-50 count l3vpn-count命令安装l3vpn-50 License,来增加可创建的L3VPN实例的数量。也可以在本地安装l3vpn-advance License和l3vpn-50 License。通过License server授权的L3VPN数量和本地授权的L3VPN数量会叠加(但实际最多可创建的L3VPN的数量不能超过产品允许的最大规格),可使用的虚拟CPU个数不会叠加。

当设备获取并安装了一个基础授权,又申请一个基础授权时,License client会先卸载已有授权并归还给License server,再向License server申请新的授权。建议申请新的授权前,确保License server路由可达,且License server上存在新的授权,以免已有授权被卸载,新的授权申请失败。

当设备不再使用授权时,可卸载并释放授权,License server将回收授权。回收的且未过期的授权可以继续向其他设备授权。

【举例】

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

<Sysname> system-view

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

2.1.6  license server

license server命令用来配置License server的IP地址和端口。

undo license server命令用来取消配置License server的IP地址和端口配置。

【命令】

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

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

【缺省情况】

未配置License server的IP地址和端口。

【视图】

系统视图

【缺省用户角色】

network-admin

【参数】

ipv4 ip-address:License server的IPv4地址。

port-number:License server的端口号,取值范围为1~65535。

vpn-instance vpn-instance-name:License server所属的VPN实例。vpn-instance-name表示MPLS L3VPN的VPN实例名称,为1~31个字符的字符串,区分大小写。如果未指定本参数,则表示License server位于公网中。

【使用指导】

多次执行本命令,最多可配置四个License server。IP地址、端口号和VPN实例任一参数不同均认为是不同的License server。当配置的License server达到上限时,请先删除已有配置,再重新配置License server参数。

当设备获取并安装了一个基础授权,又申请一个基础授权时,License client会先卸载已有授权并归还给License server,再向License server申请新的授权。或者在设备上卸载授权,卸载的授权也会归还给License server。当配置了多个License server时,请确保同一时刻,仅有一台运行稳定的License server路由可达,以免授权信息交互混乱。

如需修改License server的地址和端口,请先关闭License client功能。

【举例】

# 配置License server的IPv4地址和端口号分别为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保留在没有任何通知或提示的情况下对资料内容进行修改的权利!

新华三官网
联系我们