< Home

display counters interface

Function

The display counters interface command displays traffic statistics on an interface, including typical packet statistics and number of packets discarded in queues.

Format

display counters interface [ interface-type interface-number ] [ verbose | nonzero ]

display counters interface verbose [ nonzero ]

Parameters

Parameter

Description

Value

interface-type interface-number

Specifies the interface type and number.

  • interface-type specifies the interface type.
  • interface-number specifies the interface number.

-

verbose

Displays detailed traffic statistics on an interface, including typical packet statistics and number of packets discarded in queues.

-

nonzero

Displays non-zero traffic statistics on an interface, including typical packet statistics and number of packets discarded in queues.

-

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

Usage Scenario

When diagnosing faults on an interface, run the display counters interface [ interface-type interface-number ] [ verbose | nonzero ] command to view detailed information about packets received and sent by the interface to determine whether the interface works properly. You can also run this command to view detailed traffic statistics on an interface, including typical packet statistics and number of packets discarded in queues. You can also run this command to view non-zero traffic statistics on an interface, including typical packet statistics and number of packets discarded in queues.

Follow-up Procedure

If you want to collect new traffic statistics, run the reset counters interface command to clear the current statistics.

Example

# Display traffic statistics on an interface, including typical packet statistics and number of packets discarded in queues. (The following uses a S5720-EI as an example.)

<HUAWEI> display counters interface gigabitethernet 0/0/1 verbose
GigabitEthernet0/0/1
InPackets                :                 0
InOctets                 :                 0
InUcastPkts              :                 0
InMcastPkts              :                 0
InBcastPkts              :                 0
OutPackets               :                 0
OutOctets                :                 0
OutUcastPkts             :                 0
OutMcastPkts             :                 0
OutBcastPkts             :                 0
InJumbo                  :                 0
InPause                  :                 0
Frames                   :                 0
OutJumbo                 :                 0
OutPause                 :                 0
InDiscards               :                 0
OutDiscards              :                 0
InErrors                 :                 0
OutErrors                :                 0
CRC                      :                 0
Giants                   :                 0
Jabbers                  :                 0
Fragments                :                 0
Runts                    :                 0
DropEvents               :                 0
Alignments               :                 0
Symbols                  :                 0
Ignoreds                 :                 0
Collisions               :                 0
ExcessiveCollisions      :                 0
Late Collisions          :                 0
Deferreds                :                 0
Buffers purged           :                 0
InPkts64Octets           :                 0
InPkts65to127Octets      :                 0
InPkts128to255Octets     :                 0
InPkts256to511Octets     :                 0
InPkts512to1023Octets    :                 0
InPkts1024to1518Octets   :                 0
OutPkts64Octets          :                 0
OutPkts65to127Octets     :                 0
OutPkts128to255Octets    :                 0
OutPkts256to511Octets    :                 0
OutPkts512to1023Octets   :                 0
OutPkts1024to1518Octets  :                 0
Queue0lostPkts           :                 0
Queue1lostPkts           :                 0
Queue2lostPkts           :                 0
Queue3lostPkts           :                 0
Queue4lostPkts           :                 0
Queue5lostPkts           :                 0
Queue6lostPkts           :                 0
Queue7lostPkts           :                 0
Table 1 Description of the display counters interface command output

Item

Description

GigabitEthernet0/0/1

The interface type and number.

InPackets

Total number of packets received by the interface.

InOctets

Total number of bytes in packets received by the interface.

InUcastPkts

Number of unicast packets received by the interface.

InMcastPkts

Number of multicast packets received by the interface.

InBcastPkts

Number of broadcast packets received by the interface.

OutPackets

Total number of packets sent by the interface.

OutOctets

Total number of bytes in packets sent by the interface.

OutUcastPkts

Number of unicast packets sent by the interface.

OutMcastPkts

Number of multicast packets sent by the interface.

OutBcastPkts

Number of broadcast packets sent by the interface.

InJumbo

