< Home

reset oam-mac statistics

Function

The reset oam-mac statistics command clears the statistics about the number of MAC diagnostic packets.

Format

reset oam-mac statistics { populate | purge | purge-register | all }

Parameters

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. -

Views

All views

Default Level

3: Management level

Usage Guidelines

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.

Example

# 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
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >