Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 03-29-2012, 02:43 AM   #1
LQ Newbie
Registered: Mar 2012
Posts: 16

Rep: Reputation: 0
ntpd offset

what does negative offset value indicates in output of command "ntpq -p" ???
Old 03-29-2012, 03:04 AM   #2
LQ Guru
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 20 with Awesome WM
Posts: 6,805
Blog Entries: 1

Rep: Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295
Hi and welcome to LinuxQuestions,

The offset in NTP is an estimated average based on the synchronizations you made/make to the servers configured in your ntpd.conf file. If it's negative that means that your local time is lagging behind.

Looking forward to your participation in the forums. Have fun with Linux.

Kind regards,

1 members found this post helpful.
Old 03-29-2012, 03:28 AM   #3
LQ Newbie
Registered: Mar 2012
Posts: 16

Original Poster
Rep: Reputation: 0
Hey Eric
thanks for the reply, hope for the same response from every one.
Old 03-29-2012, 04:58 AM   #4
Satyaveer Arya
Senior Member
Registered: May 2010
Location: Palm Island
Distribution: RHEL, CentOS, Debian, Oracle Solaris 10
Posts: 1,415

Rep: Reputation: 305Reputation: 305Reputation: 305Reputation: 305
The offset is the difference between the local time and an estimate based on the weighted average of the best of the some of the last measurements made on the set of servers and peers chosen for disciplining the clock. Local time is the close estimate of true time whereas the offset is not that close estimate of the time on the other servers. Normally the local time is better estimate of true time even if the actual time is perfect on servers.
2 members found this post helpful.
Old 03-29-2012, 05:58 AM   #5
LQ Newbie
Registered: Mar 2012
Posts: 16

Original Poster
Rep: Reputation: 0
thanks Satyaveer
Old 03-16-2018, 01:44 PM   #6
LQ Newbie
Registered: Mar 2018
Posts: 1

Rep: Reputation: Disabled

Sorry to necrobump, but EricTRA is incorrect. The - value for ntpq -p means that the cluster algorithm has discarded that NTP peer and won't be using it's value. The * is the NTP server that we selected to sync with, and the + are other optional candidates.

I'm an idiot... You said negative offset... not the sign on the left of the table. My bad.

Last edited by sovereign313; 03-16-2018 at 01:55 PM. Reason: correcting
Old 03-16-2018, 05:17 PM   #7
Senior Member
Registered: May 2008
Posts: 4,769
Blog Entries: 14

Rep: Reputation: Disabled
From the man-page
offset offset of server relative to this host
If the offset is negative relative to this host, then the other server will be behind the local host, so yes I think Eric was incorrect: he got it the wrong way around. Unless "this host" refers to the peer and not the local host, in which case he was right.

Thinking about it, the phrasing is very ambiguous and you could reasonably take it either way. Now I'm not sure.

On second thoughts, I think he was right all along. 'this host' must refer to the peer and 'the server' must be the ntpd server you're querying. I think it's just misleading language.

Last edited by GazL; 03-16-2018 at 05:29 PM.


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 offset marstse Linux - General 1 01-14-2009 01:33 AM
register offset? ashlesha Programming 2 07-28-2006 06:49 PM
Download-Offset possible? Cornholio Linux - Software 0 01-10-2005 04:47 AM
monitor offset moschi Linux - Newbie 3 04-18-2004 12:09 PM
Print-out is offset Cichlid Linux - Hardware 1 05-06-2002 05:54 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 07:31 PM.

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