Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

NTPD

Status
Not open for further replies.

babbs

MIS
Mar 26, 2003
12
US
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!

Thanks!!!!

Babbs
 
I've put the following into /etc/ntp.conf

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 ?

TIA's

ß


 
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.

My $0.02
 
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.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top