man ntpdate on a CentOS 7.2 server:
Disclaimer: The functionality of this program is now available in the ntpd program. See the -q command line option in the ntpd - Network Time Protocol (NTP) daemon page. After a suitable period of mourning, the ntpdate program is to be retired from this distribution
-q Exit the ntpd just after the first time the clock is set. This behavior mimics that of the ntpdate program, which is to be retired. The -g and -x options can be used with this option. Note: The kernel time discipline is disabled with this option.
This mimics the usual functionality of the
ntpdate command. However,
ntpdate has its own
-q flag as well:
-q Query only - don't set the clock.
I don't see any way in the
ntpd man page to perform this functionality.
ntpdate will eventually be retired, what is the future-compatible, preferred way to get the functionality that
ntpdate -q currently provides?