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

11-安全命令参考

目录

12-User Profile命令

本章节下载 12-User Profile命令  (123.42 KB)

docurl=/cn/Service/Document_Software/Document_Center/Routers/Catalog/SR_Router/SR8800-F/Command/Command_Manual/H3C_SR8800-F_CR-R7153-6W712/11/201809/1110303_30005_0.htm

12-User Profile命令


1 User Profile

说明

本功能仅CSPEX-1204的单板支持。

 

1.1  User Profile配置命令

1.1.1  display qos policy user-profile

display qos policy user-profile命令用来显示用户上线后User Profile下应用的QoS策略的运行信息。

【命令】

独立运行模式:

display qos policy user-profile [ name profile-name ] [ user-id user-id ] [ slot slot-number ] [ inbound | outbound ]

IRF模式:

display qos policy user-profile [ name profile-name ] [ user-id user-id ] [ chassis chassis-number slot slot-number ] [ inbound | outbound ]

【视图】

任意视图

【缺省用户角色】

network-admin

network-operator

【参数】

name profile-name:表示User Profile的名称,为1~31个字符的字符串,只能包含英文字母[a-z,A-Z]、数字、下划线,且必须以英文字母开始,区分大小写。User Profile的名称必须全局唯一。如果未指定本参数,将显示所有User Profile的在线用户QoS策略运行信息。

user-id user-id:表示在线用户的ID,为系统所分配,为十六进制数。

slot slot-number:显示User Profile的指定单板的在线用户QoS策略运行信息,slot-number表示单板所在的槽位号。如果未指定本参数,将显示User Profile的所有在位单板的在线用户QoS策略运行信息。(独立运行模式)

chassis chassis-number slot slot-number:显示User Profile的指定成员设备上指定单板的在线用户QoS策略运行信息,chassis-number表示设备在IRF中的成员编号,slot-number表示单板所在的槽位号。如果未指定本参数,将显示User Profile的所有成员设备上在位单板的在线用户QoS策略运行信息。(IRF模式)

inbound:显示在线用户在入方向上的QoS策略运行情况。

outbound:显示在线用户在出方向上的QoS策略运行情况。

【举例】

# 显示指定非全局用户上线后User Profile下应用的QoS策略的运行信息。

<Sysname> display qos policy user-profile name abc user-id 30000000 inbound

User-Profile: abc

  slot 1:

    User ID: 0x30000000(local)

 

      Direction: Inbound

 

      Policy: test

       Classifier: test

         Operator: AND

         Rule(s) :

          If-match acl 2010

         Behavior: test

          Accounting enable:

            0 (Packets)

          Committed Access Rate:

            CIR 1000 (kbps), CBS 62500 (Bytes), EBS 512 (Bytes), PIR 2000 (kbps)

            Green action : pass

            Yellow action : pass

            Red action : discard

            Green packets : 0 (Packets)

            Yellow packets: 0 (Packets)

            Red packets : 0 (Packets)

# 显示指定槽位下的全局用户上线后User Profile下应用的QoS策略的运行信息。

<Sysname> display qos policy user-profile name abc user-id 380aee00 slot 1

User-Profile: abc

  User ID: 0x380aee00(global)

 

    Direction: Inbound

 

    Policy: test

     Classifier: test

       Operator: AND

       Rule(s) :

        If-match acl 2010

       Behavior: test

        Accounting enable:

          177955 (Packets)

        Committed Access Rate:

          CIR 1000 (kbps), CBS 62500 (Bytes), EBS 512 (Bytes), PIR 2000 (kbps)

          Green action : pass

          Yellow action : pass

          Red action : discard

          Green packets : 13153 (Packets)

          Yellow packets: 6957 (Packets)

          Red packets : 23869 (Packets)

# 显示指定User Profile下所有用户的QoS策略的运行信息。

<Sysname> display qos policy user-profile name abc

User-Profile: abc

  slot 1:

    User ID: 0x30000000(local)

 

      Direction: Inbound

 

      Policy: test

       Classifier: test

         Operator: AND

         Rule(s) :

          If-match acl 2010

         Behavior: test

          Accounting enable:

            0 (Packets)

          Committed Access Rate:

            CIR 1000 (kbps), CBS 62500 (Bytes), EBS 512 (Bytes), PIR 2000 (kbps)

            Green action : pass

            Yellow action : pass

            Red action : discard

            Green packets : 0 (Packets)

            Yellow packets: 0 (Packets)

            Red packets : 0 (Packets)

 

    User ID: 0x30000000(local)

 

      Direction: Outbound

 

      Policy: test

       Classifier: test

         Operator: AND

         Rule(s) :

          If-match acl 2010

         Behavior: test

          Accounting enable:

            0 (Packets)

          Committed Access Rate:

            CIR 1000 (kbps), CBS 62500 (Bytes), EBS 512 (Bytes), PIR 2000 (kbps)

            Green action : pass

            Yellow action : pass

            Red action : discard

            Green packets : 0 (Packets)

            Yellow packets: 0 (Packets)

            Red packets : 0 (Packets)

表1-1 display qos policy user-profile 命令显示信息描述表

字段

描述

User-Profile

User Profile名称

User ID

上线用户的ID

global

该用户从聚合口等全局口上线

local

该用户从物理口上线

Direction

QoS策略应用在User Profile的方向

Policy

QoS策略名

CIR

承诺信息速率,单位为kbps

CBS

承诺突发尺寸,也就是容纳突发流量的令牌桶深度,单位为byte

EBS

超出突发尺寸,在双令牌桶算法中超出突发流量超过承诺突发流量的部分,单位为byte

PIR

峰值信息速率

Green action

对绿色报文的动作

·     discard:丢弃报文

·     pass:允许报文通过

Yellow action

对黄色报文的动作

·     discard:丢弃报文

·     pass:允许报文通过

Red action

对红色报文的动作

·     discard:丢弃报文

·     pass:允许报文通过

Green packets

对绿色报文的流量统计

Yellow packets

对黄色报文的流量统计

Red packets

对红色报文的流量统计

 

【相关命令】

user-profile

1.1.2  display user-profile

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-number表示单板所在的槽位号。如果未指定本参数,将显示User Profile的配置信息和所有在位单板的在线用户信息。(独立运行模式)

chassis chassis-number slot slot-number:显示User Profile的配置信息和指定成员设备上指定单板的在线用户信息,chassis-number表示设备在IRF中的成员编号,slot-number表示单板所在的槽位号。如果未指定本参数,将显示User Profile的配置信息和所有成员设备上在位单板的在线用户信息。(IRF模式)

【举例】

# 显示指定槽号和名称为aaa的User Profile配置信息及其下在线用户信息。

<Sysname> display user-profile name aaa

  User-Profile: aaa

Inbound:

       CIR 33 (kbps), CBS 2062 (Bytes), EBS 0 (Bytes), PIR 888 (kbps)

Policy: p1

Outbound:

       CIR 33 (kbps), CBS 2062 (Bytes), EBS 0 (Bytes), PIR 888 (kbps)

Policy: p2

    Connection-limit amount: 1000

    Connection-limit rate: 100

 

User user_1:

Authentication type: Portal

Network attributes:

Interface    : Gigabitethernet1/2/0/3

 

IP address   : 172.16.187.16

VPN          : N/A

Service VLAN : 100

表1-2 display user-profile 命令显示信息描述表

字段

描述

User-Profile

User Profile名称

CIR

承诺信息速率,单位为kbps

CBS

承诺突发尺寸,也就是容纳突发流量的令牌桶深度,单位为byte

EBS

超出突发尺寸,在双令牌桶算法中超出突发流量超过承诺突发流量的部分,单位为byte

PIR

峰值信息速率

Connection-limit amount

用户最大连接数

Connection-limit rate

用户最大连接速率

Policy

策略名

QMProfile

暂不支持

Authentication type

用户认证类型

·     Portal

·     PPP

·     IPoE

Network attributes

用户特征信息

 

1.1.3  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命令时,如果指定名称的User Profile不存在,则创建该User Profile,并进入其视图,否则直接进入其视图。

【举例】

# 创建并进入名称为a123的User Profile。

<Sysname> system-view

[Sysname] user-profile a123

[Sysname-user-profile-a123]

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

新华三官网
联系我们