/contrib/ntp/html/build/hints/hpux

https://bitbucket.org/freebsd/freebsd-head/ · #! · 158 lines · 122 code · 36 blank · 0 comment · 0 complexity · d9d8162e174495e30eda1d74c3960c94 MD5 · raw file

  1. Last update: Sun Mar 13 15:05:31 PST 1994
  2. This file hopefully describes the whatever and however of how to get xntp
  3. running on hpux 7.0 and later s300. s400, s700, and s800.
  4. First off, all the standard disclaimers hold here ... HP doesn't have anthing
  5. to do with this stuff. I fool with it in my spare time because we use it and
  6. because I like to. We just happen to have a lot of HP machines around here :-)
  7. Xntpd has been in use here for several years and has a fair amount of mileage
  8. on various HP platforms within the company. I can't really guarantee bug fixes
  9. but I'd certainly like to hear about bugs and I won't hestitate to look at
  10. any fixes sent to me.
  11. Now lets talk OS. If you don't have 7.0 or later, pretty much hang it up now.
  12. This stuff has run here on pretty much everything from 8.0 upward on s300,
  13. s700, and s800. It is known to run on 7.0 s300/s400 but all reports are
  14. from the field and not my personal experience.
  15. If you are lucky enough to have a s300 or s400 with 9.03, then you no longer
  16. have to worry about adjtimed as HP-UX now has adjtime(2). The rest of you
  17. will have to wait on 10.0 which will have adjtime(2) and a supported though
  18. a bit older version of xntpd.
  19. Next, let me explain a bit about how this stuff works on HP-UX's that do not
  20. have adjtime(2). The directory adjtime contains libadjtime.a and the adjtimed
  21. daemon. Instead of the adjtime(2) system call, we use a library routine to
  22. talk to adjtimed thru message queues. Adjtimed munges into /dev/kmem and
  23. causes the clock to skew properly as needed. PLEASE NOTE that the adjtime
  24. code provided here is NOT a general replacement for adjtime(2) ... use of
  25. this adjtime(3)/adjtimed(8) other than with xntpd may yield very odd results.
  26. What to do to get this stuff running ?
  27. * If you are running an OS less than 10.0 or do not have a s300/s400
  28. with 9.03 or better
  29. -> cd machines
  30. -> vi hpux
  31. -> (change -DSYS_HPUX=? to match whatever you are running [7,8,9])
  32. -> cd ..
  33. * Say "make makeconfig"
  34. * Say "make", sit back for a few minutes.
  35. * cd authstuff
  36. * Say "./authcert < certdata" and check the output. Every line should
  37. end with "OK" ... if not, we got trouble.
  38. * Now try "./authspeed auth.samplekeys". What we want to
  39. remember here is the "authentication delay in CPU time"
  40. * cd ..
  41. * Say "make install"
  42. * I'd suggest reading the xntp docs about now :-) ... seriously !!
  43. * One thing I have added to this version of xntpd is a way to select
  44. config files if you are sharing /usr/local thru NFS or whatever.
  45. If the file /usr/local/etc/xntp.conf happens to be a directory, the
  46. files in that directory are searched until a match is found. The
  47. rules for a match are:
  48. 1. Our hostname
  49. 2. default.<machine id> (as in default.375 or default.850)
  50. 3. default
  51. * Ok, make sure adjtimed is running (just start it up for now with
  52. "/usr/local/etc/adjtimed"). Using -z as an option will get you
  53. a usage message.
  54. * Now start up xntpd and watch it work.
  55. * Make sure that adjtimed gets started at boot right before xntpd.
  56. We do this in /etc/netbsdsrc. They must both run as root !!
  57. Possible problems ?
  58. * On some 320's and 835's we have had to run adjtimed with "-p 45" or
  59. so to get rid of syslog messages about "last adjust did not finish".
  60. * At 9.0, there is a problem with DIAGMON (patch available from the
  61. response center) which causes it to delete the message queue that
  62. adjtimed/xntpd use to communicate. (see next note for result)
  63. * Xntpd has been known to get really ticked off when adjtime() fails
  64. which is usually only while running the emulation code on HP-UX.
  65. When it gets mad, it usually jumps the clock into never never land.
  66. Possible reasons for this are adjtimed being killed or just never
  67. started or adjtimed being completely swapped out on a really busy
  68. machine (newer adjtimed try to lock themselves in memory to prevent
  69. this one).
  70. Anything else ... just drop me a line at ken@sdd.hp.com
  71. Received: from louie.udel.edu by huey.udel.edu id aa14418; 15 Jun 95 9:19 EDT
  72. Received: from host5.colby.edu (host-05.colby.edu) by host-04.colby.edu with ESMTP (1.37.109.15/Colby 1.1)
  73. id AA165442355; Thu, 15 Jun 1995 09:19:16 -0400
  74. Received: by host5.colby.edu (1.37.109.15/Colby 1.1)
  75. id AA056252339; Thu, 15 Jun 1995 09:18:59 -0400
  76. Date: Thu, 15 Jun 1995 09:18:59 -0400 (EDT)
  77. From: "Jeff A. Earickson" <jaearick@colby.edu>
  78. To: Mills@huey.udel.edu
  79. Subject: More minor bugs in xntp3.4s
  80. In-Reply-To: <9506150022.aa12727@huey.udel.edu>
  81. Message-Id: <Pine.HPP.3.91.950615083549.4557A-100000@host5.colby.edu>
  82. Mime-Version: 1.0
  83. Content-Type: TEXT/PLAIN; charset=US-ASCII
  84. Dave,
  85. After reading the hpux hints file, I realized I didn't install or
  86. start adjtimed. In the course of doing this, I discovered that:
  87. --> $(TOP) is not defined in adjtime/Makefile, so "make install" can't
  88. find the install.sh script.
  89. --> "make install" from the main Makefile never goes into the adjtime
  90. directory, so I added the following two lines into the install
  91. target of the main Makefile:
  92. @echo installing from adjtime
  93. @cd adjtime && $(MAKE) $(MFLAGS) MFLAGS="$(MFLAGS)" MAKE="$(MAKE)" install
  94. This twiddle may not be right for all systems, but it got adjtimed
  95. installed for me.
  96. You might also want to add to the hpux hints file that one way to
  97. fire things up at boot time is to add the following lines to the localrc
  98. function of /etc/rc:
  99. #---daemons for Network Time Protocol (version 3.4s)
  100. #---note that adjtimed is only needed for HP-UX 9.X, not 10.0
  101. #---adjtimed must be running or xntpd won't work right...
  102. if [ -x /usr/local/bin/adjtimed ]; then
  103. /usr/local/bin/adjtimed -r & echo -n ' adjtimed'
  104. if [ -x /usr/local/bin/xntpd ]; then
  105. /usr/local/bin/xntpd & echo -n ' xntpd'
  106. fi
  107. fi
  108. I discovered that the "-r" option of adjtimed is needed to clear out any
  109. trash from a previous execution of it. Otherwise adjtimed quietly dies
  110. and leaves xntpd in the lurch...
  111. Thanks for the help.
  112. ** Jeff A. Earickson, Ph.D PHONE: 207-872-3659
  113. ** Senior UNIX Sysadmin, Information Technology EMAIL: jaearick@colby.edu
  114. ** Colby College, 4214 Mayflower Hill, FAX: 207-872-3555
  115. ** Waterville ME, 04901-8842
  116. On Thu, 15 Jun 1995 Mills@huey.udel.edu wrote:
  117. > Jeff,
  118. >
  119. > Read the hpux file in the hints directory.
  120. >
  121. > Dave
  122. >