After the recent daylight saving time change, my macOS (Sonoma v14.1.1) clock no longer shows correct date and time. When I enable "Set date and time automatically" it reverts to January 22, 2023 and a wrong time.
Therefore, I would like to manually synchronise my computer's clock with a time server. I would like to use Oxford's University time servers. I use
sntp
command.
sudo sntp -sS ntp1.ox.ac.uk
The command produces five sets of the following output:
sntp: Exchange failed: Timeout
sntp_exchange {
result: 6 (Timeout)
header: 00 (li:0 vn:0 mode:0)
stratum: 00 (0)
poll: 00 (1)
precision: 00 (1.000000e+00)
delay: 0000.0000 (0.000000000)
dispersion: 0000.0000 (0.000000000)
ref: 00000000 (" ")
t_ref: 00000000.00000000 (0.000000000)
t1: E8F7357E.A265F0F5 (3908515198.634367999)
t2: 00000000.00000000 (0.000000000)
t3: 00000000.00000000 (0.000000000)
t4: 00000000.00000000 (0.000000000)
offset: FFFFFFFF8B846540.AECD078580000000 (-1954257599.317183971)
delay: FFFFFFFF1708CA81.5D9A0F0B00000000 (-3908515198.634367943)
mean: 0000000000000000.0000000000000000 (0.000000000)
error: 0000000000000000.0000000000000000 (0.000000000)
addr: 129.67.1.164
}
and exits with the following error message:
sntp: Clock select failed
My NTP server configuration is located in /private/etc/ntp.conf
:
server ntp0.ox.ac.uk
server ntp1.ox.ac.uk
server ntp2.ox.ac.uk
server ntp3.ox.ac.uk
My questions are:
1) How do I make sure that the sntp
command uses the nth.conf file above? At the moment I have to supply the NTP server address manually to the sntp
command.
2) What do I need to change for the sntp
command to succeed and set the time?
Asked by mabalenk
(131 rep)
Nov 9, 2023, 10:57 AM
Last activity: Jan 14, 2025, 03:26 PM
Last activity: Jan 14, 2025, 03:26 PM