clock source

Function

The clock source command configures the clock source selection mode as manual or forcible clock source selection and specifies a clock source to be traced.

The default clock source selection mode is automatic clock source selection.

Format

clock { manual | force } 2msync-1 source interface { interface-name | interface-type interface-number }

clock { manual | force } source bits0

clock { manual | force } source ptp

clock { manual | force } source interface { interface-name | interface-type interface-number }

Parameters

Parameter Description Value
manual

Set manual work mode.

-

force

Force to select source.

-

bits0

Specifies an external clock source as the master clock source.

-

2msync-1

2M sync clock1.

-

interface interface-number

Specifies an interface clock source as the master clock source.

The value is a string of 1 to 49 case-sensitive characters, spaces not supported.

interface interface-name

Specifies an interface clock source as the master clock source.

The value is a string of 1 to 49 case-sensitive characters, spaces not supported.

interface interface-type

Specifies an interface clock source as the master clock source.

The value is a string of 1 to 49 case-sensitive characters, spaces not supported.

ptp

Specifies a PTP clock source as the master clock source.

-

Views

System view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
clksync write

Usage Guidelines

Usage Scenario

You can run this command to manually or forcibly specify a clock source to be traced.

Configuration Impact

After the clock manual source command is run, this command is not saved in the configuration file. To view the configuration results, run the display clock config command. If the reference clock source fails, the clock selection mode is automatically switched to automatic clock source selection. After a device is restarted, the clock manual source command is not restored, and the default automatic clock source selection mode takes effect.

After a device is upgraded to the target version, the configured clock manual source command fails, and the default automatic clock source selection mode takes effect.

Precautions

  • You cannot manually or forcibly specify an external or PTP clock source for 2msync-1 clocks.
  • When you forcibly specify a clock source, ensure that clock synchronization has been enabled on the specified clock source. If clock synchronization has not been enabled, the clock force source command does not take effect.
  • If the status of a specified clock source is not normal or its SSM level is dnu, the system clock works in the hold state or free state.
  • If the status of a manually specified clock source is neither normal nor holdoff, or its SSM level is not the highest, the clock manual source command does not take effect.

Example

# Configure the manual clock source selection mode and specify the BITS0 interface as a clock source to be traced.
<HUAWEI> system-view
[~HUAWEI] clock bits-type bits0 2mhz
[~HUAWEI] clock manual source bits0
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >