cancel
Showing results for 
Search instead for 
Did you mean: 

NTP configuration

DHINESHBABU
Advisor

NTP configuration

i had configured NTP server with following configurations.

#ntp.conf

server 124.41.84.72 # external server(stratum 1)
server 127.127.1.1

will it work properly...
10 REPLIES
johnsonpk
Honored Contributor

Re: NTP configuration

Hi Dhinesh,

Check the ntp service
#ps -ef |grep -i xntpd

check the synchronization of ntp with server

#ntpq -p


Rgds
Johnson
B. Hulst
Trusted Contributor

Re: NTP configuration

and are you able to ping the 124.41.84.72 server?

and check the system log file for regular NTP daemon messages..
DHINESHBABU
Advisor

Re: NTP configuration

what my question is, i add external ntp server and, local clock.is it recommended to configure like this..
Basheer_2
Trusted Contributor

Re: NTP configuration

Yes,
we always had an external source or windows machine as our primary ntp server.

you can also configure one of your unix box as the ntp server and all others as the clients

this is my ntp.conf (unix)
driftfile /etc/ntp.drift
broadcast 10.200.207.255 version 3
broadcastdelay 86400
server 127.127.1.1
fudge 127.127.1.1 stratum 10
RajuD
Frequent Advisor

Re: NTP configuration

Hi Dinesh,

Configuration are correct? are you facing any issue.

Please check in server
/var/adm/syslog/syslog.log file for any error.

Also check in client

#ntpq -p

and check for offest column whether it is synching with source server.

if your facing issue post the output of ntpq from client and syslog message from server.
“Education is our passport to the future, for tomorrow belongs to those who prepare for it today.”
DHINESHBABU
Advisor

Re: NTP configuration

Sync lost, synced .. message in syslog in every min.... in server and all clients

Asif Sharif
Honored Contributor

Re: NTP configuration

Bill Hassell
Honored Contributor

Re: NTP configuration

> sync lost...

What does the command:

ntpq -p 124.41.84.72

If it fails, you cannot contact the NTP server. You need to determine if the NTP server is working, is not blocked by network routers and will accept a sync request. Until nptq works, you won't be able to sync to that server.


Bill Hassell, sysadmin
Suraj K Sankari
Honored Contributor

Re: NTP configuration

Hi,

What is the output of
ntpq -p

For more info see the below link "Troubleshooting NTP"

http://docs.hp.com/en/B2355-91060/ch04s03.html

Suraj
rick jones
Honored Contributor

Re: NTP configuration

It is best to configure multiple (min 3) otherwise independent time sources. When selecting these time sources, please be certain to have the systems' owners' permission to query them - sometimes that is stated explicitly, sometimes not. I suspect there is a great deal at www.ntp.org about time server selection ettiquette.
there is no rest for the wicked yet the virtuous have no pillows