I'm currently managing some RHEL 7.9 hosts which need to sync time to NTP server and only the ntpd can be utilized for time sync.
I did the following configurations in OS but not sure whether the result indicting they're correct or not.
- the time server in the environment is 192.168.30.200
- in the /etc/ntp.conf file, the parameters were written:
server 192.168.30.200
andrestrict 192.168.30.200
- command
chkconfig ntpd on
to start the ntpd. - command
ntpdate -dv 192.168.30.200
to do time sync (is it the command to sync time immediately?) and the output is below:
7 Nov 13:51:42 ntpdate[128853]: ntpdate 4.2.6p5@1.2349-o Mon Jun 1 11:18:15 UTC 2020 (1)
Looking for host 192.168.30.200 and service ntp
host found : 192.168.30.200
transmit(192.168.30.200)
receive(192.168.30.200)
transmit(192.168.30.200)
receive(192.168.30.200)
transmit(192.168.30.200)
receive(192.168.30.200)
transmit(192.168.30.200)
receive(192.168.30.200)
server 192.168.30.200, port 123
stratum 4, precision -23, leap 00, trust 000
refid [192.168.30.200], delay 0.02632, dispersion 0.00005
transmitted 4, in filter 4
reference time: e7131a05.fd12bbc4 Mon, Nov 7 2022 13:45:41.988
originate timestamp: e7131b75.00e9ce65 Mon, Nov 7 2022 13:51:49.003
transmit timestamp: e7131b75.004901f8 Mon, Nov 7 2022 13:51:49.001
filter delay: 0.02666 0.02657 0.02632 0.02663
0.00000 0.00000 0.00000 0.00000
filter offset: 0.001956 0.001816 0.001894 0.001940
0.000000 0.000000 0.000000 0.000000
delay 0.02632, dispersion 0.00005
offset 0.001894
7 Nov 13:51:49 ntpdate[128853]: adjust time server 192.168.30.200 offset 0.001894 sec
is the output meaning that the time server is operating and time has been synced on ntp clients?