12-协议报文统计命令
本章节下载: 12-协议报文统计命令 (84.27 KB)
【命令】
display to-cpu-packet statistics { interface interface-type interface-number | [ protocol protocol-type ] slot slot-number } [ | { begin | exclude | include } regular-expression ]
【视图】
任意视图
【缺省级别】
1:监控级
【参数】
interface interface-type interface-number:显示指定接口的上送CPU协议报文统计信息。
protocol protocol-type:显示指定协议的上送CPU协议报文统计信息。设备支持的协议类型包括arp、bgp、bgp4+、bpdu-tunnel、dhcp、dot1x、gvrp、icmp、igmp、ip-lasthop、ip-to-localif、isis、lacp、ldp、mld、mpls-lasthop、msdp、nd、ntp、ospf、ospfv3、pim、pim-ipv6、rip、ripng、rsvp、stp、vrrp等。
slot slot-number:显示指定槽位号的上送CPU协议报文统计信息。
|:使用正则表达式对显示信息进行过滤。有关正则表达式的详细介绍,请参见“基础配置指导”中的“CLI”。
begin:从包含指定正则表达式的行开始显示。
exclude:只显示不包含指定正则表达式的行。
include:只显示包含指定正则表达式的行。
regular-expression:表示正则表达式,为1~256个字符的字符串,区分大小写。
【描述】
display to-cpu-packet statistics命令用来显示上送CPU协议报文统计信息。
需要注意的是:不指定参数protocol protocol-type时显示指定单板上所有协议的上送CPU协议报文统计信息。
【举例】
# 显示3号槽上送CPU的ARP报文统计信息。
<Sysname>display to-cpu-packet statistics protocol arp slot 3
Slot: 3
The total received packets of ARP: 0
Interface Protocol type Received packets
GE3/1/1 ARP 0
GE3/1/2 ARP 0
GE3/1/3 ARP 0
GE3/1/4 ARP 0
# 显示接口Gigabitethernet3/1/1的上送CPU协议报文统计信息。
<Sysname>display to-cpu-packet statistics interface GigabitEthernet 3/1/1
Slot: 3
The total received packets of port GE3/1/1: 0
Interface Protocol type Received packets
GE3/1/1 ARP 0
GE3/1/1 BGP 0
GE3/1/1 BGP4+ 0
GE3/1/1 BPDU-tunnel 0
GE3/1/1 DHCP 0
GE3/1/1 802.1X 0
GE3/1/1 GVRP 0
GE3/1/1 ICMP 0
GE3/1/1 IP-lasthop 0
GE3/1/1 IP-to-localIF 0
GE3/1/1 IGMP 0
GE3/1/1 ISIS 0
GE3/1/1 LACP 0
GE3/1/1 LDP 0
GE3/1/1 MSDP 0
GE3/1/1 MPLS-lasthop 0
GE3/1/1 MLD 0
GE3/1/1 NTP 0
GE3/1/1 ND 0
GE3/1/1 OSPF 0
GE3/1/1 OSPFv3 0
GE3/1/1 PIM 0
GE3/1/1 PIM IPv6 0
GE3/1/1 RIP 0
GE3/1/1 RIPng 0
GE3/1/1 RSVP 0
GE3/1/1 STP 0
GE3/1/1 VRRP 0
表1-1 display to-cpu-packet statistics命令显示信息描述表
字段 |
描述 |
Slot |
单板所在的槽位号 |
The total received packets of ARP/ The total received packets of port GE3/1/1 |
总共收到的ARP-multicast报文数目/接口总共收到的报文数目 |
Interface |
接口名称 |
Protocol type |
协议类型,例如:ARP、DHCP、802.1X和ND协议 |
Received packets |
上送CPU协议报文个数 |
【命令】
reset to-cpu-packet statistics slot slot-number
【视图】
用户视图
【缺省级别】
1:监控级
【参数】
slot slot-number:表示清除指定单板的上送CPU协议报文统计信息。slot-number表示单板所在的槽位号。
【描述】
reset to-cpu-packet statistics命令用来清除上送CPU协议报文统计信息。
需要注意的是,设备只是清除指定单板的上送CPU协议报文统计信息。
【举例】
# 清除2号单板的上送CPU协议报文统计信息。
<Sysname> reset to-cpu-packet statistics slot 2
不同款型规格的资料略有差异, 详细信息请向具体销售和400咨询。H3C保留在没有任何通知或提示的情况下对资料内容进行修改的权利!