home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / comp / sys / next / sysadmin / 7192 < prev    next >
Encoding:
Text File  |  1992-12-23  |  7.0 KB  |  207 lines

  1. Newsgroups: comp.sys.next.sysadmin
  2. Path: sparky!uunet!think.com!ames!purdue!yuma!news
  3. From: ns111310@longs.lance.colostate.edu
  4. Subject: SUMMARY:  keeping good time with a remote machine
  5. Sender: news@yuma.ACNS.ColoState.EDU (News Account)
  6. Message-ID: <Dec23.221315.36853@yuma.ACNS.ColoState.EDU>
  7. Date: Wed, 23 Dec 1992 22:13:15 GMT
  8. Reply-To: ns111310@longs.lance.colostate.edu
  9. Nntp-Posting-Host: slip17.slip.colostate.edu
  10. Organization: Colorado State University, Fort Collins, CO  80523
  11. Lines: 194
  12.  
  13. I received several tips on how to keep my machine at home up to date
  14. with a remote machine, which I assume has the correct time.
  15.  
  16. Here they are:
  17.  
  18. -----------------------------------------------------------
  19. (Message inbox:318)
  20. From jeffo@owens.slip.uiuc.edu Tue Dec 22 15:53:05 1992
  21. Return-Path: <jeffo@owens.slip.uiuc.edu>
  22. Received: from garcon.cso.uiuc.edu by longs.lance.colostate.edu  
  23. (5.65/lance.1.5)
  24.         id AA13068; Tue, 22 Dec 92 15:53:02 -0700
  25. Received: from owens.slip.uiuc.edu by garcon.cso.uiuc.edu with SMTP id  
  26. AA16742
  27.   (5.67a8+/IDA-1.5 for <ns111310@longs.lance.colostate.edu>); Tue, 22 Dec  
  28. 1992 1
  29. 6:52:57 -0600
  30. Received: by owens.slip.uiuc.edu (NX5.67c/NX3.0S)
  31.         id AA01569; Tue, 22 Dec 92 16:52:54 -0600
  32. Date: Tue, 22 Dec 92 16:52:54 -0600
  33. From: J.B. Nicholson-Owens <jeffo@owens.slip.uiuc.edu>
  34. Message-Id: <9212222252.AA01569@owens.slip.uiuc.edu>
  35. Received: by NeXT.Mailer (1.87.1)
  36. Received: by NeXT Mailer (1.87.1)
  37. To: ns111310@longs.lance.colostate.edu
  38. Subject: Re: question about ntp
  39. Reply-To: jeffo@uiuc.edu
  40.  
  41. You wrote:
  42. > I want to know if there is an easy way to add a line to the crontab
  43.  
  44. You don't want to do that.  Suddenly jerking the clock back to what it  
  45. should  
  46. be is not a good way to keep other tasks up-to-date of what the correct  
  47. time  
  48. is.  If you use ntp (the one that's already installed), it will keep a  
  49. process  
  50. running and slowly urge the clock toward the correct time (obtained from  
  51. another host).
  52.  
  53. Consult the ntp-related man page for details, but all you need is the ntp  
  54. (probably with ntp host) to be started in your /etc/rc.local (and perhaps  
  55. an  
  56. entry in NetInfo somewhere using the NetInfoMgr Tool [in the Auto Time  
  57. Management area]) and that's it.
  58. -- 
  59.  
  60. -- Jeff (jeffo@uiuc.edu)
  61. -- NeXTmail welcome
  62.  
  63. casco.lance.42 % next
  64. (Message inbox:319)
  65. From stuckey@mrcnext.cso.uiuc.edu Tue Dec 22 17:04:18 1992
  66. Return-Path: <stuckey@mrcnext.cso.uiuc.edu>
  67. Received: from garcon.cso.uiuc.edu by longs.lance.colostate.edu  
  68. (5.65/lance.1.5)
  69.         id AA13815; Tue, 22 Dec 92 17:04:17 -0700
  70. Received: from mrcnext.cso.uiuc.edu by garcon.cso.uiuc.edu with SMTP id  
  71. AA18653
  72.   (5.67a8+/IDA-1.5 for <ns111310@longs.lance.colostate.edu>); Tue, 22 Dec  
  73. 1992 1
  74. 8:04:14 -0600
  75. Received: by mrcnext.cso.uiuc.edu (NeXT-1.0 (From Sendmail 5.52)/NeXT-1.0)
  76.         id AA02930; Tue, 22 Dec 92 18:03:11 CST
  77. Date: Tue, 22 Dec 92 18:03:11 CST
  78. From: stuckey@mrcnext.cso.uiuc.edu (Anthony J. Stuckey)
  79. Message-Id: <9212230003.AA02930@mrcnext.cso.uiuc.edu>
  80. To: ns111310@longs.lance.colostate.edu
  81. Subject: Re: question about ntp
  82. Newsgroups: comp.sys.next.sysadmin
  83. References: <Dec22.220905.41998@yuma.ACNS.ColoState.EDU>
  84.  
  85. In comp.sys.next.sysadmin you write:
  86.  
  87. >I want to know if there is an easy way to add a line to the crontab
  88. >file so that at (say) 2am every night, my machine (at home) slips into
  89. >the local network, and resets the system clock... I want to do
  90. >this because the clock slips badly here (I don't know about other places)
  91.  
  92.         well -- you'll want to rsh across and run a script
  93. or C program, or possibly even the "time" binary itself.
  94.  
  95.         not hard at all.  man crontab and off you go.
  96.         you could even do it with "at".
  97. -- 
  98. Anthony J. Stuckey              stuckey@mrcnext.cso.uiuc.edu
  99.  
  100. "And if you frisbee-throw a universe where does it go?"
  101.              Turquoise, Steve Blunt.
  102.  
  103. casco.lance.43 % next
  104. (Message inbox:320)
  105. From sahayman@moose.cs.indiana.edu Tue Dec 22 21:34:15 1992
  106. Return-Path: <sahayman@moose.cs.indiana.edu>
  107. Received: from moose.cs.indiana.edu by longs.lance.colostate.edu  
  108. (5.65/lance.1.5
  109. )
  110.         id AA15259; Tue, 22 Dec 92 21:34:13 -0700
  111. Message-Id: <9212230434.AA15259@longs.lance.colostate.edu>
  112. Received: by moose.cs.indiana.edu
  113.         (5.65c/9.4jsm) id AA08793; Tue, 22 Dec 1992 23:34:11 -0500
  114. Date: Tue, 22 Dec 1992 23:34:11 -0500
  115. From: "Steve Hayman" <sahayman@moose.cs.indiana.edu>
  116. To: ns111310@longs.lance.colostate.edu
  117. Subject: Re: question about ntp
  118. Newsgroups: comp.sys.next.sysadmin
  119. In-Reply-To: <Dec22.220905.41998@yuma.ACNS.ColoState.EDU>
  120. Organization: NeXT Canada
  121. Cc: 
  122.  
  123. You'll find that "rdate" does what you want  This simple program  
  124. synchronizes
  125. your local clock with a remote machine.  This may be easier than getting
  126. the various time daemons going.
  127.  
  128. Something like this in your crontab should do it
  129.  
  130. 00 0 * * * root /usr/ucb/rdate some-reliable-machine
  131.  
  132.  
  133. casco.lance.44 % next
  134. (Message inbox:321)
  135. From thomas@Arnold.fkp.physik.th-darmstadt.de Tue Dec 22 23:47:22 1992
  136. Return-Path: <thomas@Arnold.fkp.physik.th-darmstadt.de>
  137. Received: from rs2.hrz.th-darmstadt.de by longs.lance.colostate.edu  
  138. (5.65/lance.
  139. 1.5)
  140.         id AA16035; Tue, 22 Dec 92 23:47:18 -0700
  141. Received: from Arnold.fkp.physik.th-darmsta  
  142. (arnold.fkp.physik.th-darmstadt.de) 
  143. by rs2.hrz.th-darmstadt.de with SMTP id AA23866
  144.   (5.65c/IDA-1.4.4 for <ns111310@longs.lance.colostate.edu>); Wed, 23 Dec  
  145. 1992 0
  146. 7:47:14 +0100
  147. Received: by Arnold.fkp.physik.th-darmstadt.de (NeXT-1.0 (From Sendmail  
  148. 5.52)/Cl
  149. ient-1.5/HRZ-THD)
  150.         id AA03340; Wed, 23 Dec 92 07:47:13 GMT+0100
  151. Date: Wed, 23 Dec 92 07:47:13 GMT+0100
  152. From: Thomas Traexler <thomas@Arnold.fkp.physik.th-darmstadt.de>
  153. Message-Id: <9212230647.AA03340@Arnold.fkp.physik.th-darmstadt.de>
  154. Received: by NeXT Mailer (1.63)
  155. To: ns111310@longs.lance.colostate.edu
  156. Subject: Re: question about ntp
  157.  
  158. In comp.sys.next.sysadmin article  
  159. <Dec22.220905.41998@yuma.ACNS.ColoState.EDU> you wrote:
  160. > I want to know if there is an easy way to add a line to the crontab
  161. > file so that at (say) 2am every night, my machine (at home) slips  
  162. into
  163. > the local network, and resets the system clock... I want to do
  164. > this because the clock slips badly here (I don't know about other  
  165. places)
  166.  
  167.  
  168. > thanks,
  169.  
  170. > -nate sammons
  171. >  ns111310@longs.lance.colostate.edu
  172. You have to put a line like
  173.  
  174. /usr/etc/ntp -s -f <hostname> >/dev/null
  175.  
  176. in /private/adm/daily
  177. --
  178. Thomas Traexler  Email:
  179. TH-Darmstadt     thomas@arnold.fkp.physik.th-darmstadt.de  (NeXTmail)
  180. Institut fuer      dd3i@mvs.hrz.th-darmstadt.de        (non NeXTmail)
  181. Festkoerperphysik
  182. -----------------------------------------------------
  183.  
  184. I have tried these:
  185.  
  186. /usr/etc/ntp -s -f <hostname> >/dev/null
  187.  and
  188. /usr/ucb/rdate some-reliable-machine
  189.  
  190. my /etc/crontab file looks like this:
  191.  
  192. 0  0 * * *      root    /usr/dialupip/bin/slipup
  193. 5  0 * * *      root    /usr/etc/ntp -s -f 129.82.104.36 > /dev/null
  194. 10 0 * * *      root    /usr/dialupip/bin/slipdown
  195.  
  196. I have to set up and take down the SLIP connection because I have the
  197. timeout time set to some really large number...
  198.  
  199.  
  200. well, there ya go, and thanks for all the help.
  201.  
  202. -nate sammons
  203.  ns111310@longs.lance.colostate.edu
  204.