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:

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 XNTPD=1
export XNTPD_ARGS=

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

vi /etc/TIMEZONE

export TZ

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

vi /etc/ntp.conf

driftfile /etc/ntp.drift

Start the service:

/sbin/init.d/xntpd start


ntpq -p
ps -ef | grep xntpd

Error Logs:

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