Hey guys, When getting a time source from a source not from your time zone, how does it know what time zone you are on?
dumb question but new to the game of Linux!
server ntp.syd.connect.com.au
server time.deakin.edu.au
And I have ntpd running. I checked with ps -ale
How can I check whether the system time has been, or is being, adjusted to sync with the time servers. Can't seem to find anything in the logs. How often does ntpd check with the timeservers ?
I run "ntpdate -s ntp.nasa.gov" as a 'crond' hourly bash script. This dumps the following into my /var/log/messages:
... adjust time server ... offset -0.482624 sec
That's how _I_ know my time is being set/reset.
I used to run ntpd to set time, but the truth of the matter is that I wasn't telling my other machines to read from _MY_ ntpd, I was setting them all to read from a *superior* precision time server externally. This meant that I had a dozen time servers and nobody reading from them.
Thus I removed 'ntpd' from all my setups and I now run the ntpdate script hourly to avoid the "risk" of having yet another daemon running.
If you are running ntpd as daemon, you are in sync permanently. You are exchanging UDP packets in regular intervals. See ntpq, command 'peers' or ntptrace.
Keeping on good sync is essential for clusters, for example. For simple end users/single servers is is usually enough to use ntpdate <server> in a cron job.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.