03-License client命令
本章節下載: 03-License client命令 (180.18 KB)
設備各款型對於本節所描述的特性支持情況有所不同,詳細差異信息如下:
係列 |
型號 |
產品代碼 |
描述 |
WX1800H係列 |
WX1804H |
EWP-WX1804H-PWR-CN |
支持 |
WX2500H係列 |
WX2508H-PWR-LTE WX2510H WX2510H-F WX2540H WX2540H-F WX2560H |
EWP-WX2508H-PWR-LTE EWP-WX2510H-PWR EWP-WX2510H-F-PWR EWP-WX2540H EWP-WX2540H-F EWP-WX2560H |
支持 |
MAK係列 |
MAK204 MAK206 |
EWP-MAK204 EWP-MAK206 |
支持 |
WX3000H係列 |
WX3010H WX3010H-X WX3010H-L WX3024H WX3024H-L WX3024H-F |
EWP-WX3010H EWP-WX3010H-X-PWR EWP-WX3010H-L-PWR EWP-WX3024H EWP-WX3024H-L-PWR EWP-WX3024H-F |
支持 |
WX3500H係列 |
WX3508H WX3510H WX3520H WX3520H-F WX3540H |
EWP-WX3508H EWP-WX3510H EWP-WX3520H EWP-WX3520H-F EWP-WX3540H |
支持 |
WX5500E係列 |
WX5510E WX5540E |
EWP-WX5510E EWP-WX5540E |
支持 |
WX5500H係列 |
WX5540H WX5560H WX5580H |
EWP-WX5540H EWP-WX5560H EWP-WX5580H |
支持 |
AC插卡係列 |
LSUM1WCME0 EWPXM1WCME0 LSQM1WCMX20 LSUM1WCMX20RT LSQM1WCMX40 LSUM1WCMX40RT EWPXM2WCMD0F EWPXM1MAC0F |
LSUM1WCME0 EWPXM1WCME0 LSQM1WCMX20 LSUM1WCMX20RT LSQM1WCMX40 LSUM1WCMX40RT EWPXM2WCMD0F EWPXM1MAC0F |
支持 |
產品係列 |
產品型號 |
產品代碼 |
說明 |
WX1800H係列 |
WX1804H WX1810H WX1820H WX1840H |
EWP-WX1804H-PWR EWP-WX1810H-PWR EWP-WX1820H EWP-WX1840H-GL |
不支持 |
WX3800H係列 |
WX3820H WX3840H |
EWP-WX3820H-GL EWP-WX3840H-GL |
不支持 |
WX5800H係列 |
WX5860H |
EWP-WX5860H-GL |
不支持 |
display license client命令用來顯示設備作為License client時的配置信息和獲取到的授權信息。
【命令】
display license client
【視圖】
任意視圖
【缺省用戶角色】
network-admin
network-operator
【舉例】
# 顯示設備作為License client時的配置信息和獲取到的授權信息。
<Sysname> display license client
Username: user
Ciphertext password: ******
License server's IPv4 address: 192.168.3.124, port: 5555
License server's IPv6 address: 2001::1, port: 6000
License client: Enabled, Registering, Miss sync count 0
Cache Size:
License name: APMGR, cache size: 64
License Count: 1
ID: 34153395526cf65b09000000
License Name: APMGR
Licensed Count:32
License Description: H3C WLAN AP Management, 32 licenses
Current State: In use
Get Time: 2018-11-22 16:55:01
表1-1 display license client命令顯示信息描述表
字段 |
描述 |
Username |
認證用戶名,如未指定則顯示為Not configured |
Ciphertext password |
認證用戶密文密碼,如未指定則顯示為Not configured |
License server's IPv4 address: 192.168.3.124, port: 5555 |
License server的IPv4地址信息和端口號 |
License server's IPv6 address: 2001::1, port: 6000 |
License server的IPv6地址信息和端口號 |
License server's IPv4/IPv6 address: Not configured, port: Not configured |
未配置License server的IPv4/IPv6地址信息和端口號 |
License client |
License client的狀態信息,取值包括: · Enabled:已使能 · Disabled:未使能 · Registering:正在注冊 · Registered:已注冊 · Miss sync count:丟失同步報文的個數 |
Cache Size: License name: APMGR, cache size: 64 |
License client本地緩存的License的名稱和該名稱License的數量 |
License Count |
License client本地當前擁有的授權的個數 |
ID |
一次授權的標識。License client申請一次授權,License server就會給License client分配一個ID |
License name |
License的名稱 |
Licensed Count |
本License的規格參數(比如H3C WLAN AP Management, 32 licenses該字段會顯示32,表示一個License允許32個AP同時上線)。對於特性類型的License,該參數的取值為1 |
License description |
License的描述信息 |
Current State |
當前License的狀態,取值為: · In use:當前License正在使用 · Unusable:當前License未被使用 · Expired (will be reclaimed in n days):當前License將在n天後失效 |
Get Time |
License client從License server獲取到License的時間 |
display license client statistics命令用來顯示設備通過License客戶端申請到的所有授權的分類統計信息。
【命令】
display license client statistics
【視圖】
任意視圖
【缺省用戶角色】
network-admin
network-operator
【舉例】
# 顯示License client從服務器申請到的所有授權的分類統計信息。
<Sysname> display license client statistics
Name Type Total
APMGR UINT32 64
表1-2 display license client statistics命令顯示信息描述表
字段 |
描述 |
Name |
授權名稱 |
Type |
授權的數據類型,取值包括: · UINT32:數量類型 · BOOL:功能類型,數量值為用戶數量 · STRING:字符串類型,數量值為用戶數量 |
Total |
如果授權是數量類型,顯示為已經申請的授權總數量; 如果授權是功能或字符串類型,顯示為已經申請的授權用戶總數量 |
【相關命令】
· display license client
license client config cache命令用來配置License client本地可緩存的License的個數。
undo license client config cache命令用來禁止緩存License。
【命令】
license client config cache license-name license-name size cache-size
undo license client config cache license-name license-name
【缺省情況】
本地不允許緩存License。
【視圖】
係統視圖
【缺省用戶角色】
network-admin
【參數】
license-name:License的名稱,目前取值隻能為APMGR。
cache-size:本地可緩存的License的數量。
【舉例】
# 允許License client本地緩存名稱為APMGR的License 64個。
<Sysname> system-view
[Sysname] license client config cache license-name APMGR size 64
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
【相關命令】
· license server ipv4
· license server ipv6
· 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
【相關命令】
· license client enable
license server命令用來配置License server的IP地址和端口。
undo license server命令用來取消License server的IP地址和端口配置。
【命令】
license server { ipv4 ipv4-address | ipv6 ipv6-address } port port-number [ vpn-instance vpn-instance-name ]
undo license server { ipv4 ipv4-address | ipv6 ipv6-address }
【缺省情況】
未配置License server的IP地址和端口。
【視圖】
係統視圖
【缺省用戶角色】
network-admin
【參數】
ipv4 ipv4-address:License server的IPv4地址。
ipv6 ipv6-address:License server的IPv6地址。
port-number:License server的端口號,取值範圍為1~65535。
vpn-instance vpn-instance-name:License server所屬的VPN實例。vpn-instance-name表示VPN實例名稱,為1~31個字符的字符串,區分大小寫。如果未指定本參數,則表示License server位於公網中。
【使用指導】
多次執行本命令最多可配置四組IP地址。超過四組時,配置將失敗,請刪除已有配置後重新配置。
請確保同一時刻,僅有一組IP地址路由可達。否則,設備將選擇最先建立連接的遠端設備作為License server。
如需修改License server的地址和端口,請先關閉License client功能。
【舉例】
# 配置License server的地址和端口號分別為192.168.100.1和5555。
<Sysname> system-view
[Sysname] license server ipv4 192.168.100.1 port 5555
# 配置License server的IPv6地址和端口號分別為3001::1和5555。
<Sysname> system-view
[Sysname] license server ipv6 3001::1 port 5555
【相關命令】
· license client enable
不同款型規格的資料略有差異, 詳細信息請向具體銷售和400谘詢。H3C保留在沒有任何通知或提示的情況下對資料內容進行修改的權利!