03-User Profile命令
本章节下载: 03-User Profile命令 (156.77 KB)
display user-profile用来显示User Profile的配置信息和在线用户信息。
【命令】
独立运行模式:
display user-profile [ name profile-name ] [ slot slot-number ]
IRF模式:
display user-profile [ name profile-name ] [ chassis chassis-number slot slot-number ]
【视图】
任意视图
【缺省用户角色】
network-admin
network-operator
【参数】
name profile-name:表示User Profile的名称,为1~31个字符的字符串,只能包含英文字母[a-z,A-Z]、数字、下划线,且必须以英文字母开始,区分大小写。User Profile的名称必须全局唯一。如果未指定本参数,将显示所有User Profile的配置信息和在线用户信息。
slot slot-number:显示User Profile的配置信息和指定slot的在线用户信息,slot-number表示槽位号(固定取值为0)。如果未指定本参数,将显示User Profile的配置信息和所有在位slot的在线用户信息命令执行结果相同。(独立运行模式)
chassis chassis-number slot slot-number:显示User Profile的配置信息和指定成员设备上指定slot的在线用户信息,chassis-number表示设备在IRF中的成员编号,slot-number表示槽位号(固定取值为0)。如果未指定本参数,将显示User Profile的配置信息和所有slot成员设备上在位slot的在线用户信息。(IRF模式)
【举例】
# 显示1号slot上的User Profile配置信息及被授权该User Profile的在线用户信息。(独立运行模式)
<Sysname> display user-profile slot 1
User-Profile: aaa
Inbound:
CIR 32 (kbps), CBS 2048 (Bytes), EBS 0 (Bytes), PIR 888 (kbps)
Policy: p1
Outbound:
CIR 32 (kbps), CBS 2048 (Bytes), EBS 0 (Bytes), PIR 888 (kbps)
Policy: p2
User user_2:
Authentication type: Portal
Network attributes:
Interface : GigabitEthernet2/1/3
IP address : 172.16.187.16
VPN : N/A
Service VLAN : 100
User -:
Reference type: VPN-PEER
User-Profile: bbb
Inbound:
CIR 512 (kbps), CBS 1024 (Bytes), EBS 0 (Bytes), PIR 888 (kbps)
Policy: p3
User user_4:
Authentication type: Portal
Network attributes:
Interface : GigabitEthernet2/1/2
IP address : 172.16.187.166
VPN : N/A
Service VLAN : 100
# 显示1号成员设备1号slot上名称为aaa的User Profile配置信息及被授权该User Profile的在线用户信息。(IRF模式)
<Sysname> display user-profile name aaa chassis 1 slot 1
User-Profile: aaa
Inbound:
CIR 32 (kbps), CBS 2048 (Bytes), EBS 0 (Bytes), PIR 888 (kbps)
Policy: p1
Outbound:
CIR 32 (kbps), CBS 2048 (Bytes), EBS 0 (Bytes), PIR 888 (kbps)
Policy: p2
User user_2:
Authentication type: Portal
Network attributes:
Interface : GigabitEthernet1/2/1/3
IP address : 172.16.187.16
VPN : N/A
Service VLAN : 100
User -:
Reference type: VPN-PEER
# 显示名称为bbb的User Profile配置信息及被授权该User Profile的在线用户信息。(IRF模式)
<Sysname> display user-profile name bbb
User-Profile: bbb
Inbound:
CIR 512 (kbps), CBS 1024 (Bytes), EBS 0 (Bytes), PIR 888 (kbps)
Policy: p3
Chassis 1 Slot 2:
User user_4:
Authentication type: PPP
Network attributes:
Interface : GigabitEthernet1/2/1/2
User -:
Reference type: VPN-PEER
Chassis 1 Slot 5:
User user_5:
Authentication type: IPoE
Network attributes:
MAC address : 2222-3333-4444
# 显示所有的User Profile配置信息及被授权该User Profile的在线用户信息。(IRF模式)
<Sysname> display user-profile
User-Profile: aaa
Inbound:
CIR 32 (kbps), CBS 2048 (Bytes), EBS 0 (Bytes), PIR 888 (kbps)
Policy: p1
Chassis 1 Slot 5:
User user_6:
Authentication type: PPP
Network attributes:
Interface : GigabitEthernet1/2/1/3
User-Profile: bbb
Inbound:
CIR 512 (kbps), CBS 1024 (Bytes), EBS 0 (Bytes), PIR 888 (kbps)
Policy: p3
Chassis 1 Slot 5:
User user_7:
Authentication type: IPoE
Network attributes:
Interface : GigabitEthernet1/2/1/2
MAC address : 0000-1111-2222
IP address : 172.16.187.166
VPN : N/A
Service VLAN : 100
表1-1 display user-profile 命令显示信息描述表
字段 |
描述 |
User-Profile |
User Profile名称 |
Inbound |
在入方向上应用的策略 |
Outbound |
在出方向上应用的策略 |
CIR |
承诺信息速率,单位为kbps |
CBS |
承诺突发尺寸,也就是容纳突发流量的令牌桶深度,单位为byte |
EBS |
超出突发尺寸,在双令牌桶算法中超出突发流量超过承诺突发流量的部分,单位为byte |
PIR |
峰值信息速率 |
Policy |
策略名 |
User user_1 |
与User Profile关联的用户信息,如无用户上线时将显示“-” |
Authentication type |
用户认证类型 · Portal · PPP · IPoE · MACA |
Network attributes |
用户特征信息 |
Failed action list |
在该用户上应用失败的动作 |
Reference type |
引用关系类型,目前仅支持VPN-PEER类型的引用,表明配置VPN PEER时引用了该User Profile |
user-profile命令用来创建User Profile,并进入User Profile视图。如果指定的User Profile已经存在,则直接进入User Profile视图。
undo user-profile命令用来删除指定的User Profile。
【命令】
user-profile profile-name
undo user-profile profile-name
【缺省情况】
不存在User Profile。
【视图】
系统视图
【缺省用户角色】
network-admin
【参数】
profile-name:表示User Profile的名称,为1~31个字符的字符串,只能包含英文字母[a-z,A-Z]、数字、下划线,且必须以英文字母开始,区分大小写。User Profile的名称必须全局唯一。
【使用指导】
User Profile的名称必须全局唯一。
【举例】
# 创建名称为a123的User Profile,并进入其视图。
<Sysname> system-view
[Sysname] user-profile a123
不同款型规格的资料略有差异, 详细信息请向具体销售和400咨询。H3C保留在没有任何通知或提示的情况下对资料内容进行修改的权利!