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.
Parameter | Description | Value |
---|---|---|
trunk-id | Specifies the ID of an Eth-Trunk. | The value is an integer. The value varies according to device model:
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. |
- |
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.