display counters [ inbound | outbound ] [ interface interface-type [ interface-number ] ] [ nonzero ]
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.
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. |
- |
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.
# 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
<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
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. |