Operating System - HP-UX
1832235 Members
2861 Online
110041 Solutions
New Discussion

Re: ntp config - small HPUX environment

 
SOLVED
Go to solution
Daniel Neeves
Advisor

ntp config - small HPUX environment

I have five hpux 11i servers one of which (serverA) has access to the web to sync it's time with pool.ntp.org, question is how do I sync the time of the other four servers when serverA is not available. My idea to sync the clients time is (etc.ntp.conf):

server serverA prefer
server 127.127.1.1
fudge 127.127.1.1 stratum 10
driftfile /etc/ntp.drift

Which will sync time with serverA unless it's not available in which case the client will sync with it's own local clock, Will this work? Or does anyone have any better ideas?
Like Ya Know !!
6 REPLIES 6
RAC_1
Honored Contributor

Re: ntp config - small HPUX environment

Your setup seems fine. Go ahead. I do not see any issues with it.
There is no substitute to HARDWORK
Bill Hassell
Honored Contributor
Solution

Re: ntp config - small HPUX environment

This is exactly the techinque and can be extended to your primary NTP server. Just put the 4 or 5 NTP server names into the primary server's ntp.conf file and add the 127.127.1.1 entries. The primary server will not drift very much in case the Internet servers are unreachable and once the connection is reestablished, the clock will be slowly adjusted to establish a good sync. (note: 4-5 Internet servers is always recommended. The NTGP software will sort out the exact time among the multiple sources using a complex algorithm)


Bill Hassell, sysadmin
Daniel Neeves
Advisor

Re: ntp config - small HPUX environment

Many thanks Guys, Bill do you mean the Primary server is to look like this :

server 0.uk.pool.ntp.org
server 1.uk.pool.ntp.org
server 2.uk.pool.ntp.org
server 127.127.1.1
fudge 127.127.1.1 stratum 10
driftfile /etc/ntp.drift

Cheers
Like Ya Know !!
Patrick Wallek
Honored Contributor

Re: ntp config - small HPUX environment

I *think* that is exactly what Bill is saying.

The one thing I would do differnet is use NTP servers from different sources on the internet. If one source has its connection go down, you've still got other available to you.
Bill Thorsteinson
Honored Contributor

Re: ntp config - small HPUX environment

use the peer command. This will keep all
tour servers in sync with all the other
servers they can connect to.

peer serverA prefer
peer serverB
peer serverC
peer serverD

server 127.127.1.1
fudge 127.127.1.1 stratum 10

# For use on internet connected server(s) only.
# Use your dns servers for time
server DNS1
server DNS2
server pool.ntp.org
Daniel Neeves
Advisor

Re: ntp config - small HPUX environment

Cheers Guys, Went with what I had adding the local entry to my primary server as per Bill's comments.
Like Ya Know !!