Short and sweet NTP configuration for HPUX

Our requirement is for Unix to get time from Windows Domain controllers.  This is not the most accurate time source in the world, but to do anything else could cause drift between windows and Unix.

This is for my reference.  For much more detailed instruction, check out Greg Porters blog post:  http://greg.porter.name/wordpress/?p=496

IP addresses are made up.  Use your own, or this wont work.  If you don’t know what addresses to use, your going to need a much better tutorial than I care to write.  This could be improved by adding peers.

Under xntp configuration section of:
vi /etc/rc.config.d/netdaemons

export NTPDATE_SERVER=’192.168.10.10 192.168.10.11′
export XNTPD=1
export XNTPD_ARGS=

Validate that timezone is correct. Ill shown mine as an example, which is Central time:

vi /etc/TIMEZONE

TZ=CST6CDT
export TZ

Define servers, driftfiles, and peers in ntp.cofn:

vi /etc/ntp.conf

server 192.168.10.10
server 192.168.10.11
driftfile /etc/ntp.drift

Start the service:

/sbin/init.d/xntpd start

Validate:

ntpq -p
ps -ef | grep xntpd

Error Logs:

tail -f /var/adm/syslog/syslog.log