System Administration
cancel
Showing results for 
Search instead for 
Did you mean: 

How to configure NTP client for Multiple NTP time servers

SOLVED
Go to solution
Md. Minhaz Khan
Super Advisor

How to configure NTP client for Multiple NTP time servers

In our Network, we have two NTP Time servers. Now we have to configure our HP-Minicomputer as NTP client.
How can we configure our NTP client for multiple time servers?? please help me.

Our server model are RP7420 and RP3440

Thanks
Minhaz
7 REPLIES
Andrew Rutter
Honored Contributor

Re: How to configure NTP client for Multiple NTP time servers

hi,

the answer lies in this thread!

http://forums11.itrc.hp.com/service/forums/questionanswer.do?threadId=500591

also good docs here for configuration of NTP

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

Andy
Ganesan R
Honored Contributor

Re: How to configure NTP client for Multiple NTP time servers

Hi,

You can add multiple server entries in /etc/ntp.conf file like below.

driftfile /var/lib/ntp/drift
server ntp1.abc.com version 3 prefer
server ntp2.abc.com version 3
Best wishes,

Ganesh.
rick jones
Honored Contributor

Re: How to configure NTP client for Multiple NTP time servers

One of the previously supplied links probably says this, but it bears repeating - it is best to have three or more time sources to allow the NTP "bad clock" algorithms to work.
there is no rest for the wicked yet the virtuous have no pillows
Johnny Damtoft
Regular Advisor

Re: How to configure NTP client for Multiple NTP time servers

Hi Minhaz,

First of all, you need to setup some general environment settings for your timezone. Hereafter you need to configure the ntp config and netdaemons files:

# vi /etc/TIMEZONE
TZ=MET-1METDST
export TZ

# vi /etc/ntp.conf
server your.timeserver.com version 3 prefer
server your.timeserver.com version 3

# vi /etc/rc.config.d/netdaemons
export XNTPD=1

If you try to do the above the â SAMâ way, you might get an error regarding some authentication file. This wors for me.

:: Ref. ::
http://www.knowledgeroot.com/hp-ux/general-hp-ux/how-to-enable-ntpxntpd-on-hp-ux/


--
Johnny Damtoft
Suraj K Sankari
Honored Contributor
Solution

Re: How to configure NTP client for Multiple NTP time servers

Hi,

At server: only need to set: the XNTPD variable to equal 1 in /etc/rc.config.d/netdaemon

Others parameter should keep it be blank.

run #/sbin/init.d/xntpd start

Wait. It could take up to 6 minutes for the xntpd daemon to start.

At client: must set all below parameter into /etc/ntp.conf:
export NTPDATE_SERVER='NTP server1 NTP server2'
export XNTPD=1
export XNTPD_ARGS=

broadcastclient yes
server NTP server
driftfile /etc/ntp.drift

run #ntpq -p

Suraj
newacct_who_dis
Occasional Visitor

Re: How to configure NTP client for Multiple NTP time servers

both of these links are dead... does anyone have an updated location? I think it may have valuable info for me as I work through NTP in my environment.

 

>>  original post:

Re: How to configure NTP client for Multiple NTP time servers

hi,

the answer lies in this thread!

http://forums11.itrc.hp.com/service/forums/questionanswer.do?threadId=500591

also good docs here for configuration of NTP

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

Andy
>>
Dennis Handly
Acclaimed Contributor

Re: How to configure NTP client for Multiple NTP time servers

>both of these links are dead

 

The ITRC link was to a previous version of the forum, the contents are there if you search.

The other is an obsolete doc location.  You might be able to find it if you knew the title.

http://h20565.www2.hpe.com/hpsc/doc/public/display?sp4ts.oid=3204147&docLocale=en_US&docId=emr_na-c02013567

https://community.hpe.com/t5/System-Administration/NTP-Reference/td-p/3007760