1833714 Members
2211 Online
110063 Solutions
New Discussion

Time Sync

 
Gary Jackson_6
New Member

Time Sync

How can I sync the time on 2 HP9000 K systems?
4 REPLIES 4
David Anderson_18
New Member

Re: Time Sync

The best way is xntpd. The man pages have the details. The best way is to use
the daemon during run time and ntpdate only at boot, which may already be in
your config files depending which version you are using of HP-UX. You can also
synchronize xntpd out to the internet so you should never have to set the
date/time again.

First, enable NTP at boot time in the /etc/rc.config.d/netdaemons file. Go to
the section called "xntp configuration" and follow the instruction including
setting up a /etc/ntp.conf file.
Gary Jackson_6
New Member

Re: Time Sync

Dave, can you be more specific? I'm running HP-UX 10.20 on a HP9000 800 series
K system.
Paul Winchcombe_1
Occasional Advisor

Re: Time Sync

If you don't have any external time source to sync to. Then try following on
Server A

/etc/ntp.conf should look something like
server 127.127.1.1

Then start /usr/sbin/xntpd daemon on Server A

If you run ntpq -p you should see that the xntpd is running.

On Server B run ntpdate -b ServerA_ipaddress (this will step Server B time to
Server A's time - do this in downtime)

On Server B vi /etc/ntp.conf
peer Server_A_ip_address

Then run /usr/sbin/xntpd running ntpq -p on Server B should show that it has
found Server A as a time source.

When Server B has selected Server A as a time source it will place a + at the
beginning of the line.

This is all from memory and I am sorry if there are mistakes, I currently have
not access to a test machine to confirm procedure.

Be sure to vi /etc/rc.config.d/netdaemons to make changes permanent.

Regards

Paul
Nancy Hubert_1
Advisor

Re: Time Sync

Gary,

for more documentation on NTP, you can go on http://docs.hp.com

Click on HP-UX 10.X Release Documentation
then select -> Networking and communications topic.

Look for the manual "Internet Services, Installing and Administering for HP-UX
10.20"

The Chapter 8 is "Configuring NTP".

Nancy