reset lacp statistics eth-trunk
Function
The reset lacp statistics eth-trunk command clears the statistics about LACP packets on all Eth-Trunk interfaces in LACP mode, on a specified Eth-Trunk interface in LACP mode, or on a specified member interface.
Parameters
Parameter | Description | Value |
---|---|---|
trunk-id | Specifies the ID of an Eth-Trunk interface. | The value is an integer and varies
according to device model:
|
interface interface-type interface-number | Specifies the member interface of an Eth-Trunk interface. interface-type: specifies the type of the member interface. interface-number: specifies the number of the member interface. |
- |
Usage Guidelines
Usage Scenario
Before collecting statistics about LACP packets on a specific interface within a period, you need to run the reset lacp statistics eth-trunk command to clear the existing statistics about LACP packets on the interface.
When using the reset lacp statistics eth-trunk command, note that:
If no optional parameter is specified, statistics about LACP packets on all Eth-Trunk interfaces in LACP mode are cleared.
If trunk-id is specified only, statistics about LACP packets on the specified Eth-Trunk interface in LACP mode are cleared.
If both trunk-id and interface interface-type interface-number are specified, statistics about LACP packets on the specified member interface of the specified Eth-Trunk interface in LACP mode are cleared.
Prerequisites
Before clearing the statistics about LACP packets on a specified Eth-Trunk interface, ensure that the Eth-Trunk interface exists and works in LACP mode.
Before clearing the statistics about LACP packets on a specified member interface of an Eth-Trunk interface, ensure that the Eth-Trunk interface and its member interface exist and the Eth-Trunk interface works in LACP mode.
Precautions
The reset lacp statistics eth-trunk command clears the statistics about sent and received LACP packets on all Eth-Trunk interfaces in LACP mode, on a specified Eth-Trunk interface in LACP mode, or on a specified member interface are cleared and cannot be restored. Therefore, confirm the action before you use the command.
Example
# Clear the statistics about LACP packets on all Eth-Trunk interfaces in LACP mode.
<AC6605> reset lacp statistics eth-trunk
# Clear the statistics about LACP packets on the member interface GigabitEthernet0/0/1 of Eth-Trunk 1 in LACP mode.
<AC6605> reset lacp statistics eth-trunk 1 interface gigabitethernet 0/0/1