LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
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, 08: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, 08:48 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974
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, 01: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, 03:12 AM   #4
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974
you're not synced then. show us the output.
 
Old 12-09-2013, 03: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 03:20 AM.
 
Old 12-09-2013, 03:36 AM   #6
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974
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, 03: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 05:37 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
ntp server keeps on changing time-local ntp server Gil@LQ Linux - Newbie 3 01-23-2013 10: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 08:35 PM
NTP cannot work with timeserver, NTP-d can jerryvapps Linux - Networking 0 08-04-2004 03:04 PM


All times are GMT -5. The time now is 08:11 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration