The statistic enable command enables the traffic statistics collection function on a Virtual Ethernet (VE) interface.
The undo statistic enable command disables the traffic statistics collection function on a VE interface.
By default, the traffic statistics collection function is disabled on a VE interface.
statistic enable { both | inbound | outbound }
undo statistic enable { both | inbound | outbound }
Parameter |
Description |
Value |
---|---|---|
both | Enables the traffic statistics collection function for incoming and outgoing traffic. |
- |
inbound | Enables the traffic statistics collection function for incoming traffic. |
- |
outbound | Enables the traffic statistics collection function for outgoing traffic. |
- |
Usage Scenario
You can enable the traffic statistics collection function on the VE interfaces if you want to check the network status or troubleshoot network faults.
Prerequisites
The VE interfaces have been bound to VE groups by using the ve-group command. Otherwise, the statistic enable command does not take effect.
Precautions
After you run the undo statistic enable command on a VE interface, the switch stops collecting traffic statistics on the VE interface and the collected traffic statistics will be deleted.
The switch uses ACL resources when collecting traffic statistics. If the traffic statistics collection function is enabled on too many VE interfaces, other services may fail to obtain ACL resources.
The switch can only collect statistics of unicast, multicast, and broadcast packets on VE interfaces.
On the VE interface enabled with the traffic statistics collection function, the packets such as ping packets sent from the switch cannot be counted.