Do "service ntpd restart" and "ntpdate <ntp-server-ip>" do the same work?

by Shiva J   Last Updated April 10, 2018 12:00 PM

I am often getting a large value in offset when checking using ntpq -p, I am generally restating the ntpd daemon and it fixes the issue. I wanted to know if i can try the ntpdate <ntp-server-name> instead of restarting the ntpd. Since this is a production box wanted to be sure before implementing it. Kindly suggest

Tags : ntp ntpd ntpdate


Answers 1


No. Citing man ntpdate:

ntpdate will decline to set the date if an NTP server daemon (e.g., ntpd) is running on the same host. When running ntpdate on a regular basis from cron as an alternative to running a daemon, doing so once every hour or two will result in precise enough timekeeping to avoid stepping the clock.

Sven
Sven
April 10, 2018 11:22 AM

Related Questions


Different offset in "ntpq -p" and "ntpdate -q"

Updated December 01, 2015 13:00 PM



NTP client reseting date to 1970

Updated July 17, 2017 14:00 PM

Shifting ntp server by x hours

Updated January 14, 2016 09:00 AM