display counters

Syntax

display counters { inbound | outbound } interface [ interface-type ] [ | { begin | exclude | include } regular-expression ]

View

Any view

Default level

1: Monitor level

Parameters

inbound: Displays inbound traffic statistics.

outbound: Displays outbound traffic statistics.

interface-type: Specifies an interface type.

|: 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 counters to display traffic statistics for interfaces.

Examples

# Display inbound traffic statistics for all Ethernet interfaces.

<Sysname> display counters inbound interface ethernet
Interface                Total(pkts)    Broadcast(pkts)    Multicast(pkts) Err(pkts)
Eth1/0/1                        100                100                  0         0
Eth1/0/2                          0                  0                  0         0
Eth1/0/3                   Overflow           Overflow           Overflow  Overflow
Eth1/0/4                          0                  0                  0         0

 Overflow: more than 14 decimal 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 decimal digits(7 digits for column "Err").

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

  • The data length of an error statistic is greater than 7 decimal digits.

  • The data length of a non-error statistic is greater than 14 decimal digits.

--: not supported.

The statistical item is not supported.