SUMMARY: Time synchronization (fwd)

Joe R. Jah (jjah@sol.ccsf.cc.ca.us)
Wed, 03 Dec 1997 10:35:51 -0800 (PST)

Thanks list; special thanks to:

Renny Koshy <renny@qts.com>
Dave Staggs <dstaggs@kcii.com>
Greg Polanski <greg_polanski@adc.com>
"Tony C. Wu" <tonywu@life.nthu.edu.tw>
Chris Marble <cmarble@orion.ac.hmc.edu>
Kevin Sheehan {Consulting Poster Child} <Kevin.Sheehan@uniq.com.au>
Doug Krause <dijon@netcom.com>
Sam Nelson <Sam.Nelson@cs.stir.ac.uk>
Matthew Atkinson <m.atkinson@csl.gov.uk>
Rich Kulawiec <rsk@itw.com>
"Garry D. Robbins" <Garry.Robbins@LABATT.com>
Stephen Frost <sfrost@mitretek.org>
"Herbert, Marc @ GRNK" <HerberM@HUB01.TDS-GN.LMCO.com>
Matthew Stier <Matthew.Stier@tddny.fujitsu.com>
SW <shubin@brain2.nida.nih.gov>
"Mark A. Baldwin" <mark.baldwin@aur.alcatel.com>
"Plesha, Thomas A. (NSLC Pacific)" <tplesha@nslcpacific.navy.mil>
Jonathan Loh <jloh@futon.sfsu.edu>
System Administrator <sys-admin@gdc.ca>
Tom Erickson <Thomas.M.Erickson.1@gsfc.nasa.gov>
Charlie Mengler <charliem@anchorchips.com>
David Thorburn-Gundlach <david@bae.uga.edu>
"Sanjiv K. Bhatia" <sanjiv@aryabhat.cs.umsl.edu>
Shriman Gurung <SG@datcon.co.uk>
Michael Pins <mtpins@intran.xerox.com>
foster@bial1.ucsd.edu
and those whose responses may be in the mail.

Almost everyone pointed me to NTP/XNTP; some suggested using rdate. As
the immediate solution I chose Sanjiv K. Bhatia solution and made the
system crontab:

05 04 * * 6 /usr/ucb/rdate india.colorado.edu > /dev/null 2>&1

I also downloaded xntp3-5.91.tar.gz from http://www.eecis.udel.edu/~ntp/
to install later.

The original message:

> ----------
> From: Joe R. Jah[SMTP:jjah@sol.ccsf.cc.ca.us]
> Sent: Tuesday, December 02, 1997 8:33 PM
> To: Sun Managers List
> Subject: Time synchronization
>
> Hi Folks,
>
> I run Solaris 2.5 on a Spark 5 box. I'd like to synchronize the
> system
> time with world time automatically; is there a script or program that
> does
> that. Something like Tardis for Windows. TIA
>
> Joe
>
> _/ _/_/_/ _/ ____________ __o
> _/ _/ _/ _/ ______________ _-\<,_
> _/ _/ _/_/_/ _/ _/ ......(_)/ (_)
> _/_/ oe _/ _/. _/_/ ah jjah@sol.ccsf.cc.ca.us
>

The most comprehensive solution:

---------- Forwarded message ----------
Date: Wed, 3 Dec 1997 08:40:57 -0500
From: "Herbert, Marc @ GRNK" <HerberM@HUB01.TDS-GN.LMCO.com>
To: "Joe R. Jah" <jjah@sol.ccsf.cc.ca.us>
Subject: RE: Time synchronization

Joe,

The easy way is to use the rdate command to get the time of a time
keeping site, such as the US Naval Observatory, on a regular basis. This
can be put into the system crontab file to run daily, e.g.,

30 23 * * * rdate tock.usno.navy.mil > /dev/null 2>&1

If you have a standalone system this works fine. If you have a network
of Suns, you can designate one as a master to sync to the USNO as above,
and then periodically run rdate on each of them to synch to the master.

The harder way is to use ntp (Network Time Protocol) to allow continuous
synching of clocks. This is also good if you have a mix of Sun, HP-UX, or
other UNIX boxes.
The source code for this is available from:

http://www.eecis.udel.edu/~ntp/

Good Luck,
Marc L. Herbert

----------------------------------------------==<<*>>==-----------------
-----------------------
Marc L. Herbert, Ph.D. Voice: 516-574-2681
Senior Engineer
Fax: 516-574-9013
Lockheed Martin Federal Systems
365 Lakeville Road
Great Neck, NY 11020-1696
Email:marc.herbert@lmco.com