Number of Ethernet frames with length ranging from 1518 bytes to the maximum jumbo frame size and correct FCS values received by the interface, or number of VLAN frames with length ranging from 1522 bytes to the maximum jumbo frame size and correct FCS values received or sent by the interface.

InPause

Number of pause frames received by the interface.

Frames

Number of packets in which the 802.3 length field does not match the actual length received by the interface.

OutJumbo

Number of Ethernet frames with length ranging from 1518 bytes to the maximum jumbo frame size and correct FCS values sent by the interface, or number of VLAN frames with length ranging from 1522 bytes to the maximum jumbo frame size and correct FCS values received or sent by the interface.

OutPause

Number of pause frames sent by the interface.

InDiscards

Number of incoming packets discarded by the interface. The number is detected during physical layer detection.

OutDiscards

Number of outgoing packets discarded by the interface. The number is detected during physical layer detection.

InErrors

Number of incoming error packets on the interface. The number is detected during physical layer detection.

OutErrors

Number of outgoing error packets on the interface. The number is detected during physical layer detection.

CRC

Number of packets with length ranging from 64 bytes to 1518 bytes and incorrect FCS values.

For the S5710X-LI, S5720-HI, S5720I-SI, S5720S-SI, S5720-SI, S5735-S, S5735S-S, S5735-S-I, S5730-HI, S5730S-EI, S5730-SI, S5731-H, S5731-S, S5731S-H, S5731S-S, S5732-H, S6720-HI, S6720S-SI, S6720-SI, S6730-H, S6730S-H, S6730-S, and S6730S-S, the value of this field includes the number of received packets longer than the maximum jumbo frame length and with incorrect FCS values.

For switches excluding the S5720-EI, the value of this field contains the number of received packets with length ranging from 1518 bytes to the jumbo frame size configured on the interface and incorrect FCS values.

For the S5720-EI whose interfaces are in half duplex mode, the value of this field includes the number of received packets longer than 1518 bytes.

Giants

Number of received packets with length exceeding the maximum jumbo frame size.

  • On a 10000M interface, the number of bytes for Giants packets is calculated according to the actual packet length.
  • On a 1000M interface, the number of bytes for Giants packets is calculated according to the maximum jumbo frame size.

To set the maximum jumbo frame size, run the jumboframe_enable command.

Jabbers

Number of received packets with length ranging from 1518 bytes to the maximum jumbo frame size and incorrect FCS values on the S2720-EI, S5720-EI, S5720I-SI, S5720S-SI, S5720-SI, S5735-S, S5735S-S, S5735-S-I, S5730S-EI, S5730-SI, S6720-EI, S6720S-EI, S6720S-SI, and S6720-SI do not have the Jabbers field. On the other product models, this field indicates the number of received packets with length exceeding the maximum jumbo frame size and incorrect FCS values.

Fragments

Number of received fragmented packets. A fragmented packet is a packet shorter than 64 bytes and with incorrect CRC values.

For the S5720-HI, S5730-HI, S5731-H, S5731-S, S5731S-H, S5731S-S, S5732-H, S6720-HI, S6730-H, S6730S-H, S6730-S, and S6730S-S, the value of this field contains the number of undersized frames with the correct CRC values received is displayed.

On the S2720-EI, S5720I-SI, S5720S-SI, S5720-SI, S5735-S, S5735S-S, S5735-S-I, S5730S-EI, S5730-SI, S6720-EI, S6720S-EI, S6720S-SI, and S6720-SI, the command output does not contain the Fragments field to display statistics about received fragmented packets.

Runts

Number of undersized frames with correct CRC values received by the interface.

For the S5720I-SI, S5720S-SI, S5720-SI, S5735-S, S5735S-S, S5735-S-I, S5730S-EI, S5730-SI, S6720-EI, S6720S-EI, S6720S-SI, and S6720-SI, the value of this field includes the number of received fragmented packets shorter than 64 bytes and with incorrect CRC values.

DropEvents

Number of received packets that are discarded due to GBP full or back pressure.

Alignments

Number of received frames with alignment errors.

Symbols

Number of received frames with coding errors.

Ignoreds

