Use Chrony Test Ntp Server
when we have setuped a ntp service ,we need to test the ntp service if it work well.
we can use the following command to test the NTP service
chronyd -q 'server 192.168.11.145 iburst'
if the NTP service works well the console will ouput the following content
[root@fedora ~]# chronyd -q 'server 192.168.11.145 iburst'
2022-07-08T06:37:35Z chronyd version 4.2 starting (+CMDMON +NTP +REFCLOCK +RTC +PRIVDROP +SCFILTER +SIGND +ASYNCDNS +NTS +SECHASH +IPV6 +DEBUG)
2022-07-08T06:37:35Z Initial frequency -2.216 ppm
2022-07-08T06:37:39Z System clock wrong by -0.063491 seconds (step)
2022-07-08T06:37:39Z chronyd exiting
it’s over