< Home

display counters

Function

The display counters command displays traffic statistics on an interface.

Format

display counters [ inbound | outbound ] [ interface interface-type [ interface-number ] ] [ nonzero ]

Parameters

Parameter Description Value
inbound Displays incoming traffic statistics on an interface. -
outbound Displays outgoing traffic statistics on an interface. -
interface interface-type [ interface-number ] Displays traffic statistics on a specified interface.
  • interface-type specifies the interface type.
  • interface-number specifies the interface number.

If the interface number is not specified, traffic statistics on all the interfaces of the specified type are displayed.

-
nonzero

Displays statistics about interface traffic.

If the numbers of bytes, octets packets, unicast packets, multicast packets, and broadcast packets on an interface are all 0s, traffic statistics on this interface are not displayed.

-

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

Usage Scenario

You can run the display counters command to view incoming or outgoing traffic statistics based on the interface type for fault location.

Precautions

Only 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 support sub-interfaces.

When a device has a large number of interfaces, you are advertised to specify the interface type in the display counters command to view only desired information. If you do not specify those parameters, the following faults will occur:
  • The displayed information is repeatedly refreshed, causing desired information unable to be obtained.
  • The system does not respond because of long-time information traversing and searching.

Example

# Display traffic statistics on GE0/0/1.

<HUAWEI> display counters interface gigabitethernet 0/0/1
Inbound                                                                         
Interface           Octets(bytes) Unicast(pkts) Multicast(pkts) Broadcast(pkts) 
GE0/0/1              754918035105    1408179641        15018056      9668635374 
Outbound                                                                        
Interface           Octets(bytes) Unicast(pkts) Multicast(pkts) Broadcast(pkts) 
GE0/0/1              764800451602    1148151623        15086605      9957268821 
# Display traffic statistics on interfaces with at least one of the numbers of bytes, unicast packets, multicast packets, and broadcast packets not 0.
<HUAWEI> display counters nonzero
Info: This operation may take a few seconds. Please wait for a moment... 
Inbound                                                                         
Interface           Octets(bytes) Unicast(pkts) Multicast(pkts) Broadcast(pkts) 
GE0/0/1                  1467604             0            2902               0 
Outbound                                                                        
Interface           Octets(bytes) Unicast(pkts) Multicast(pkts) Broadcast(pkts) 
GE0/0/1                  2703904             0           13750               1 
Table 1 Description of the display counters command output

Item

Description

Inbound

Incoming traffic statistics on an interface.

Interface

Interface name.

Octets(bytes)

Total number of incoming or outgoing bytes.

Unicast(pkts)

Number of incoming or outgoing unicast packets.

Multicast(pkts)

Number of incoming or outgoing multicast packets.

Broadcast(pkts)

Number of incoming or outgoing broadcast packets.

Outbound

Outgoing traffic statistics on an interface.

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