< Home

display ntp-service sessions

Function

The display ntp-service sessions command displays local NTP sessions.

Format

display ntp-service sessions [ verbose ]

Parameters

Parameter Description Value
verbose Displays details about NTP sessions. -

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

Usage Scenario

To monitor or locate faults on NTP sessions, run the display ntp-service sessions command to obtain status information about NTP sessions so that the fault can be located efficiently.

Precautions

  • If verbose is not specified, summary information about NTP sessions is displayed.

  • If verbose is specified, detailed information about NTP sessions is displayed.

Example

# Display the local NTP sessions.

<sysname> display ntp-service sessions
 clock source: 10.1.10.1
 clock stratum: 7
 clock status: configured, master, sane, valid
 reference clock ID: LOCAL(0)
 reach: 1
 current poll: 64
 now: 2
 offset: 0.0000 ms
 delay: 0.00 ms
 disper: 15.58 ms
 autokey flags: 0x0
Table 1 Description of the display ntp-service sessions command output

Item

Description

clock source

IP address of the reference clock.

clock stratum

Stratum of the reference clock. The value ranges from 1 to 15. A lower stratum level indicates a higher priority. A higher priority indicates higher clock precision.

clock status

Status of the reference clock:
  • configured: indicates that a user has configured a peer clock.
  • dynamic: indicates a dynamic detection on a peer clock.
  • master: indicates that the local clock has been synchronized with the peer clock.
  • selected: indicates that the peer clock has been selected.
  • candidate: indicates a standby peer clock.
  • sane: indicates that the peer clock has passed the validity check.
  • insane: indicates that the peer clock has failed the validity check.
  • valid: indicates that the peer clock can be used as a reference clock.
  • invalid: indicates that the peer clock cannot be used as a reference clock.

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.

  • When the remote NTP server is in the VPN, it shows IP address of the remote server and the VPN name.

reach

Reachability of the configured server or peer.

current poll

Polling interval for current, in seconds.

now

Time since the NTP packet was not received or last synchronized, in seconds.

offset

Offset between the local clock and the superior reference clock.

delay

Delay between the local clock and the superior reference clock.

disper

Dispersion between the local clock and the superior reference clock.

autokey flags

Automatic key flag.

# Display detailed information about local NTP sessions.

<sysname> display ntp-service sessions verbose
 clock source: 10.2.3.10
 clock stratum: 3
 clock status: configured, master, sane, valid
 reference clock ID: LOCAL(0)
 local mode: client, local poll: 64, current poll: 64
 peer mode: server, peer poll: 64, now: 1
 offset: 0.0320 ms, delay: 3.29 ms, disper: 0.02 ms
 root delay: 0.00 ms, root disper: 0.00 ms
 reach: 1, sync dist: 0.002, sync state: 2
 precision: 2^18, version: 3, peer interface: wildcard
 reftime: 21:23:21.790 UTC Jun 19 2012(D38B6C49.CA4B33DA)
 orgtime: 21:23:29.644 UTC Jun 19 2012(D38B6C51.A51287C2)
 rcvtime: 21:23:29.646 UTC Jun 19 2012(D38B6C51.A57C4E2F)
 xmttime: 21:23:29.642 UTC Jun 19 2012(D38B6C51.A49B62C7)
 filter delay :  0.00   0.00   0.00   0.00   0.00   0.00   0.00   0.00
 filter offset:  0.00   0.00   0.00   0.00   0.00   0.00   0.00   0.00
 filter disper:  0.00   0.00  16.00  16.00  16.00  16.00  16.00  16.00
 reference clock status: abnormal
 timecode:
 autokey flags: 0x0
Table 2 Description of the display ntp-service sessions verbose command output

Item

Description

clock status

Status of the reference clock. You can obtain the following information based on the clock status.
  • configured: indicates that the sessions are configured by users.
  • dynamic: indicates that the sessions are created dynamically.
  • master: indicates that the clock in the sessions is a master clock.
  • selected: indicates that the clock in the sessions is selected as a reference clock.
  • candidate: indicates that the clock in the sessions is selected as a candidate for a reference clock.
  • sane: indicates that the clock in the sessions has passed the validity check.
  • insane: indicates that the clock in the sessions has failed the validity check.
  • valid: indicates that the clock in the sessions can be used as a reference clock.
  • invalid: indicates that the clock in the sessions cannot be used as a reference clock.

local mode

Mode of the local clock:
  • client: indicates that the local clock is the client. The local clock can be synchronized with the server.
  • server: indicates that the local clock is the server. The peer clock can be synchronized with the local but the local cannot be synchronized with the peer.
  • active: indicates that the local clock is symmetric active. The local and the peer clock can be synchronized with each other. In active mode, the local clock sends a synchronization request first.
  • passive: indicates that the local clock is symmetric passive. The local and the peer clock can be synchronized with each other. In passive mode, the peer clock sends a synchronization request first.
  • broadcast: indicates that the local clock is in broadcast server mode.
  • control: indicates an NTP control message.
  • private: indicates private usage.
  • broadcast client: indicates that the local clock is in broadcast client mode.
  • unspecified: indicates the mode of the local system clock is not specified.

peer mode

Mode of the peer clock:
  • client: indicates that the peer clock is the client. The peer clock can be synchronized with the server.
  • server: indicates that the peer clock is the server. The local clock can be synchronized with the peer clock but the peer clock cannot be synchronized with the local clock.
  • active: indicates that the peer clock is symmetric active. The local and the peer clock can be synchronized with each other. In active mode, the peer clock sends a synchronization request first.
  • passive: indicates that the peer clock is symmetric passive. The local and the peer clock can be synchronized with each other. In passive mode, the local clock sends a synchronization request first.
  • broadcast: indicates that the peer clock is in broadcast server mode.
  • control: indicates an NTP control message.
  • private: indicates private usage.
  • broadcast client: indicates that the peer clock is in broadcast client mode.
  • unspecified: indicates the mode of the peer clock is not specified.

local poll

Polling interval for the local clock.

peer poll

Polling interval for the peer clock.

offset

Offset between the local and the peer clock based on the timestamp information carried in the last received packet.

root delay

Delay between the local clock and the master reference clock. By default, the delay time is 0 seconds.

root disper

Dispersion between the local clock and the master reference clock. By default, the dispersion time is 0 seconds.

sync dist

Synchronization distance between the local clock and reference clocks. NTP will select the reference clock that has the shortest synchronization distance with the local clock to be synchronized with.

sync state

Synchronization state. The possible values are as follows:
  • 0: indicates the clock to be synchronized is not specified.

  • 1: indicates the frequency has set.

  • 2: indicates the time is set.

  • 3: indicates the frequency mode.

  • 4: indicates that the clock has been synchronized with the reference clock.

  • 5: indicates that the synchronization request and response have been detected.

precision

Precision of the peer clock.

version

NTP version:
  • 1: indicates NTP version 1.
  • 2: indicates NTP version 2.
  • 3: indicates NTP version 3.
  • 4: indicates NTP version 4.

peer interface

Interface of the peer clock.

reftime

Last time when the local clock was set or corrected based on the reference clock.

orgtime

Time when the peer clock sends a request packet.

rcvtime

Time when the peer clock receives a request packet.

xmttime

Time when the local clock sends a response packet.

filter delay

Delay time for receiving the last eight packets.

filter offset

Time offset for receiving the last eight packets.

filter disper

Time dispersion for receiving the last eight packets.

reference clock status

Status of the reference clock.
  • Normal: indicates that the peer clock is reachable.
  • Abnormal: indicates that the peer clock is not reachable.

autokey flags

Automatic key flag.

timecode

Time code.

Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >