- Table of Contents
-
- 12-Network Management and Monitoring Command Reference
- 00-Preface
- 01-System Maintenance and Debugging Commands
- 02-NQA Commands
- 03-NTP Commands
- 04-Clock Monitoring Commands
- 05-IPC Commands
- 06-SNMP Commands
- 07-RMON Commands
- 08-Sampler Commands
- 09-Mirroring Commands
- 10-NetStream Commands
- 11-IPv6 NetStream Commands
- 12-Protocol Packet Statistics Commands
- 13-Information Center Commands
- 14-Flow Logging Commands
- Related Documents
-
Title | Size | Download |
---|---|---|
12-Protocol Packet Statistics Commands | 56.36 KB |
Contents
Protocol packet statistics configuration commands
display to-cpu-packet statistics
reset to-cpu-packet statistics
display to-cpu-packet statistics
Syntax
display to-cpu-packet statistics { interface interface-type interface-number | [ protocol protocol-type ] slot slot-number } [ | { begin | exclude | include } regular-expression ]
View
Any view
Default level
1: Monitor level
Parameters
interface interface-type interface-number: Displays statistics for protocol packets passed to the CPU from the specified interface.
protocol protocol-type: Displays statistics for packets of the specified protocol that have been passed to the CPU. Supported protocols include: 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: Displays statistics for protocol packets passed to the CPU from the card in the specified slot.
|: Filters command output by specifying a regular expression. For more information about regular expressions, see Fundamentals Configuration Guide.
begin: Displays the first line that matches the specified regular expression and all lines that follow.
exclude: Displays all lines that do not match the specified regular expression.
include: Displays all lines that match the specified regular expression.
regular-expression: Specifies a regular expression, a case-sensitive string of 1 to 256 characters.
Description
Use the display to-cpu-packet statistics command to view protocol packet statistics.
If you do not specify the protocol protocol-type option, the command displays statistics for protocol packets of all protocol types on the card in the specified slot.
Examples
# Display statistics for ARP packets passed from the card in slot 3 to the CPU.
<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
# Display statistics for protocol packets passed from GigabitEthernet 3/1/1 to the 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
reset to-cpu-packet statistics
Syntax
reset to-cpu-packet statistics slot slot-number
View
User view
Default level
1: Monitor level
Parameters
slot slot-number: Clears statistics for protocol packets passed to the CPU from the card in the specified slot.
Description
Use the reset to-cpu-packet statistics command to clear statistics for protocol packets passed to the CPU.
The command clears only the statistics for protocol packets passed from the specified card to the CPU.
Examples
# Clear the statistics for protocol packets passed to the CPU from the card in slot 2.
<Sysname> reset to-cpu-packet statistics slot 2