Hi,
Using the VAMI console, I have changed the NTP configuration from host to NTP and then set up a list of NTP servers (I do the similar configuration for my ESXi hosts).
Now I wanted to check that the synchronization with the NTP servers works fine, but I don't know how to proceed.
I found articles that talk about some command to use, like ntp.get, timesync.get, rntp stop/start; but none of these work.
Only the ntpq -p command returns a result.
Any thoughts on this topic?
Thanks in advance for yours answers.
Regards
Patrick
Check with the command <ntptime -o offset>. Parameter 'offset' should be the one to be looked at I think.
Cheers,
Supreet
Did you try service ntp status?
To RickVerstegen :
The service ntpd status returns that the service is running :
service ntpd status
● ntpd.service - Network Time Service
Loaded: loaded (/usr/lib/systemd/system/ntpd.service; enabled; vendor preset:enabled)
Active: active (running) since Thu 2018-10-04 08:24:24 CEST; 24h ago
Docs: man:ntpd
Process: 24294 ExecStart=/usr/bin/ntpd -g -u ntp:ntp (code=exited, status=0/SUCCESS)
Main PID: 24298 (ntpd)
Tasks: 2
Memory: 1.2M
CPU: 1.769s
CGroup: /system.slice/ntpd.service
└─24298 /usr/bin/ntpd -g -u ntp:ntp
To Supreet:
With the ntptime command without any parameters, I can get this result:
ntp_gettime() returns code 5 (ERROR)
time df6183da.dcdac000 Fri, Oct 5 2018 8:31:54.862, (.862713),
maximum error 16000000 us, estimated error 16 us, TAI offset 0
ntp_adjtime() returns code 5 (ERROR)
modes 0x0 (),
offset 0.000 us, frequency 0.000 ppm, interval 1 s,
maximum error 16000000 us, estimated error 16 us,
status 0x4041 (PLL,UNSYNC,MODE),
time constant 7, precision 1.000 us, tolerance 500 ppm,
On the ntpq -p command that my vCSA attempts to get the time from ntp servers:
ntpq -p
remote refid st t when poll reach delay offset jitter
==============================================================================
opsipa21-prd1.l .INIT. 16 u - 1024 0 0.000 0.000 0.000
opsipa19-prd1.b .INIT. 16 u - 1024 0 0.000 0.000 0.000
opsipa31-prd.ro .INIT. 16 u - 1024 0 0.000 0.000 0.000
The INIT refid value shows me that it still not get any response from the ntp servers.
Also my looking for other command or tools I can use on my vCSA to get more info to determine where the problem is.