< Home

clock source

Function

The clock source command sets the clock source selection mode to manual or forcible and specifies the master clock source.

By default, the automatic clock source selection mode is used.

Format

clock { manual | force } source { ptp slot slot-id | interface interface-type interface-number }

Parameters

Parameter Description Value
manual Indicates that the manual clock source selection mode is used. -
force Indicates that the forcible clock source selection mode is used. -
ptp Indicates that an PTP clock source is used as the clock source. -
interface interface-type interface-number Specifies the input interface of the clock source.
  • interface-type: specifies the interface type.

  • interface-number: specifies the interface number.

-
slot slot-id Specifies the slot ID of the master clock source. The value range depends on the device configuration.

Views

System view

Default Level

2: Configuration level

Usage Guidelines

To configure the clock source selection mode as manual or forcible, run the clock source command. In manual clock source selection mode, a clock source can be switched to a clock source with a higher SSM quality level, regardless of the clock source priority. In forcible clock source selection mode, a clock can be selected regardless of the SSM quality level and priority.

Precautions
In manual clock source selection mode, a clock source takes effect only when the following conditions are met:
  • The synchronous Ethernet function is enabled.
  • The SSM quality level is the highest and not DNU.
  • The status of the selected clock source is not abnormal or initial.
In forcible clock source selection mode, a clock source takes effect only when the following conditions are met:
  • The synchronous Ethernet function is enabled.

If a clock source in manual clock source selection mode does not meet conditions, the clock source automatically switches to the automatic clock source selection mode. If a clock source in forcible clock source selection mode does not meet conditions, for example, the clock source is abnormal, the clock source automatically switches to the hold mode. After the clock source is restored, it is automatically selected again.

A manually selected clock source is used temporarily and no configuration file is generated. To permanently use a clock source, use the forcible clock source selection mode.

The latest configuration of manual clock source selection overrides the previous configuration of manual clock source selection but not forcible clock source selection. The latest configuration of forcible clock source selection overrides the previous configuration of manual or forcible clock source selection.

Example

# Set the clock source selection mode to manual and specify the input interface of the master clock source as XGE0/0/1.
<HUAWEI> system-view
[HUAWEI] clock manual source interface xgigabitethernet 0/0/1
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >