Installing and Administering Internet Services
Chapter 7 297
Configuring the Network Time Protocol (NTP)
Getting Started with NTP
/usr/bin/ln -s /dev/tty0p0 /dev/hpgps1
(device name for HP GPS)
• For the Local NTP Machine, add the following line to the end of the
/etc/ntp.conf file:
server 127.127.1.1
fudge 127.127.1.1 stratum 10
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
Only use this option if NTP will be used in an isolated environment
with no radio clock, NIST modem or Internet connection available.
You can also use this if a particular server clock will be used as a last
resort, when all other normal synchronization sources have gone
away.
Step 9. Start the NTP daemon.
1. 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 very close to the other
server to start.
2. Set the XNTPD variable to 1.
This will cause the daemon to be started automatically when your
system makes the transition from run level 1 to 2.
3. Start the daemon using the startup script:
/sbin/init.d/xntpd start
4. Verify the daemon process is running. Type:
ps -ef | grep ntp
The line /usr/sbin/xntpd should appear in the list of running
processes.