home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / sys / next / software / 815 < prev    next >
Encoding:
Text File  |  1992-07-20  |  3.0 KB  |  83 lines

  1. Newsgroups: comp.sys.next.software
  2. Path: sparky!uunet!wupost!csus.edu!news
  3. From: eps@futon.SFSU.EDU (Eric P. Scott)
  4. Subject: Re: WANTED: clock setting software
  5. Message-ID: <1992Jul21.060304.7773@csus.edu>
  6. Sender: news@csus.edu
  7. Reply-To: eps@cs.sfsu.edu
  8. Organization: San Francisco State University
  9. References: <1992Jul16.173835.4248@fnbc.com> <Brpns5.7w@sounds.wa.com>
  10. Date: Tue, 21 Jul 1992 06:03:04 GMT
  11. Lines: 70
  12.  
  13. In article <Brpns5.7w@sounds.wa.com> BrianW@SoundS.WA.com
  14.     (Brian Willoughby) writes:
  15. >I would appreciate it if someone could send me a few pointers concerning setup
  16. >of NTP on the NeXT (I"m running System 2.2 on an isolated NeXTdimension with
  17. >SLIP and UUCP, but no ethernet connections).
  18.  
  19. You have IP connectivity, that's what counts.  NTP will
  20. compensate for SLIP's latency.  (However, you might not want NTP
  21. activity to initiate SLIP sessions, especially after ntpd has a
  22. chance to determine your machine's drift compensation value.)
  23.  
  24. >I have read the Man pages for ntp ntpd and ntpdc, but there is nothing in
  25. >NeXTadmin or NeXTanswers/92_spring about setting up NTP.
  26.  
  27. NeXT stores NTP configuration information in the NetInfo
  28. /locations/ntp directory.  /locations/ntp has two interesting
  29. properties:
  30.  
  31.     server
  32.         corresponds to "Master" in NextAdmin
  33.     host
  34.         corresponds to "Clone" in NextAdmin
  35.  
  36. Suppose you have a small local network of machines called
  37. myhost, client1, client2, etc. (gee, I wonder where *those* names
  38. came from :-) ).  I want  myhost  to get time from the outside
  39. world, and the various clients to get time from myhost.
  40.  
  41. On myhost:
  42.  
  43.     # niutil -create . /locations/ntp
  44.     # niutil -createprop . /locations/ntp server outside.world.com
  45.     # niutil -createprop . /locations/ntp host myhost
  46.  
  47. On each client:
  48.  
  49.     # niutil -create . /locations/ntp
  50.     # niutil -createprop . /locations/ntp server
  51.     # niutil -createprop . /locations/ntp host myhost
  52.  
  53. (Sites with "network" NetInfo domains may be able to save some steps.)
  54. (Shell-haters can use NetInfoManager.)
  55.  
  56. The idea here is that every machine sees  myhost  listed in a
  57. "host" property, so that it becomes a "clone" server.  Only
  58. myhost  knows about the external NTP server.  Clients don't
  59. need to be enumerated; the mere presence of /locations/ntp
  60. is sufficient.
  61.  
  62. >Is the solution as simple as adding a crontab.local entry for "/usr/etc/ntp -s
  63. >clock" as user root?
  64.  
  65. No!  That will do *bad* things.  (Fortunately, NeXTs run "slow.")
  66.  
  67. >                      If so, then why is there a need for the ntpd daemon?  I
  68. >was able to run "/usr/etc/ntp clock" before the ntpd process was started.
  69.  
  70. ntpd makes _gentle_ changes in the machine's current time, and
  71. attempts to figure out what the hardware clock's long-term
  72. natural tendency is so that timekeeping can stay more or less
  73. accurate even when there isn't an external time reference
  74. available.
  75.  
  76. ntp -s  "shocks" the current time setting and has no long-term
  77. benefit.
  78.  
  79.                     -=EPS=-
  80. -- 
  81. Give a man a hamburger, and he eats lunch for a day.
  82. Teach him to make hamburgers, and he can work at McDonald's.
  83.