Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am looking for procedure which I can execute in cron to synch the system time in clustered servers. Can any of the experienced SME's please help?

share|improve this question

closed as not a real question by Michael Hampton, Ward, mdpc, Jenny D, Dave M Jun 22 '13 at 20:08

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.If this question can be reworded to fit the rules in the help center, please edit the question.

What's wrong with NTP? – Michael Hampton Aug 17 '12 at 20:04
possible duplicate of periodically overridding NTP for simulation purposes – HopelessN00b Aug 18 '12 at 1:24

NTP is the answer.
NTP is always the answer to "How do I synchronize the clocks on some machines?"

A full tutorial on setting up NTP is far beyond the scope of this site, however you will find tutorials all over the internet. The gist of it is:

  1. Install the NTP software if your OS doesn't already come with it.
    (If you're really in a bind and need to build it yourself source is available at
  2. Run the NTP daemon on one of your machines as a "server"
    (point this machine at some servers from to get its time)
  3. Run the NTP daemon on the rest of your machines, pointing them to your local NTP server configured in (2).

This will produce a far better synchronization than any cron job could manage.

share|improve this answer

Not the answer you're looking for? Browse other questions tagged or ask your own question.