display counters

Use display counters to display interface traffic statistics.

Syntax

display counters { inbound | outbound } interface [ interface-type [ interface-number ] ]

Views

Any view

Predefined user roles

network-admin

network-operator

Parameters

inbound: Displays inbound traffic statistics.

outbound: Displays outbound traffic statistics.

interface-type: Specifies an interface type.

interface-number: Specifies an interface number.

Usage guidelines

This command displays traffic statistics within a statistics polling interval specified by the flow-interval command.

To clear the Ethernet interface traffic statistics, use the reset counters interface command. For more information, see "reset counters interface."

If you do not specify an interface type, this command displays traffic statistics for all interfaces that have traffic counters.

If you specify an interface type but do not specify an interface number, this command displays traffic statistics for all interfaces of the specified type.

If you specify an interface type and an interface number, this command displays traffic statistics of the specified interface.

Examples

# Display inbound traffic statistics for all Ten-GigabitEthernet interfaces.

<Sysname> display counters inbound interface ten-gigabitethernet
Interface                Total (pkts)    Broadcast (pkts)    Multicast (pkts)  Err (pkts)
XGE1/0/1                        100                100                  0              0
XGE1/0/2                          0                  0                  0              0
XGE1/0/3                   Overflow           Overflow           Overflow       Overflow
XGE1/0/4                          0                  0                  0              0

 Overflow: More than 14 digits (7 digits for column "Err").
       --: Not supported.

Table 1: Command output

Field

Description

Interface

Abbreviated interface name.

Total (pkts)

Total number of packets received or sent through the interface.

Broadcast (pkts)

Total number of broadcast packets received or sent through the interface.

Multicast (pkts)

Total number of multicast packets received or sent through the interface.

Err (pkts)

Total number of error packets received or sent through the interface.

Overflow: More than 14 digits (7 digits for column "Err")

The command displays Overflow if any of the following cases applies:

  • The data length of an Err field value is greater than 7 decimal digits.

  • The data length of a non-Err field value is greater than 14 decimal digits.

--: Not supported

The statistical item is not supported.

Related commands

flow-interval

reset counters interface