LinuxAnswers - the LQ Linux tutorial section.
Go Back > Forums > Linux Forums > Linux - General > Member Success Stories
User Name
Password Member Success Stories Just spent four hours configuring your favorite program? Just figured out a Linux problem that has been stumping you for months?
Post your Linux Success Stories here.


View Poll Results: Suggestions on this tip?
Perfect: easy to follow and relevant. 1 33.33%
Ok, but get more technical next time. 2 66.67%
Confusing, too technical, and has some mistakes 1 33.33%
Good, but liked the other tips on the reference better 1 33.33%
Continue with the tips 2 66.67%
Tips are not helpful. Please stop. 1 33.33%
Multiple Choice Poll. Voters: 3. You may not vote on this poll

  Search this Thread
Old 06-12-2004, 07:00 PM   #1
LQ Newbie
Registered: Mar 2004
Distribution: Redhat and direct source
Posts: 27

Rep: Reputation: 15
Network Time Protocol (NTP): Are you sure it's working?

A few Quick Steps for Getting NTP Up and Running

The latest version of this and other tips can be found at
(A tip is added each day to the above link)

TIP 1:

Getting NTP Working

STEP 1 (Is the current server working?):

Try issuing the following command:

$ ntpq -pn

remote refid st t when poll reach delay offset jitter
=================================================== 16 u - 64 0 0.000 0.000 4000.00

The above is an example of a problem.
Compare it to a working configuration.

$ ntpq -pn

remote refid st t when poll reach delay offset jitter
+ 2 u 107 128 377 25.642 3.350 1.012 10 l 40 64 377 0.000 0.000 0.008
+ 3 u 34 128 377 21.138 6.118 0.398
* .USNO. 1 u 110 128 377 33.694 9.533 3.534

STEP 2 (Configure the /etc/ntp.conf):

$ cat /etc/ntp.conf

# My simple client-only ntp configuration.
# ping -a shows the IP address
# which is used in the restrict below
server # local clock
fudge stratum 10
driftfile /etc/ntp/drift
restrict default ignore
restrict mask
authenticate no

STEP 3 (Configure /etc/ntp/step-tickers):

The values for server above are placed in the "/etc/ntp/step-tickers" file

cat /etc/ntp/step-tickers

STEP 4 (Restart the service and check):

Issue the restart command

/etc/init.d/ntpd restart

check the values for "ntpq -pn",
which should match step 1.

ntpq -pn

I hope this helps.


Mike Chirico


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
Network Time protocol ssg14j Linux - Networking 3 10-26-2005 04:58 PM
Network Time protocol ssg14j Programming 1 10-25-2005 10:11 AM
How to specify Network Time Protocol Server in Kickstart script? EStester Linux - Enterprise 3 03-26-2005 02:46 PM
ntp time sync eyewittness Linux - Networking 2 08-11-2004 10:18 AM
Network Time Protocol (NTP) for RH 7.3 LinuxQuest01 Linux - General 1 01-15-2003 04:48 PM

All times are GMT -5. The time now is 06:03 AM.

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