NTP: Difference between revisions
No edit summary |
|||
| Line 23: | Line 23: | ||
== Troubleshooting == | == Troubleshooting == | ||
When NTP stops syncing time, there are a few things to try: | |||
# Does {{code|ntpdate -q timeserver}} produce any results? Possibly a network issue. | |||
# Check the NTP server's peer list {{code|ntpq -pn}} to see if peers are bad. | |||
# Use {{code|tcpdump port 123}} to monitor NTP traffic. | |||
# Verify that your {{code|ntp.conf}} is not restricting access or ignoring to your source servers. Try and use an unmodified configuration file and verify whether it works. | |||
=== Server dropped: strata too high === | === Server dropped: strata too high === | ||
{{highlight|lang=text|code= | |||
136.159.5.75: Server dropped: strata too high | 136.159.5.75: Server dropped: strata too high | ||
server 136.159.5.75, port 123 | server 136.159.5.75, port 123 | ||
| Line 39: | Line 45: | ||
delay 0.02577, dispersion 0.00002 | delay 0.02577, dispersion 0.00002 | ||
offset -18.041794 | offset -18.041794 | ||
}} | |||
The server is either misconfigured or there is a network issue between the client and the server. Verify that the client is not restricting the server. | |||
=== Server dropped: Leap not in sync === | === Server dropped: Leap not in sync === | ||
{{highlight|lang=text|code= | |||
136.159.2.251: Server dropped: Leap not in sync | 136.159.2.251: Server dropped: Leap not in sync | ||
server 136.159.2.251, port 123 | server 136.159.2.251, port 123 | ||
| Line 57: | Line 65: | ||
delay 0.02748, dispersion 0.00070 | delay 0.02748, dispersion 0.00070 | ||
offset -15.076202 | offset -15.076202 | ||
}} | |||
The server may be misconfigured. Ensure that the server is synchronized or use another server. | |||
On the server, force a sync by running {{code|ntpdate -b timeserver}}. | |||
[[Category:Linux]] | [[Category:Linux]] | ||
{{Navbox Services}} | {{Navbox Services}} | ||
Revision as of 18:32, 12 January 2016
To query a NTP server, use the ntpdc command.
NTP Monlist
To see the peers of the local server, run:
ntpdc -c monlist
You can also try querying a remote server by running:
ntpdc -c monlist IP
NTP Peers
To see the peers of a server, run:
ntpq -pn
NTP Synchronization
To sync with a server, run:
ntpdate 136.159.5.75
You can get debug information with the -dv option:
ntpdate -dv 136.159.5.75
Troubleshooting
When NTP stops syncing time, there are a few things to try:
- Does
ntpdate -q timeserverproduce any results? Possibly a network issue. - Check the NTP server's peer list
ntpq -pnto see if peers are bad. - Use
tcpdump port 123to monitor NTP traffic. - Verify that your
ntp.confis not restricting access or ignoring to your source servers. Try and use an unmodified configuration file and verify whether it works.
Server dropped: strata too high
136.159.5.75: Server dropped: strata too high
server 136.159.5.75, port 123
stratum 16, precision -22, leap 11, trust 000
refid [136.159.5.75], delay 0.02577, dispersion 0.00002
transmitted 4, in filter 4
reference time: 00000000.00000000 Sun, Dec 31 1899 16:26:08.000
originate timestamp: d7a8d436.b9474d41 Wed, Aug 27 2014 16:03:34.723
transmit timestamp: d7a8d448.c3f0311e Wed, Aug 27 2014 16:03:52.765
filter delay: 0.02588 0.02577 0.02582 0.02582
0.00000 0.00000 0.00000 0.00000
filter offset: -18.0417 -18.0417 -18.0417 -18.0417
0.000000 0.000000 0.000000 0.000000
delay 0.02577, dispersion 0.00002
offset -18.041794
The server is either misconfigured or there is a network issue between the client and the server. Verify that the client is not restricting the server.
Server dropped: Leap not in sync
136.159.2.251: Server dropped: Leap not in sync
server 136.159.2.251, port 123
stratum 1, precision -9, leap 11, trust 000
refid [NTP], delay 0.02748, dispersion 0.00070
transmitted 4, in filter 4
reference time: d7a64b67.11374bc6 Mon, Aug 25 2014 17:55:19.067
originate timestamp: d7a8d4ab.fae147ae Wed, Aug 27 2014 16:05:31.980
transmit timestamp: d7a8d4ba.f4c9d0fb Wed, Aug 27 2014 16:05:46.956
filter delay: 0.02831 0.02748 0.02757 0.03752
0.00000 0.00000 0.00000 0.00000
filter offset: -15.0758 -15.0762 -15.0761 -15.0711
0.000000 0.000000 0.000000 0.000000
delay 0.02748, dispersion 0.00070
offset -15.076202
The server may be misconfigured. Ensure that the server is synchronized or use another server.
On the server, force a sync by running ntpdate -b timeserver.
| ||||||