home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!olivea!spool.mu.edu!sdd.hp.com!hpscit.sc.hp.com!hplextra!rigel!howeird
- From: howeird@hpl.hp.com (Howard Stateman)
- Newsgroups: comp.sys.hp
- Subject: Re: Synchronize time?
- Message-ID: <1993Jan8.003630.29320@hplabsz.hpl.hp.com>
- Date: 8 Jan 93 00:36:30 GMT
- References: <24645@hacgate.SCG.HAC.COM>
- Sender: news@hplabsz.hpl.hp.com (News Subsystem (Rigel))
- Organization: HP Research Grants Program
- Lines: 30
- Nntp-Posting-Host: weird1.hpl.hp.com
- X-Newsreader: TIN [version 1.1.4 PL6]
-
- Angela Bao (abao@bssv02) wrote:
- : We have about 20 HP 720 workstations (and growing in number), but each
- : workstations' clock is on a mind of its own. I know in the SUN world
- : there is something called 'rdate' which allows for time synchrnization.
- : Is there something similar for the HPs (maybe public domain)?
-
- We set up a timeserver, and put this in our /etc/rc file:
- # Use ntp to set the clock
- for clock in timeserver
- do
- echo "Attempting to set time from $clock -- there may be
- some delay ..."
- /usr/local/bin/ntp -f -s $clock 2>&1 | grep 'delay:' >/dev/null
- if [ $? -eq 0 ]
- then
- echo "The time set from host $clock is `date`"
- break
- fi
- done
-
- Which syncs them on reboot. Since they are all getting the time from the
- same machine, they will all be in sync, or close to it.
-
- -Howard
-
- --
- Howard Stateman
- howeird@hpl.hp.com |Telnet: (415) 857-7941 | Fax: (415) 813-3152
- Support Engineer
- HP Research Grants Program & HP Labs Science Centers Program
-