LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 12-19-2014, 12:01 AM   #1
sagar666
Member
 
Registered: Feb 2013
Posts: 212

Rep: Reputation: Disabled
ntp client is not syncing with ntp server time


Hi
NTP client is not syncing with ntp server time.

ntpq output

ntpq -pn vncin3
ntp1.pointone.com: timed out, nothing received
***Request timed out

ntpdc output

ntpdc> peers
remote local st poll reach delay offset disp
=======================================================================
*ntp1.pointone 10.193.180.101 3 64 7 0.00014 -0.003961 0.04138

ntpstat output

synchronised to NTP server (10.193.182.23) at stratum 4
time correct to within 554 ms
polling server every 64 s

Below is ntp conf file

# For more information about this file, see the man pages
# ntp.conf(5), ntp_acc(5), ntp_auth(5), ntp_clock(5), ntp_misc(5), ntp_mon(5).

driftfile /var/lib/ntp/drift

# Permit time synchronization with our time source, but do not
# permit the source to query or modify the service on this system.
restrict default kod nomodify notrap nopeer noquery
restrict -6 default kod nomodify notrap nopeer noquery

# Permit all access over the loopback interface. This could
# be tightened as well, but to do so would effect some of
# the administrative functions.
restrict 127.0.0.1
restrict -6 ::1
# Hosts on local network are less restricted.
#restrict 192.168.1.0 mask 255.255.255.0 nomodify notrap

# Use public servers from the pool.ntp.org project.
# Please consider joining the pool (http://www.pool.ntp.org/join.html).
#server 0.rhel.pool.ntp.org iburst
#server 1.rhel.pool.ntp.org iburst
#server 2.rhel.pool.ntp.org iburst
#server 3.rhel.pool.ntp.org iburst


#broadcast 192.168.1.255 autokey # broadcast server
#broadcastclient # broadcast client
#broadcast 224.0.1.1 autokey # multicast server
#multicastclient 224.0.1.1 # multicast client
#manycastserver 239.255.254.254 # manycast server
#manycastclient 239.255.254.254 autokey # manycast client

# Undisciplined Local Clock. This is a fake driver intended for backup
# and when no outside source of synchronized time is available.
#server 127.127.1.0 # local clock
#fudge 127.127.1.0 stratum 10

# Enable public key cryptography.
#crypto

includefile /etc/ntp/crypto/pw

# Key file containing the keys and key identifiers used when operating
# with symmetric key cryptography.
keys /etc/ntp/keys

# Specify the key identifiers which are trusted.
#trustedkey 4 8 42

# Specify the key identifier to use with the ntpdc utility.
#requestkey 8

# Specify the key identifier to use with the ntpq utility.
#controlkey

# Enable writing of statistics records.
#statistics clockstats cryptostats loopstats peerstats
server 10.193.182.23 iburst
#server ntp2 iburst
~

Why it is not syncing? please help me out
 
Old 12-19-2014, 05:12 AM   #2
michaelk
Moderator
 
Registered: Aug 2002
Posts: 19,513

Rep: Reputation: 3133Reputation: 3133Reputation: 3133Reputation: 3133Reputation: 3133Reputation: 3133Reputation: 3133Reputation: 3133Reputation: 3133Reputation: 3133Reputation: 3133
Quote:
remote local st poll reach delay offset disp
=======================================================================
*ntp1.pointone 10.193.180.101 3 64 7 0.00014 -0.003961 0.04138

ntpstat output

synchronised to NTP server (10.193.182.23) at stratum 4
time correct to within 554 ms
polling server every 64 s
The leading asterisk and the output of ntpstat do indicate you are synced to your server. If the system clock is not displaying the correct time it could mean your timezone or hardware clock reference are not set correctly.
 
Old 12-19-2014, 05:25 AM   #3
sagar666
Member
 
Registered: Feb 2013
Posts: 212

Original Poster
Rep: Reputation: Disabled
Hi Michaelk,

Both are syncing correctly.

hwclock
Fri 19 Dec 2014 03:49:24 PM IST -0.219134 seconds
date
Fri Dec 19 15:49:49 IST 2014
ntpq
ntpq> peers
remote refid st t when poll reach delay offset jitter
==============================================================================
*ntp1.pointone 10.192.160.25 3 u 397 512 377 0.183 1.515 0.066

ntpq -pn ntp1 showing

ntp1.pointone.com: timed out, nothing received
***Request timed out

Why?
 
Old 12-19-2014, 05:47 AM   #4
michaelk
Moderator
 
Registered: Aug 2002
Posts: 19,513

Rep: Reputation: 3133Reputation: 3133Reputation: 3133Reputation: 3133Reputation: 3133Reputation: 3133Reputation: 3133Reputation: 3133Reputation: 3133Reputation: 3133Reputation: 3133
Quote:
ntpq -pn hostname
Is trying to find the list of peers for the time server not your computer. So the command fails since administration access is limited to the server itself. ntpq -pn without a hostname or you can use localhost prints the same information that the peers command does when using ntpq interactively.

Last edited by michaelk; 12-19-2014 at 05:54 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
NTP client is not syncing to ntp server LittleMaster Linux - Newbie 6 04-05-2013 03:37 PM
[SOLVED] NTP configuration in client to synchronize with NTP server. antnish Linux - General 12 04-01-2013 02:49 PM
How to make my system time to sync with ntp server without using client software? ybsshweta Linux - Newbie 14 01-30-2013 07:24 AM
ntp server keeps on changing time-local ntp server Gil@LQ Linux - Newbie 3 01-23-2013 10:33 AM
Ntp time syncing problem when booting shan_nathan Linux - Desktop 1 11-23-2007 08:51 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 12:13 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration