The display counters rate command displays the incoming or outgoing traffic rate of an interface.
display counters rate [ inbound | outbound ] [ interface interface-type [ interface-number ] ] [ nonzero ]
Parameter | Description | Value |
---|---|---|
inbound |
Displays the incoming traffic rate of an interface. |
- |
outbound |
Displays the outgoing traffic rate of an interface. |
- |
interface interface-type [ interface-number ] |
Displays the traffic rate of a specified interface.
If the interface number is not specified, the traffic rates of all the interfaces of the specified type are displayed. |
- |
nonzero |
Displays the traffic rate of an interface. If the numbers of bytes, Octets packets, unicast packets, multicast packets, and broadcast packets on an interface are all 0s, the traffic rate of this interface is not displayed. |
- |
Usage Scenario
You can run the display counters rate command to view the incoming or outgoing traffic rate based on the interface type for fault location.
Precautions
After the system is started, in the case of the first query or when the interval with the last query is longer than 600s, the system re-initiates rate statistics collection. In this case, you need to wait until the rate statistics collection result is displayed.
The minimum statistics collection interval is 5 seconds. If the interval is less than 5 seconds, the data collected last time is displayed.
# Display the traffic rate of GE0/0/1.
<HUAWEI> display counters rate interface gigabitethernet 0/0/1 Inbound Interface Octets(bytes/s) Unicast(pkts/s) Multicast(pkts/s) Broadcast(pkts/s) GE0/0/1 18 0 0 0 Outbound Interface Octets(bytes/s) Unicast(pkts/s) Multicast(pkts/s) Broadcast(pkts/s) GE0/0/1 61 0 0 0
<HUAWEI> display counters rate nonzero Info: This operation may take a few seconds. Please wait for a moment... Inbound Interface Octets(bytes/s) Unicast(pkts/s) Multicast(pkts/s) Broadcast(pkts/s) GE0/0/1 82 1 0 0 Outbound Interface Octets(bytes/s) Unicast(pkts/s) Multicast(pkts/s) Broadcast(pkts/s) GE0/0/1 224 2 0 0
Item |
Description |
---|---|
Inbound |
Incoming traffic rate. |
Outbound |
Outgoing traffic rate. |
Interface |
Interface name. |
Octets(bytes/s) |
Total incoming or outgoing traffic rate, in bytes/s. |
Unicast(pkts/s) |
Incoming or outgoing rate of unicast packets, in pkts/s. |
Multicast(pkts/s) |
Incoming or outgoing rate of multicast packets, in pkts/s. |
Broadcast(pkts/s) |
Incoming or outgoing rate of broadcast packets, in pkts/s. |