13-Network Management and Monitoring Command Reference

HomeSupportSwitchesH3C S9500E Switch SeriesReference GuidesCommand ReferencesH3C S9500E Command References-Release1828P04-6W18213-Network Management and Monitoring Command Reference
11-Protocol Packet Statistics Commands
Title Size Download
11-Protocol Packet Statistics Commands 58.94 KB

display to-cpu-packet statistics

Syntax

In standalone mode:

display to-cpu-packet statistics { interface interface-type interface-number | [ protocol protocol-type ] slot slot-number } [ | { begin | exclude | include } regular-expression ]

In IRF mode:

display to-cpu-packet statistics { interface interface-type interface-number | [ protocol protocol-type ] chassis chassis-number 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. The following protocol types are supported: ARP-unicast, ARP-multicast, DHCP, 802.1X, 802.3ah, DLDP, GVRP, ICMP-echo, ICMPv6-echo, IP-lasthop, IP-subnet, IGMP, ISIS, LACP, Loop-detection, LLDP, MLD, NTP, ND-unicast, ND-multicast, OSPF, PIM, RIP, RRPP, RSVP, SNMP, STP, and VRRP.

slot slot-number: Displays statistics for protocol packets passed to the CPU from the specified card. slot-number represents the number of the slot that holds the card. Use this option when your switch is operating in standalone mode.

chassis chassis-number slot slot-number: Displays statistics for protocol packets passed to the CPU from a card on an IRF member switch. The chassis-number represents the ID of the IRF member switch. The slot-number argument represents the number of the slot that holds the card. Use this option when your switch is operating in IRF mode.

|: 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 display to-cpu-packet statistics to view protocol packet statistics.

When your switch is operating in standalone mode, if you do not specify the protocol protocol-type option for this command, protocol packet statistics of all protocol types on the specified card will be displayed.

When your switch is operating in IRF mode, if you do not specify the protocol protocol-type option for this command, protocol packet statistics of all protocol types on the specified card of the specified IRF member device will be displayed.

Examples

# Display statistics for ARP-multicast protocol packets passed from the card in slot 6 to the CPU.

<Sysname> display to-cpu-packet statistics protocol arp-multicast slot 6

Slot: 6

The total received packets of ARP-multicast: 0

Interface            Protocol type         Received packets

GE6/0/1               ARP-multicast             0

GE6/0/2               ARP-multicast             0

GE6/0/3               ARP-multicast             0

GE6/0/4               ARP-multicast             0

GE6/0/5               ARP-multicast             0

GE6/0/6               ARP-multicast             0

GE6/0/7               ARP-multicast             0

GE6/0/8               ARP-multicast             0

GE6/0/9               ARP-multicast             0

GE6/0/10              ARP-multicast             0

GE6/0/11              ARP-multicast             0

GE6/0/12              ARP-multicast             0

GE6/0/13              ARP-multicast             0

GE6/0/14              ARP-multicast             0

GE6/0/15              ARP-multicast             0

GE6/0/16              ARP-multicast             0

GE6/0/17              ARP-multicast             0

GE6/0/18              ARP-multicast             0

GE6/0/19              ARP-multicast             0

GE6/0/20              ARP-multicast             0

GE6/0/21              ARP-multicast             0

GE6/0/22              ARP-multicast             0

GE6/0/23              ARP-multicast             0

GE6/0/24              ARP-multicast             0

# Display statistics for protocol packets passed from GigabitEthernet 6/0/1 to the CPU.

<Sysname> display to-cpu-packet statistics interface GigabitEthernet 6/0/1

Slot: 6

The total received packets of port GE6/0/1: 0

Interface            Protocol type         Received packets

GE6/0/1               ARP-unicast                0

GE6/0/1               ARP-multicast              0

GE6/0/1               DHCP                       0

GE6/0/1               802.1X                     0

GE6/0/1               802.3ah                    0

GE6/0/1               DLDP                       0

GE6/0/1               GVRP                       0

GE6/0/1               ICMP-echo                  0

GE6/0/1               ICMPv6-echo                0

GE6/0/1               IP-lasthop                 0

GE6/0/1               IP-subnet                  0

GE6/0/1               IGMP                       0

GE6/0/1               ISIS                       0

GE6/0/1               LACP                       0

GE6/0/1               Loop-detection             0

GE6/0/1               LLDP                       0

GE6/0/1               MLD                        0

GE6/0/1               NTP                        0

GE6/0/1               ND-unicast                 0

GE6/0/1               ND-multicast               0

GE6/0/1               OSPF                       0

GE6/0/1               PIM                        0

GE6/0/1               RIP                        0

GE6/0/1               RRPP                       0

GE6/0/1               RSVP                       0

GE6/0/1               SNMP                       0

GE6/0/1               STP                        0

GE6/0/1               VRRP                       0

GE6/0/1               Other-protocol             0

reset to-cpu-packet statistics

Syntax

In standalone mode:

reset to-cpu-packet statistics slot slot-number

In IRF mode:

reset to-cpu-packet statistics chassis chassis-number slot slot-number

View

User view

Default level

1: Monitor level

Parameters

slot slot-number: Clears statistics for protocol packets that the specified card passed to the CPU. slot-number represents the number of the slot that holds the card. Use this option when your switch is operating in standalone mode.

chassis chassis-number slot slot-number: Clears statistics for protocol packets passed to the CPU from a card on an IRF member switch. The chassis-number represents the ID of the IRF member switch. The slot-number argument represents the number of the slot that holds the card. Use this option when your switch is operating in IRF mode.

Description

Use reset to-cpu-packet statistics to clear statistics for protocol packets passed to the CPU.

Examples

# Clear statistics for protocol packets passed from the card in slot 2 to the CPU.

<Sysname> reset to-cpu-packet statistics slot 2

# Clear statistics for protocol packets passed from the card in slot 2 of IRF member switch 1 to the CPU.

<Sysname> reset to-cpu-packet statistics chassis 1 slot 2

 

  • Cloud & AI
  • InterConnect
  • Intelligent Computing
  • Security
  • SMB Products
  • Intelligent Terminal Products
  • Product Support Services
  • Technical Service Solutions
All Services
  • Resource Center
  • Policy
  • Online Help
All Support
  • Become A Partner
  • Partner Policy & Program
  • Global Learning
  • Partner Sales Resources
  • Partner Business Management
  • Service Business
All Partners
  • Profile
  • News & Events
  • Online Exhibition Center
  • Contact Us
All About Us
新华三官网