The reset oam-mac statistics command clears the statistics about the number of MAC diagnostic packets.
Parameter | Description | Value |
---|---|---|
populate | Indicates the statistics about the number of populate packets. | - |
purge | Indicates the statistics about the number of purge packets. | - |
purge-register | Indicates the statistics about the number of purge + register packets. | - |
all | Indicates the statistics about the number of MAC diagnostic packets. | - |
Using the reset oam-mac statistics command, you can clear the statistics about the number of MAC diagnostic packets.
The statistics about MAC diagnostic packets cannot be restored once they are cleared. Confirm the action before you run the reset oam-mac statistics command.
# Display the statistics about the number of all MAC diagnostic packets that are received by the device.
<HUAWEI> display oam-mac statistics all
Received populate packet: 3
Received purge packet: 1
Received purge register packet: 2
# Clear the statistics about the number of MAC diagnostic packets that are received by the device.
<HUAWEI> reset oam-mac statistics all
# Display the statistics about the number of MAC diagnostic packets that are received by the device. It is found that all the statistics are cleared.
<HUAWEI> display oam-mac statistics all
Received populate packet: 0
Received purge packet: 0
Received purge register packet: 0