Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

synchronizing clocks on diff. machines

Posted on 1998-08-05
7
Medium Priority
?
380 Views
Last Modified: 2013-12-16
I have a bunch of different machines running different OS's
and I was wondering if there's an easy way of synchronizing
all the clocks and keeping them synchronized.  Or perhaps is
there a way for one machine to "broadcast" the time to all
others?
0
Comment
Question by:ladioss
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
7 Comments
 
LVL 84

Expert Comment

by:ozo
ID: 1812565
do all the OS's support timed?
0
 
LVL 2

Expert Comment

by:lucidity
ID: 1812566
NT servers will respond to the "net time" command.

net time \\NTSName /set /yes

I don't know if UNIX will make this call, anyway, I put that in my start up to synch to the server.

0
 
LVL 51

Expert Comment

by:ahoffmann
ID: 1812567
lucidity, why do you post M$ proprietary answres in a UNIX topic?
It's even just half the trouth, it won't work this way in a default M$ setup.

timed (as ozo said) is the solution, available for most M$ products too ;-))
0
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 

Author Comment

by:ladioss
ID: 1812568
I'm not familiar in that area...how would i get it to work if it
supports timed?  These machines are not running NT, but unix
os's.
0
 
LVL 51

Expert Comment

by:ahoffmann
ID: 1812569
timed works in master-slave mode (IRIX also supports primary and secondary masters).

You start timed as master on one machine, and as slave on all others. timed can be configured via options how to synchronize, see man-page for details.
Be prepared that it has different options on different platforms.
0
 

Accepted Solution

by:
almasy earned 300 total points
ID: 1812570
For all of your Unix systems I would recommend setting up a root cron job (use "crontab -e" as root) that runs the "rdate" command periodically to query the time from a common host.

The syntax for "rdate" is:

    rdate -s hostname

Where "hostname" is the name of the machine to query, and the "-s" parameter may not be needed for some flavors of Unix (it can be left off for Solaris and SunOS).

For internet-connected systems there are a number of public machines to query.  The one I usually use is "time.mit.edu", so the crontab entry that I have set up under Solaris is:

    45 4 * * * /usr/bin/rdate time.mit.edu > /dev/null

Which updates the system time at 4:45am each day.

It may also be desirable to invoke rdate from the startup scripts on each machine and/or to increase the frequency of cron invocations, if you're concerned about the clocks always being synchronized.
0
 

Author Comment

by:ladioss
ID: 1812571
Actually, i already have it answered by ozo.  Timed was the answer and I have it working on all 6 different OS's now even
though it was a pain with all the different options on the different platforms like ahoffmann said.  sorry that i couldn't give you the points though, ozo.

thanks to all!
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Hello fellow BSD lovers, I've created a patch process for patching openjdk6 for BSD (FreeBSD specifically), although I tried to keep all BSD versions in mind when creating my patch. Welcome to OpenJDK6 on BSD First let me start with a little …
Attention: This article will no longer be maintained. If you have any questions, please feel free to mail me. jgh@FreeBSD.org Please see http://www.freebsd.org/doc/en_US.ISO8859-1/articles/freebsd-update-server/ for the updated article. It is avail…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:

618 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question