< Home

ptp slaveonly

Function

The ptp slaveonly command sets the attribute of the clock source interface of the OC to slave-only.

The undo ptp slaveonly command restores the default status of the PTP interface of the OC.

By default, the clock source interface can be a master interface or a slave interface.

Format

ptp slaveonly slot slot-id

undo ptp slaveonly slot slot-id

Parameters

Parameter

Description

Value

slot slot-id Specifies the ID of the slot where the OC with the PTP interface in the slave state resides. The value range depends on the device configuration.

Views

System view

Default Level

2: Configuration level

Usage Guidelines

Usage scenario

When an OC functions as the last clock node, the OC receives clock signals from an upstream device and sends the clock signals to clients. To prevent clock signals of clients from affecting the PTP system, configure the interface status of the OC to slave-only. This configuration ensures that the OC does not synchronize the clock signals of clients.

The OC in a domain has only one PTP interface. If the interface status of the OC is set to slave-only, no interface can switch to the master.

Example

# Set the attribute of the clock source interface to slave-only on the OC.

<HUAWEI> system-view
[HUAWEI] ptp device-type oc slot 0
[HUAWEI] ptp slaveonly slot 0
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >