• 产品与解决方案
  • 行业解决方案
  • 服务
  • 支持
  • 合作伙伴
  • 关于我们

08-系统分册

10-接口报文统计命令

本章节下载 10-接口报文统计命令  (108.93 KB)

10-接口报文统计命令


第1章  接口报文统计命令

1.1  出接口报文统计命令

1.1.1  display egress

【命令】

display egress { counter0 | counter1 | counter2 | counter3 | counter4 | counter5 | counter6 | counter7 } slot slot-num  [ clear ]

【视图】

任意视图

【参数】

counter0使用0号寄存器组进行监测。

counter1使用1号寄存器组进行监测。

counter2使用2号寄存器组进行监测。

counter3使用3号寄存器组进行监测。

counter4使用4号寄存器组进行监测。

counter5使用5号寄存器组进行监测。

counter6使用6号寄存器组进行监测。

counter7使用7号寄存器组进行监测。

slot-num单板槽位号。

clear读取寄存器组中的统计信息后,清空统计信息计数。

【描述】

display egress命令用来显示指定槽位单板上指定寄存器组的监控对象和出接口报文统计信息。

表1-1 相关参考命令

命令

描述

set egress

该命令用来设置报文统计寄存器组

 

【举例】

# 查询4号槽位上0号寄存器组的出接口报文统计信息,查询后清空寄存器组。

<H3C> display egress counter0 slot 4 clear

Slot 4 egress counter0 mode:

  Interface: all

  VLAN: all

  Traffic Class: all

  Drop Precedence: all

 The outgoing packets:

  Unicast: 0 packets

  Multicast: 0 packets

  Broadcast: 0 packets

  Bridege egress filtered packets: 0 packets

TxQ filtered packets(Due to TxQ congestion ): 0 packets

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

字段

描述

Slot x egress xxxxx mode

指定槽位单板上指定寄存器组的监控对象,包括:

l      Interface:统计的接口

l      VLAN:统计的VLAN

l      Traffic Class:统计的流分类

l      Drop Precedence:统计的丢弃优先级

The outgoing packets

指定槽位单板上指定寄存器组的出接口报文统计,包括:

l      Unicast:单播报文

l      Multicast:组播报文

l      Broadcast:广播报文

l      Bridege egress filtered packets:桥过滤报文

l      TxQ filtered packets(Due to TxQ congestion ):拥塞丢弃报文

 

1.1.2  set egress

【命令】

set egress { counter0 | counter1 | counter2 | counter3 | counter4 | counter5 | counter6 | counter7 } slot slot-num [ interface interface-type interface-number ] [ vlan vlan-id ] [ tc traffic-class ] [ dp drop-precedence ]

undo set egress  { counter0 | counter1 | counter2 | counter3 | counter4 | counter5 | counter6 | counter7 } slot slot-num

【视图】

系统视图

【参数】

counter0使用0号寄存器组进行监测。

counter1使用1号寄存器组进行监测。

counter2使用2号寄存器组进行监测。

counter3使用3号寄存器组进行监测。

counter4使用4号寄存器组进行监测。

counter5使用5号寄存器组进行监测。

counter6使用6号寄存器组进行监测。

counter7使用7号寄存器组进行监测。

slot-num:单板槽位号。

interface-type interface-number:端口类型和端口号,必须和slot-num参数匹配。当不指定具体端口号时,默认该单板上的所有端口。该命令不支持对POS端口、RPR物理端口进行统计;对于WAN类型的单板,不支持对ATM子接口等非以太网端口进行统计;同时对E1/T1端口,既不支持对端口进行统计,也不支持对VLAN进行统计。

vlan-id:IEEE802.1Q中定义的VLAN ID,当不指定具体VLAN时,默认为所有的VLAN。

traffic-class:流量类型,当不指定具体流量等级时,默认为所有流量类型。

drop-precedence:丢弃优先级,当不指定具体丢弃优先级时,默认为所有优先级。

【描述】

set egress命令用来设置报文统计寄存器组。undo set egress命令用来取消设置。一块单板最多提供八组寄存器用于监测单板的出接口报文统计,监控的对象有端口、VLAN、端口+VLAN、单板。除了这四种监控对象外,单板还可以监控一个TC(Traffic Class,流分类)或者一个DP(Drop Precedence,丢弃优先级)。在监控单板时还可以监控全部TC和全部DP。使用set egress命令重新设置某单板的监控模式后,寄存器组的值会自动清空。

缺省情况下,单板不进行出端口报文统计。

要注意的是:

l              如果在LSB1GV48DB0、 LSB2GV48DB0和LSB1GP48DB0单板上配置出接口报文统计寄存器组的监控对象包含端口时,统计结果将不准确。

l              对于WAN类型的单板,该命令不支持对ATM子接口等非以太网端口进行统计;同时对E1/T1端口,既不支持对端口进行统计,也不支持对VLAN进行统计。

l              对于LSB1XP4B0、 LSB1XP4CA0和TGX1B等非线速10GE单板以及GE的RPR单板上的RPR逻辑端口,该命令不支持按端口进行统计。

l              该命令不支持对POS端口、RPR物理端口进行统计。

l              本命令与qos queue-statistics outbound命令互斥。

表1-3 相关参考命令

命令

描述

display egress

该命令用来显示寄存器组统计的出口报文信息,同时显示该组寄存器的监控对象

 

【举例】

# 设置4槽位的0号寄存器组的出口报文统计方式为监控GigabitEthernet4/1/1端口。

<H3C> system-view

System View: return to User View with Ctrl+Z.

[H3C] set egress counter0 slot 4 interface GigabitEthernet4/1/1

1.2  QoS队列统计配置命令

1.2.1  display qos queue-statistics interface

【命令】

display qos queue-statistics [ inbound | outbound ] interface [ interface-type interface-number ]

【视图】

任意视图

【参数】

inbound:表示对端口接收的报文进行统计,即端口入方向的QoS队列统计。

outbound:表示对端口发送的报文进行统计,即端口出方向的QoS队列统计。

interface-type interface-number:指定接口类型和接口编号,仅支持以太网端口。

【描述】

display qos queue-statistics interface命令用来显示端口QoS队列的统计信息。

【举例】

# 显示GigabitEthernet2/1/1端口出方向上的QoS队列的统计信息。

<H3C> display qos queue-statistics outbound interface Gigabitethernet 2/1/1

=================================

Direction: Outbound

Interface: GigabitEthernet2/1/1

Queue ID:  2

VLAN ID:   N/A

Resource index: 1

QoSPass packets: 954645678

QoSDrop packets: 0

QoSPass speed(pps): 102409  

 

=================================

Direction: Outbound

Interface: GigabitEthernet2/1/1

Queue ID:  3

VLAN ID:   N/A

Resource index: 2

QoSPass packets: 16556414

QoSDrop packets: 0

QoSPass speed(pps): 212512  

表1-4 display qos queue-statistics命令显示信息描述表

字段

描述

Direction

统计报文的方向

Interface

统计的接口

Queue ID

队列编号

VLAN ID

VLAN编号

Resource index

资源索引号

QoSPass packets

通过的报文数

QoSDrop packets

丢弃的报文数

QoSPass speed(pps)

报文流速(单位为pps)

 

1.2.2  qos queue-statistics inbound

【命令】

qos queue-statistics inbound interface-type interface-number vlanid

undo qos queue-statistics inbound [ interface-type interface-number vlanid ]

【视图】

系统视图

【参数】

interface-type interface-number:指定接口类型和接口编号,仅支持以太网端口。

vlanid:VLAN编号,取值范围为1~4094。

【描述】

qos queue-statistics inbound命令用来使能端口入方向的QoS队列统计功能。undo qos queue-statistics inbound命令用来取消端口入方向的QoS队列统计功能。

需要注意的是:

l              一块单板最多提供16组寄存器用于监测端口入方向上的QoS队列统计。例如:LSB1GP48LDB0单板可提供16组,而LSB1GT24CA0单板提供8组,LSB2FT48B0单板提供4组。

l              LSB1XP4B0、 LSB1XP4CA0和TGX1B等非线速10GE单板上的端口不支持本命令。

l              统计结果可以通过display qos queue-statistics interface命令查看。

缺省情况下,没有使能端口入方向的QoS队列统计功能。

表1-5 相关参考命令

命令

描述

display qos queue-statistics interface

该命令用来查看端口QoS队列的统计信息

 

【举例】

# 使能GigabitEthernet2/1/1端口入方向的QoS队列统计功能。

<H3C> system-view

System View: return to User View with Ctrl+Z.

[H3C] interface gigabitethernet 2/1/1

[H3C-GigabitEthernet2/1/1] qos queue-statistics inbound Gigabitethernet 2/1/1 100

1.2.3  qos queue-statistics outbound

【命令】

qos queue-statistics outbound interface-type interface-number traffic-class

undo qos queue-statistics outbound [ interface-type interface-number traffic-class ]

【视图】

系统视图

【参数】

interface-type interface-number:指定接口类型和接口编号,仅支持以太网端口。

traffic-class:流量类型,取值范围为0~7。

【描述】

qos queue-statistics outbound命令用来使能端口出方向上的QoS队列统计功能。undo qos queue-statistics outbound命令用来取消端口出方向上的QoS队列统计功能。

需要注意的是:

l              一块单板最多提供8组寄存器用于监测端口出方向上的QoS队列统计,例如:LSB1GP48LDB0单板可提供8组,而LSB1GT24CA0单板提供4组,LSB2FT48B0单板提供2组。

l              LSB1XP4B0、 LSB1XP4CA0和TGX1B等非线速10GE单板上的端口不支持本命令。

l              统计结果可以通过display qos queue-statistics interface命令查看。

l              本命令与set egress命令互斥。

缺省情况下,没有使能端口出方向上的QoS队列统计功能。

表1-6 相关参考命令

命令

描述

display qos queue-statistics interface

该命令用来查看端口QoS队列的统计信息

 

【举例】

# 使能GigabitEthernet2/1/1端口出方向上的QoS队列统计功能。

<H3C> system-view

System View: return to User View with Ctrl+Z.

[H3C] interface Gigabitethernet 2/1/1

[H3C-GigabitEthernet2/1/1] qos queue-statistics outbound Gigabitethernet 2/1/1 3

1.2.4  reset qos queue-statistics interface

【命令】

reset qos queue-statistics interface [ interface-type interface-number ]

【视图】

用户视图

【参数】

interface-type interface-number:指定接口类型和接口编号,仅支持以太网端口。

【描述】

reset qos queue-statistics interface命令用来清除指定端口上的QoS队列统计信息。

【举例】

# 清除端口GigabitEthernet 2/1/1上的QoS队列统计信息。

<H3C> reset qos queue-statistics interface Gigabitethernet2/1/1

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

新华三官网
联系我们