Its 2025 and I'm happily using systemd-timesyncd for NTP and time management on Ubuntu. However an embedded device on my network is failing time-synchronisation so I want to test my NTP server is actually responding.
Requirements:
- I don't want to set the time
- I don't want to install a service that will compete or conflict with
systemd-timesyncd - I just want to prove that the server is sending sensible responses
Searching for how to do this gives the following suggestions:
- use
ntpq - use
chronyc - use
ntpdate -qu - as always - some unhinged rant about how systemd is the root of all problems
All of them fail on my criteria:
ntpqis in the packagentp(orntpsec) which installsntpdconflicting with systemdchronycis in the packagechronywhich installs thechronyddaemon conflicting with systemdntpdateis in the packagentpdate(orntpsec-ntpdate) which registers itself to hook into network-hooks/dhcp-hooks etc,...
In each case if I know enough I can disarm the conflict or disable the service I'm forced to install because I want a client, but surely that isn't where we find ourselves in 2025.