I need to confirm that a Domain Controller is acting as a NTP time server for non windows devices and servers. I figure there must be a command in linux that will query an NTP server and see if it is accessible and serving the right time.
Asked
Active
Viewed 1,190 times
2 Answers
3
As mentioned ntpdate
is a standard tool for requesting the time, and using it to set your local system.
If you have the full NTP daemon installed, you could update your ntp.conf
restart the daemon, and then query the status of your local daemon with ntpq -p
.
If you want to continuously monitor NTP, then https://www.monitoring-plugins.org/ includes check commands for monitoring various aspects of NTP check_ntp, check_ntp_peer, and check_ntp_time. This plugin package is available on most linux distros. Though it may go by the older name nagios-plugins.

Zoredache
- 130,897
- 41
- 276
- 420
0
Make sure you have the ntp package installed. You can then run the following as root
ntpdate -q ip.of.server

Francois Wolmarans
- 1,590
- 10
- 14
-
1This would set the time on the querying machine - probably not an intended outcome. – guntbert Oct 08 '15 at 17:24
-
this did what I wanted. I just wanted to prove that a non windows client could query time. I just did it on a test linux box – Wally Kroeker Oct 09 '15 at 14:02