ntp-service sync-interval

Function

The ntp-service sync-interval command sets the time interval at which the client clock is updated.

The undo ntp-service sync-interval command deletes the interval period.

By default, the interval for synchronizing the client clock is not configured.

Format

ntp-service sync-interval interval

undo ntp-service sync-interval

Parameters

Parameter Description Value
interval

Specifies the time interval for updating a clock.

The value is an integer ranging from 180 to 600 seconds.

Views

System view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
ntp write

Usage Guidelines

Usage Scenario

To set the interval at which the client clock is updated, run this command.

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

Precautions

If this command is the first NTP configuration command, the system automatically adds the ntp-service server disable/ntp-service ipv6 server disable command in the configuration file to disable the NTP service. To enable the NTP service, run the undo ntp-service server disable/undo ntp-service ipv6 server disable command. If this command is the last NTP configuration command to be deleted, the system automatically deletes the ntp-service server disable/ntp-service ipv6 server disable command from the configuration file.

Example

# Set the update interval to 180 seconds.
<HUAWEI> system-view
[~HUAWEI] ntp-service sync-interval 180
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >