1847254 Members
4235 Online
110263 Solutions
New Discussion

Re: NTP sync

 
Martin Robinson
Frequent Advisor

NTP sync

How do I get my NTP clients to sync with a new ntp server?
9 REPLIES 9
Jeff Machols
Esteemed Contributor

Re: NTP sync

make sure the daemon is running. You can start it by running
/sbin/init.d/xntp start

. If you made a change to the configuration and the processes is up, you will need to stop, and restart it

Anthony deRito
Respected Contributor

Re: NTP sync

Check out SAM. Also the file you are interested in is /et/ntp.conf. It should look something like this:

server nnn.nnnn.nnn.nnn
peer host1.ctxix.sod.eds.com version 3
peer host2.ctxix.sod.eds.com version 3
peer host3.ctxix.sod.eds.com version 3
Sridhar Bhaskarla
Honored Contributor

Re: NTP sync

Hi Robert,

In /etc/ntp.conf, place the entry

server your_ntp_server version 3 prefer
server secondary_ntp_server version 3

The second line is only if you have a secondary ntp server.

Then edit /etc/rc.config.d/netdaemons

export NTPDATE_SERVER=your_ntp_server
export XNTPD=1

Then run /sbin/init.d/xntpd start

This should bring up xntpd and will continue to sync with your_ntp_server

-Sri
You may be disappointed if you fail, but you are doomed if you don't try
Uday_S_Ankolekar
Honored Contributor
Deshpande Prashant
Honored Contributor

Re: NTP sync

HI
On ntp clients add the NTP server address in /etc/ntp.conf file

##--
server minpoll 6 prefer
server minpoll 6
#
Restart ntp services on client.
Run ntpdate command on client first time to adjust the time before starting ntp daemon.
#ntpdate -v

Here is link to NTP configuration.
http://us-support2.external.hp.com/cki/bin/doc.pl/sid=fa4ac23210653b7bfc/screen=ckiDisplayDocument?docId=2000000398763127cNTP&queryid=20011212-074327

Thanks.
Prashant.
Take it as it comes.
James R. Ferguson
Acclaimed Contributor

Re: NTP sync

Hi Robert:

Just because no one has explictly stated it, I'm going to do so:

After you have editted '/etc/ntp.conf' to point to your new server(s), stop and then (re)start the 'ntpd' daemon as:

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

Regards!

...JRF...
fg_1
Trusted Contributor

Re: NTP sync

Robert

These are the 2 servers that we are syncing from. So far we haven't had any issues with these.

server ntp.ctr.columbia.edu prefer
server ntp.ctr.columbia.edu

Perform the following steps to start & stop NTPD.

1) /sbin/init.d/xntpd stop
2) /sbin/init.d/xntpd start




Roger Baptiste
Honored Contributor

Re: NTP sync

hi,

and to confirm whether it is running fine, run
#ntpq -p
remote refid st t when poll reach delay offset disp
==============================================================================
*due.com gpclock01.net. 2 u 726 1024 377 1.30 -0.471 0.41

The * in the first column shows it works fine.

-raj
Take it easy.
Sachin Patel
Honored Contributor

Re: NTP sync

As everone says but if your time is too far from server's time then you need ntpdate.

ntpdate -d servername (this will test that ntpdate will run or not.)

Sachin
Is photography a hobby or another way to spend $