LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 12-06-2013, 07:34 AM   #1
sachin.davra
Member
 
Registered: Jul 2013
Posts: 213

Rep: Reputation: Disabled
ntp


how to know if my computer is being syncing with ntp server or not.
 
Old 12-06-2013, 07:48 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
run "ntpq -pn" and look for an entry marked with *'s:
Code:
     remote           refid      st t when poll reach   delay   offset  jitter
==============================================================================
*10.101.168.249  172.16.83.1      4 u   83 1024  377    1.515   -1.777   0.284
 
Old 12-09-2013, 12:56 AM   #3
sachin.davra
Member
 
Registered: Jul 2013
Posts: 213

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by acid_kewpie View Post
run "ntpq -pn" and look for an entry marked with *'s:
Code:
     remote           refid      st t when poll reach   delay   offset  jitter
==============================================================================
*10.101.168.249  172.16.83.1      4 u   83 1024  377    1.515   -1.777   0.284
I can't * on any of the entry where i have configured NTP.
 
Old 12-09-2013, 02:12 AM   #4
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
you're not synced then. show us the output.
 
Old 12-09-2013, 02:16 AM   #5
sachin.davra
Member
 
Registered: Jul 2013
Posts: 213

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by acid_kewpie View Post
you're not synced then. show us the output.
Below output is of one pc

Quote:
[root@GAIDL-5001 ~]# ntpq -pn
remote refid st t when poll reach delay offset jitter
==============================================================================
120.88.47.10 .INIT. 16 u - 1024 0 0.000 0.000 0.000
[root@GAIDL-5001 ~]
Below output is of second pc

Quote:
[sachin.davra@GAIDL-5015 ~]$ ntpq -pn
remote refid st t when poll reach delay offset jitter
==============================================================================
120.88.46.10 103.1.106.69 2 u 83m 1024 20 22.645 408.725 0.518
[sachin.davra@GAIDL-5015 ~]$

Last edited by sachin.davra; 12-09-2013 at 02:20 AM.
 
Old 12-09-2013, 02:36 AM   #6
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
OK, so for the first, the "16" number means that the remote server isn't responding / is unreachable on the network.

For the second, less immediately obvious. Stop the NTP service and run "ntpdate -d 120.88.46.10" to see the debug about the decision to use that server.
 
1 members found this post helpful.
Old 12-09-2013, 02:55 AM   #7
sachin.davra
Member
 
Registered: Jul 2013
Posts: 213

Original Poster
Rep: Reputation: Disabled
It was blocked in firewall. thnx for your time.

Last edited by sachin.davra; 12-09-2013 at 04:37 AM.
 
  


Reply



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 02:37 PM
[SOLVED] NTP configuration in client to synchronize with NTP server. antnish Linux - General 12 04-01-2013 01:49 PM
ntp server keeps on changing time-local ntp server Gil@LQ Linux - Newbie 3 01-23-2013 09:33 AM
ntp drift file in /etc/ntp instead of /var/lib/ntp - suggestion for a patch in Slack niels.horn Slackware 16 05-07-2009 07:35 PM
NTP cannot work with timeserver, NTP-d can jerryvapps Linux - Networking 0 08-04-2004 02:04 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 02:21 PM.

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
Open Source Consulting | Domain Registration