< Home

statistic enable (VE interface view)

Function

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.

Format

statistic enable { both | inbound | outbound }

undo statistic enable { both | inbound | outbound }

Parameters

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.

-

Views

VE interface view

Default Level

2: Configuration level

Usage Guidelines

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.

Example

# Enable the traffic statistics collection function for incoming and outgoing traffic on the VE interface.

<HUAWEI> system-view
[HUAWEI] interface virtual-ethernet 0/0/1
[HUAWEI-Virtual-Ethernet0/0/1] ve-group 1 l2-terminate
[HUAWEI-Virtual-Ethernet0/0/1] statistic enable both
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >