home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / comp / protocol / time / ntp / 1115 < prev    next >
Encoding:
Text File  |  1992-12-21  |  5.9 KB  |  162 lines

  1. Newsgroups: comp.protocols.time.ntp
  2. Path: sparky!uunet!cs.utexas.edu!tamsun.tamu.edu!inetg1!news
  3. From: Matt Mannhardt <lasmtm@Arco.COM>
  4. Subject: Re: xntpd and timed
  5. Message-ID: <1992Dec18.175438.16954@Arco.COM>
  6. Sender: news@Arco.COM
  7. Organization: ARCO Alaska, Inc.
  8. X-Useragent: Nuntius v1.1a2
  9. References: <1992Dec17.145434.199386@ipgaix.unipg.it>
  10. Date: Fri, 18 Dec 1992 17:54:38 GMT
  11. Lines: 149
  12.  
  13. >We are currently using <timed> on our (still little,
  14. >but growing) network. We are planning to start to use 
  15. >xntpd.
  16. >
  17. >May I suppose that I have to stop timed on all the machines
  18. >where I'm going to start xntpd? May they coexist in some way?
  19.  
  20. I have been looking into this question myself because of being in a
  21. sum-what
  22. similar position and I am interested in other peoples experiences.  We
  23. have a 
  24. mix of Apollos, DEC, IBM, and a few HP's totaling to about 175
  25. workstations. 
  26. Traditionally, we were running 'timed' on the 60+ Apollos (the oldest
  27. platform 
  28. in the network) and when the DEC's and IBM's came, well 'timed' seemed to
  29. work.
  30.  
  31. Then the DEC Sys Admin boys found out that NTP version 1 was also readily
  32. availible
  33. in Ultrix and that the Internet gateway at our sister-division was a
  34. stratum 2
  35. ntp server.  They broke off this summer and went with 'ntpd' instead of
  36. 'timed'. 
  37. This didn't hurt too much as there is no NFS to/from the DEC's and the
  38. other 
  39. UNIX platforms.  Several months ago I had the pleasure of acquiring
  40. several HP 700's.
  41. HP/UX, however, had no 'timed' or 'ntp' availible with the OS and I was
  42. planning on
  43. tying them into the AIX platform under a single NIS server, NFS,
  44. automount and the
  45. like. Humm, the clocks weren't in sync and most any NFS 'how-to-do-it"
  46. book will
  47. tell you that they really should be!  
  48.  
  49. The HP Sys Engineer recommended I look into 'xntpd' (NTP version 2)
  50. because one of
  51. the HP internals programmers had hacked a fix to xntp to solve HP/UX's
  52. lack of a 
  53. 'adjtime' system call.  It was pretty straight forward to compile and
  54. install xntp
  55. for the HP/UX once I realized that the HP hack ment that the 'adjtimed'
  56. daemon had
  57. to be running along with 'xntp'.  I pointed the HP's to one of the DEC's
  58. running
  59. 'ntpd' (note that you run a v2 ntp and are pointing to a v1 ntp as a peer
  60. or server,
  61. you will need to modify your peer/server statement in your /etc/ntp.conf
  62. file.).
  63.  
  64. Well that got my HP's time sync'd to the DEC's and the real UTC time but
  65. I was doing
  66. NFS to the IBM's and Apollos which were still of in their own (timed)
  67. world happily
  68. deciding amoungst themselves what the "real time" should be. It never
  69. quite came close
  70. to the workstations running ntp or my watch which I was setting to WWV
  71. via my Ham 
  72. radio. 
  73.  
  74. My original thought was to compile xntp for the AIX and Apollo's which I
  75. have now done 
  76. with some difficulty. (I won't bore you with those details right now.) My
  77. problem was
  78. now figuring out how I wanted to go about converting all my 60+ Apollos 
  79. and 10+ IBM's
  80. from 'timed' to 'xntpd'. (very depressing, when looking at my over-loaded
  81. plate of 
  82. Sys Admin chores.)  I was pouring over man pages trying to figure out how
  83. xntp and it's
  84. utilities worked and trying to monitor the 'xntpd' daemons I had running
  85. on several of
  86. the Apollos, IBMs, and HP's when I noticed that I had inadvertently
  87. killed all my 
  88. potential 'timed' masters!  Having recently upgraded the OS on one of my
  89. Apollo servers
  90. (to OS SR10.4) I quickly looked a the 'timed' man page and noticed a new
  91. option to the
  92. 'timed' daemon.  There was a '-a' option which read: 
  93.  
  94.     "...Normally, the master time daemon works democratically and will
  95. let itself
  96.      be out-voted if necessary by participating nodes.  The -a
  97. (autocratic)
  98.      option over-rides this behavior and prevents the master time daemon
  99. from
  100.      being influenced by slave daemons..."
  101.      
  102. I set the date on that server node using the 'ntpdate <server>' command
  103. and then fired
  104. off '/etc/timed -Ma'.  Then using both 'timedc', and the xntp utilities
  105. (and even the 
  106. ntp v1 utility [ntp] on the DEC's) I started to monitor the time all the
  107. systems I could.
  108. What a pleasant surprise to watch all my 'timed' clients come in sync to
  109. my '[x]ntpd'
  110. clients!  Over the days that followed I watch my 'timed' clients then
  111. ever-so-slowly 
  112. start to drift off. While in the shower one morning I had the brain-storm
  113. of running
  114. 'xntpd' on my 'timed -Ma' server!  If I read the 'man page' right,
  115. 'timed' shouldn't
  116. be trying to slew the clock " 'cause he's da master " and an autocratic
  117. one to boot in
  118. a 'timed' world. That should leave 'xntpd' on the same node free to do
  119. the 'adjtimed' 
  120. calls without contention from the 'timed'.  
  121.  
  122. Well seems to work for me! Well, at least for now. I haven't figured out
  123. how to setup 
  124. "dual timed/xntpd" backup server yet, and I haven't figured out how to
  125. set it up on 
  126. other than an Apollo running SR10.4 *FLASH* till just now when I looked
  127. at the Ultrix 
  128. man page for 'timed' and noticed a -E option which reads:
  129.  
  130.      -E   Overrides the input of slaves.  Use the -E flag in conjunction
  131. with
  132.           the -M flag.  It specifies that a master timed should not
  133. average
  134.           the times of the slaves to calculate the network time but should
  135.           distribute the time of its local host as the network time.  This
  136.           flag allows a master timed to distribute time to a network while
  137.           the network time is controlled by an outside agent such as the
  138. Net-
  139.           work Time Protocol.
  140.           
  141. ...so that makes Apollo and DEC the two platforms that have an autocratic
  142. option for
  143. 'timed'. AIX doesn't have that option and HP/UX doesn't even have a
  144. 'timed'.  I have
  145. yet to hit up "the gopher and archie" to see what 'timed' source is
  146. availible.
  147.  
  148. The end result is that I'll probably run a mix of 'timed' and 'xntp' with
  149. new installs
  150. going to 'xntp' (by adding the appropiate code to our "localization
  151. scripts" that we
  152. run for new installs) and leaving the current 'timed' clients as they are
  153. till their
  154. next OS upgrade.
  155.  
  156. Comments anyone?
  157.  
  158.  
  159. -Matt Mannhardt    - WL7CDE
  160.  
  161. - Any opinions in this posting are my own and not those of my employer.
  162.