HP-UX Internet Services Administrator's Guide (February 2007)

Configuring Your Primary NTP Server
The following steps describe how to configure the primary NTP server:
1. Install the latest version of NTP on the system.
2. Select a source of time: radio receivers, public time server or local NTP system.
3. Add the server name to the file /etc/ntp.conf using the following command:
server my_server.mydomain.my_org.com
my_server.mydomain.my_org.comis the complete name of the server.
4. Specify the time source and add its information to the configuration file.
For Radio Receivers:
a. Uncomment the following fudge line found at the end of the file
/etc/ntp.conf server 127.127.26.1.
#fudge 127.127.26.1 time1 -0.955
b. Make a link to the device file that corresponds to the serial port you are
connecting to the GPS unit by typing the following: /usr/bin/ln -s
/dev/tty0p0 /dev/hpgps1(device name for HP GPS)
For the local NTP Machine, add the following lines at the end of the
/etc/ntp.conf file:
server 127.127.1.1
fudge 127.127.1.1 stratum 10
Create a link to the device file that corresponds to the serial port you are
connecting to the GPS unit by adding the following line to the device file:
/usr/bin/ln -s /dev/tty0p0 /dev/hpgps1
Use this option only when NTP is used in an isolaed environment without a
radio clock, NIST modem or Internet connection. You can also use this if a
particular server clock will be used as a last resort, when all other normal
synchronization sources are not availiable.
5. Start the NTP daemon using the following steps:
a. 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.
b. Set the XNTPD variable to 1.
This starts the daemon automatically when the system transitions from level
1 to 2.
58 Configuring NTP