Number of received MAC control frames whose OpCode is not PAUSE.

Collisions

Number of packets with 1 to 15 collisions during packet forwarding.
NOTE:

If the command output contains only this field and the ExcessiveCollisions field is not displayed, the field also includes the number of frames that are canceled due to consecutive 16 collisions.

ExcessiveCollisions

Number of packets with 16 collisions and fail to be sent.

Late Collisions

Number of packets with conflict and delayed.

Deferreds

Number of delayed packets without conflict.

Buffers Purged

Number of packets aged in the cache.

InOutPkts64Octets

Number of packets shorter than 64 bytes received and sent by the interface.

InOutPkts65to127Octets

Number of packets with length ranging from 65 bytes to 127 bytes received and sent by the interface.

InOutPkts128to255Octets

Number of packets with length ranging from 128 bytes to 255 bytes received and sent by the interface.

InOutPkts256to511Octets

Number of packets with length ranging from 256 bytes to 511 bytes received and sent by the interface.

InOutPkts512to1023Octets

Number of packets with length ranging from 512 bytes to 1023 bytes received and sent by the interface.

InOutPkts1024toMaxOctets

Number of packets with length exceeding 1024 bytes received and sent by the interface.

InPkts64Octets

Number of packets shorter than 64 bytes received by the interface.

InPkts65to127Octets

Number of packets with length ranging from 65 bytes to 127 bytes received by the interface.

InPkts128to255Octets

Number of packets with length ranging from 128 bytes to 255 bytes received by the interface.

InPkts256to511Octets

Number of packets with length ranging from 256 bytes to 511 bytes received by the interface.

InPkts512to1023Octets

Number of packets with length ranging from 512 bytes to 1023 bytes received by the interface.

InPkts1024to1518Octets

Number of packets with length ranging from 1024 bytes to 1518 bytes received by the interface.

OutPkts64Octets

Number of packets shorter than 64 bytes sent by the interface.

The value NA indicates that the interface does not support this field.

OutPkts65to127Octets

Number of packets with length ranging from 65 bytes to 127 bytes sent by the interface.

The value NA indicates that the interface does not support this field.

OutPkts128to255Octets

Number of packets with length ranging from 128 bytes to 255 bytes sent by the interface.

The value NA indicates that the interface does not support this field.

OutPkts256to511Octets

Number of packets with length ranging from 256 bytes to 511 bytes sent by the interface.

The value NA indicates that the interface does not support this field.

OutPkts512to1023Octets

Number of packets with length ranging from 512 bytes to 1023 bytes sent by the interface.

The value NA indicates that the interface does not support this field.

OutPkts1024to1518Octets

Number of packets with length ranging from 1024 bytes to 1518 bytes sent by the interface.

The value NA indicates that the interface does not support this field.

Queue0lostPkts

Number of packets discarded in queue 0.

Queue1lostPkts

Number of packets discarded in queue 1.

Queue2lostPkts

Number of packets discarded in queue 2.

Queue3lostPkts

Number of packets discarded in queue 3.

Queue4lostPkts

Number of packets discarded in queue 4.

Queue5lostPkts

Number of packets discarded in queue 5.

Queue6lostPkts

Number of packets discarded in queue 6.

Queue7lostPkts

Number of packets discarded in queue 7.

The number (InPkts) of packets received by the interface and the number (OutPkts) of packets sent by the interface can be displayed separately only on the S5720-EI, S5720-HI, S5730-HI, S5731-H, S5731-S, S5731S-H, S5731S-S, S5732-H, S6720-EI, S6720-HI, S6720S-EI, S6730-H, S6730S-H, S6730-S, and S6730S-S. The S2720-EI, S5720I-SI, S5720-LI, S5735-L, S5735S-L, S5735S-L-M, S5720S-LI, S5720S-SI, S5720-SI, S5735-S, S5735S-S, S5735-S-I, S5730S-EI, S5730-SI, S6720-LI, S6720S-LI, S6720S-SI, and S6720-SI display only the total number (InOutPkts) of packets received and sent by the interface.

Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >