< Home

reset ptp statistics

Function

The reset ptp statistics command clears statistics on PTP packets on the interface of a device.

Format

reset ptp statistics { all [ slot slot-id ] | interface interface-type interface-number }

Parameters

Parameter

Description

Value

all

Clears statistics on the received PTP packets of all interfaces.

-

interface interface-type interface-number

Clears statistics on the received PTP packets of a specified interface.
  • interface-type specifies the type of an interface.

  • interface-number specifies the number of an interface.

-

slot slot-id Clears statistics on the received PTP packets of all interface with a specified slot ID. The value range depends on the device configuration.

Views

User view

Default Level

2: Configuration level

Usage Guidelines

You can use the reset ptp statistics command to clear the statistics on the received PTP packets of a specified interface or all interfaces by restoring the counter.

Example

# Clear the statistics on PTP packets on XGigabitEthernet0/0/1.

<HUAWEI> reset ptp statistics interface xgigabitethernet 0/0/1
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic