home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / sys / hp / 14624 < prev    next >
Encoding:
Internet Message Format  |  1993-01-07  |  1.6 KB

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