smart-clock leap current-leap

Function

The smart-clock leap current-leap command configures the current leap second value of the multi-mode smart clock module as well as the direction and date of the next leap second adjustment.

The undo smart-clock leap current-leap command restores the default configuration.

By default, the current leap second value of the smart clock module is 0, the date for the next leap second adjustment is 0000-00-00, and the direction is none, which indicates that the date for a leap-second event is not configured.

This command is supported only on the NetEngine 8000 F1A.

Format

smart-clock leap current-leap current-leap-value [ { leap59 | leap61 } date date ]

undo smart-clock leap current-leap [ current-leap-value [ { leap59 | leap61 } date date ] ]

Parameters

Parameter Description Value
leap59

Indicates that the last minute in a day at the UTC time is a 59-second minute.

-

leap61

Indicates that the last minute in a day at the UTC time is a 61-second minute.

-

date date

Specifies the date for UTC time adjustment.

The value is expressed in the format of YYYY/MM/DD. The value is a date ranging from 2000/01/01 to 2099/12/31.

current-leap current-leap-value

Specifies the current leap second value.

The value is an integer that ranges from 0 to 255. The default value is 0.

Views

GE optical interface view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
clksync write

Usage Guidelines

Usage Scenario

When the current mode of the multi-mode smart clock module is GLONASS or the current mode is GPS+GLONASS but the GPS experiences an abnormality in receiving satellite signals and the UTC time can be obtained only in GLONASS mode, the leap second information and GPS time cannot be obtained. To configure the current leap second value of the multi-mode smart clock module as well as the direction and date of the next leap second adjustment so that the UTC time can be obtained in GLONASS mode, run this command.

In GPS, Beidou, and GPS+Beidou modes, the leap second can be obtained within 12.5 minutes using satellite almanac. The GPS time can be directly obtained in the preceding three modes and the smart clock module can work properly without obtaining leap second information. In GLONASS mode, or in GPS+GLONASS mode but the GPS fails to search for satellites, the leap second parameter needs to be manually configured. Otherwise, the time is invalid.

In the first positioning in GPS+GLONASS mode, the time is considered accurate only when GPS participates in positioning.

Precautions

This command is supported only on the admin VS.

This command does not apply to the single-mode smart clock module.

The frequency for updating the next leap second adjustment information is 1 to 2 years and the leap second information is released around half a year before leap second adjustment. Therefore, if the next leap second adjustment information is unknown, the current leap second is configured as a valid value and the next leap second adjustment information is cleared.

Example

# Configure the current leap second value for the multi-mode smart clock module as 18, the date for the next leap second adjustment as 2017-06-30, and the adjustment direction as forward adjustment.
<HUAWEI> system-view
[~HUAWEI] interface GigabitEthernet 0/1/0
[~HUAWEI-GigabitEthernet0/1/0] smart-clock leap current-leap 18 leap59 date 2017/06/30
# Configure the current leap second value for the multi-mode smart clock module as 18 and allow the module to use default values of the date and direction of the next leap second adjustment.
<HUAWEI> system-view
[~HUAWEI] interface GigabitEthernet 0/1/0
[~HUAWEI-GigabitEthernet0/1/0] smart-clock leap current-leap 18
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >