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.
# 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
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:
|
reference clock ID |
ID of the reference clock:
|
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
Item |
Description |
|---|---|
clock status |
Status of the reference clock. You can obtain the following
information based on the clock status.
|
local mode |
Mode of the local clock:
|
peer mode |
Mode of the peer clock:
|
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:
|
precision |
Precision of the peer clock. |
version |
NTP version:
|
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.
|
autokey flags |
Automatic key flag. |
timecode |
Time code. |