< Home

reset lacp statistics eth-trunk

Function

The reset lacp statistics eth-trunk command clears statistics about LACPDUs on all Eth-Trunks in LACP mode, a specified Eth-Trunk in LACP mode, or a specified member interface.

Format

reset lacp statistics eth-trunk [ trunk-id [ interface interface-type interface-number ] ]

Parameters

Parameter Description Value
trunk-id Specifies the ID of an Eth-Trunk.
The value is an integer. The value varies according to device model:
  • S2720-EI, S5720I-SI, S5720-LI, S5720S-LI, S5720S-SI, and S5720-SI: 0-119
  • S5720-EI, S5720-HI, S5730-HI, S5731-H, S5731-S, S5731S-H, S5731S-S, S5732-H, S5735-L, S5735S-L, S5735S-L-M, S5735-S, S5735-S-I, S5735S-S, S6720-EI, S6720-HI, S6720S-EI, S6730-H, S6730S-H, S6730-S, and S6730S-S: 0-127
  • S5730-SI, S5730S-EI, S6720-SI, S6720S-SI, S6720-LI, S6720S-LI: 0-249

On the S5731-H, S5731-S, S5731S-H, S5731S-S, S5732-H, S6730-H, S6730S-H, S6730-S, S6730S-S, S6720-EI, and S6720S-EI, you can run the assign trunk command to set the value, and run the display trunk configuration command to check the configuration.

interface interface-type interface-number Specifies an Eth-Trunk member interface.

interface-type: specifies the type of the interface.

interface-number: specifies the number of the interface.

-

Views

User view

Default Level

3: Management level

Usage Guidelines

Usage Scenario

Before collecting statistics about LACPDUs on a specific interface within a given period of time, you need to run the reset lacp statistics eth-trunk command to clear the existing statistics about LACPDUs on the interface.

When using the reset lacp statistics eth-trunk command, pay attention to the following points:

  • If no parameter is specified, statistics about LACPDUs on all Eth-Trunks in LACP mode are cleared.

  • If only trunk-id is specified, statistics about LACPDUs on the specified Eth-Trunk in LACP mode are cleared.

  • If both trunk-id and interface interface-type interface-number are specified, statistics about LACPDUs on the specified member interface of the specified Eth-Trunk in LACP mode are cleared.

Prerequisites

  • The Eth-Trunk has been created and configured to work in LACP mode.

  • Member interfaces have been added to the Eth-Trunk.

Precautions

The reset lacp statistics eth-trunk command clears statistics about sent and received LACPDUs on all Eth-Trunks in LACP mode, a specified Eth-Trunk in LACP mode, or a specified member interface. The cleared statistics cannot be restored. Exercise caution when you run this command.

Example

# Clear statistics about LACPDUs on all Eth-Trunks in LACP mode.

<HUAWEI> reset lacp statistics eth-trunk

# Clear the statistics about LACPDUs on the member interface GigabitEthernet0/0/1 of Eth-Trunk 1 in LACP mode.

<HUAWEI> reset lacp statistics eth-trunk 1 interface gigabitethernet 0/0/1
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >