Author Topic: Setting up NTP Client HP-UX  (Read 1201 times)

Offline scotbuff

  • Sys Admin
  • UNIX User
  • *****
  • Posts: 174
  • Karma: +2/-0
    • View Profile
    • Scott.Buffington.me
Setting up NTP Client HP-UX
« on: September 25, 2007, 08:52:39 am »
1.  As root, create the file /etc/ntp.conf or /etc/inet/ntp.conf to reference NTP Pool Time Servers

Code: [Select]
# /etc/inet/ntp.conf SMB 9-24-2007
# sets up reference to NTP Pool Servers
#
driftfile /var/tmp/ntp/ntp.drift

server 0.pool.ntp.org  prefer
server 1.pool.ntp.org
server 2.pool.ntp.org
server pool.ntp.org
# end of /etc/inet/ntp.conf
 
2.  Edit the /etc/rc.config.d/netdaemons file.  Set the variable NTPDATE_SERVER equal to an NTP time server that is reachable, for example.
NTPDATE_SERVER=15.13.108.1
This will run the /usr/sbin/ntpdate command just before the NTP daemon is started, and bring your system clock close to the other server to start.
Set the XNTPD variable to 1.
This starts the daemon automatically when the system transitions from level 1 to 2.

3.  As root, start the xntp daemon:
# /sbin/init.d/xntpd     start
   
4.  As root, wait a few minutes and test for similar results:
# ntpq -p
Code: [Select]
     remote           refid      st t when poll reach   delay   offset    disp
==============================================================================
+Linux.com       ntp2.mmo.netnod  2 u    -   64   37   184.65    3.262  875.70
 cuba.esysmail.c 0.0.0.0         16 -    -   64    0     0.00    0.000 16000.0
*rupert.raggedst ntp0.bbc.co.uk   2 u    3   64   37   165.73    2.424  877.20
+lodju.welcomnet ntp2.sth.netnod  2 u    3   64   37   206.56    9.305  876.02
« Last Edit: October 13, 2009, 11:43:02 am by scotbuff »