< Home

display counters rate

Function

The display counters rate command displays the incoming or outgoing traffic rate of an interface.

Format

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

Parameters

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.

  • interface-type specifies the interface type.
  • interface-number specifies the interface number.

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.

-

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

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.

When a device has a large number of interfaces, you are advertised to specify the interface type in the display counters rate 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 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 
# Display the traffic rate of interfaces with at least one of the numbers of bytes, unicast packets, multicast packets, and broadcast packets not 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
Table 1 Description of the display counters rate command output

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.

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