The display counters protocol command displays IPv4 and IPv6 packet statistics on an interface.
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 this command.
Parameter |
Description |
Value |
---|---|---|
interface interface-type interface-number | Specifies the interface type and number. |
- |
protocol | Displays IPv4 and IPv6 packet statistics. |
- |
rate | Displays packet rate information. |
- |
After enabling IPv4 or IPv6 packet statistics collection on an interface, you can run this command to view packet statistics, facilitating fault location and troubleshooting.
# Display IPv4 and IPv6 packet statistics on interfaces.
<HUAWEI> display counters protocol -: Statistic not enable Inbound Interface IPv4(bytes) IPv4(pkts) IPv6(bytes) IPv6(pkts) GE0/0/20 0 0 0 0 GE0/0/21 - - 0 0 Outbound Interface IPv4(bytes) IPv4(pkts) IPv6(bytes) IPv6(pkts) GE0/0/20 0 0 0 0 GE0/0/21 - - 0 0
# Display IPv4 and IPv6 packet rate information on interfaces.
<HUAWEI> display counters protocol rate -: Statistic not enable Inbound Interface IPv4(bytes/s) IPv4(pkts/s) IPv6(bytes/s) IPv6(pkts/s) GE0/0/20 0 0 0 0 GE0/0/21 - - 0 0 Outbound Interface IPv4(bytes/s) IPv4(pkts/s) IPv6(bytes/s) IPv6(pkts/s) GE0/0/20 0 0 0 0 GE0/0/21 - - 0 0
Item |
Description |
---|---|
-: Statistic not enable |
If a field of an interface displays -, traffic statistics collection about the corresponding type of packets is disabled. |
Inbound |
Packet statistics in the inbound direction of an interface. |
Outbound |
Packet statistics in the outbound direction of an interface. |
Interface |
Interface name. |
IPv4(bytes) |
Number of bytes in IPv4 packets. |
IPv4(pkts) |
Number of IPv4 packets. |
IPv6(bytes) |
Number of bytes in IPv6 packets. |
IPv6(pkts) |
Number of IPv6 packets. |
IPv4(bytes/s) |
Rate of bytes in IPv4 packets. |
IPv4(pkts/s) |
Rate of IPv4 packets. |
IPv6(bytes/s) |
Rate of bytes in IPv6 packets. |
IPv6(pkts/s) |
Rate of IPv6 packets. |