1845350 Members
3003 Online
110244 Solutions
New Discussion

NTP on a HPUX 11.11

 
Paul Bertino
Frequent Advisor

NTP on a HPUX 11.11

I have never setup NTP. How do I do it?

 

 

P.S. This thread has been moevd from General to HP-UX > networking. - Hp forum moderator

4 REPLIES 4
James R. Ferguson
Acclaimed Contributor

Re: NTP on a HPUX 11.11

Hi Paul:

You can use SAM or you can configure '/etc/ntp.conf' manually. Chapter-7 of Installing & Administering Internet Services describes the procedure:

http://docs.hp.com/en/B2355-90685/index.html

You should use three (3) time sources. The internet "pool" is ideal:

server 0.us.pool.ntp.org
server 1.us.pool.ntp.org
server 2.us.pool.ntp.org

Regards!

...JRF...
A. Clay Stephenson
Acclaimed Contributor

Re: NTP on a HPUX 11.11

First, read /usr/share/doc/NTP_Primer.txt. Now read it again so that you know how to select a pool of good NTP servers.

Next edit /etc/ntp.conf and add these lines (or something similar after you have determined a good set of servers; these public-access servers are good for the US):

server0.us.pool.ntp.org
server1.us.pool.ntp.org
server2.us.pool.ntp.org
server 127.127.1.1 stratum 10 #localhost

Next edit the file, /etc/rc.config.d/netdaemons and make sure that XNTPD=1.

Now make sure that the current system time is within a minute or so of "real" time. Use the date command to change the system time if needed.

Finally,
/sbin/init.d/xntpd start

Declare victory.

If it ain't broke, I can fix that.
James George_1
Trusted Contributor

Re: NTP on a HPUX 11.11

Hi
configre â xntpdâ ( in /etc/netconf ) and make sure that its up and running to get the True time from NTS server . Make sure that time server â xntpdâ is properly configured and started generating loopstat statistics governed by the configuration file â /etc/ntp.confâ . A typical entry in configuration file â ntp.confâ should be as below

server minpoll 10
driftfile /etc/ntp.drift
authenticate no
statsdir /var/etc/ntp.stas/
statistics loopstats
filegen loopstats file loopstats type day enable
filegen loopstats file loopstats type day link enable
keys /etc/ntp.keys ( not everywhere !!!)



Loopstats file should exist in the location defined in the ntp.conf file. Do the following to create the file

mkdir /var/tmp/ntp/
touch /var/tmp/ntp/loopstats

and also edit /etc/rc.config.d/netdaemons to autostart â 1â and put the ntp server name IP as it appears in the ntp.conf file.

# /sbin/init.d/xntpd stop / start

# ntpq â p ( will give the info on time server.)

On successful configuration, xntpd (timeserver) should start generating the drift statistics in the file loopstats under the directory /var/tmp/ntp.

Rgds / James
forum is for techies .....heaven is for those who are born again !!
paolo barila
Valued Contributor

Re: NTP on a HPUX 11.11

-stop the daemon for a while if it's running:
# /sbin/init.d/xntpd stop

-verify connection with ntp sever:
# ntpdate -d ip_ntpserver

-initial clock alignment:
# ntpdate ip_ntpserver

-set ip ntp server
# vi /etc/ntp.conf # type one line:

server ip_ntpserver

-start daemon

# /sbin/init.d/xntpd start

-check
# ntpq -p

you should see after a few minutes a * near ntpserver line

-setup daemon autostart at boot

# vi /etc/rc.config.d/netdaemons
...
Export NTPDATE_SERVER=
Export XNTPD=1
Export XNTPD_ARGS=
...

that should be it

Paolo
share share share