< Home

display ntp-service status

Function

The display ntp-service status command displays the status of the NTP service.

Format

display ntp-service status

Parameters

None

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

Usage Scenario

To monitor or locate faults on the NTP service, run the display ntp-service status command to obtain status information about the NTP service, such as the synchronization status of the local clock and the stratum of the clock.

Example

# Display the status of the NTP service.

<sysname> display ntp-service status
 clock status: synchronized
 clock stratum: 2
 reference clock ID: LOCAL (0)
 nominal frequency: 60.0002 Hz
 actual frequency: 60.0002 Hz
 clock precision: 2^18
 clock offset: 0.0000 ms
 root delay: 0.00 ms
 root dispersion: 0.00 ms
 peer dispersion: 10.00 ms
 reference time: 15:51:36.259 UTC Apr 25 2005 (C6179088.426490A3)
 synchronization state: spike (clock will be set in 1010 secs)
Table 1 Description of the display ntp-service status command output

Item

Description

clock status

Clock status:
  • synchronized: indicates that the local clock has been synchronized with an NTP server or the reference clock.

  • unsynchronized: indicates that the local clock has not been synchronized with any NTP server.

clock stratum

NTP clock stratum of the local clock. The value ranges from 1 to 15. A lower the clock stratum indicates higher clock precision. When the client gets synchronized to a session, it is stratum becomes session stratum + 1.

reference clock ID

ID of the reference clock:
  • When the local clock has been synchronized with the remote NTP server, ID of the reference clock shows IP address of the remote server.

  • When the local clock has been synchronized with the reference clock, it shows ID of the reference clock.

  • If the local clock is the reference clock, it shows "Local".

nominal frequency

Nominal frequency of the local clock, in Hz.

actual frequency

Actual frequency of the local clock, in Hz.

clock precision

Precision of the local clock.

clock offset

Offset between the local clock and the NTP server, in ms.

root delay

Delay between the local clock and the master reference clock, in ms.

root dispersion

Dispersion between the local clock and the master reference clock, in ms.

peer dispersion

Dispersion between the local clock and the peer clock, in ms.

reference time

Reference timestamp.

synchronization state

Synchronization status of the local clock:
  • clock not set: Indicates the clock is not updated.
  • frequency set by configuration: Indicates the clock frequency is set by NTP configuration.
  • clock set: Indicates the clock is set.
  • clock set but frequency not determined: Indicates the clock is set but the frequency is not determined.
  • clock synchronized: Indicates that the clock is synchronized.
  • spike (clock will be set in XXX secs): Indicates a time difference of more than 128 milliseconds is detected between NTP server and client clock. The clock change will take effect in XXX seconds.
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >