ptp utc-offset

Function

The ptp utc-offset command sets the offset between the Coordinated Universal Time (UTC) and International Atomic Time (TAI) on the grandmaster.

The undo ptp utc-offset command restores the default setting.

The default offset is 35s.

By default, the offset is 35s.

Format

ptp utc-offset utc-offset

undo ptp utc-offset

Parameters

Parameter Description Value
utc-offset

Specifies the accumulated offset between the UTC time and International Atomic Time (TAI) time.

The value is an integer ranging from 0 to 255, in seconds.

Views

System view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
clksync write

Usage Guidelines

Usage Scenario

The UTC time is Greenwich Mean Time (GMT) that is displayed on a 1588v2 device, There is a fixed offset between the UTC time and TAI time. The International Earth Rotation Service (IERS) advertises the offset.

When a 1588v2 device tracks a BITS, the device uses the offset provided by the BITS by default. If the BITS clock signals are lost, the 1588v2 uses the previous offset, which may change. An offset change causes inaccurate time signals on the 1588v2 network.

To manually set the offset between the UTC time and TAI time, run the ptp utc-offset command only on the grandmaster.

Prerequisites

1588v2 has been enabled on the device using the ptp enable command.

Configuration Impact

If the ptp utc-offset command is run twice, the later command overrides the previous one.

In VS mode, this command is supported only by the admin VS.

Example

# Set the offset to 33s.
<HUAWEI> system-view
[~HUAWEI] ptp enable
[*HUAWEI] ptp utc-offset 33
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >