ntpq -p shows no servers working

Top Page
Attachments:
Message as email
+ (text/plain)
Delete this message
Reply to this message
Author: Robert Ambrose
Date:  
Subject: ntpq -p shows no servers working
First, the easy fix: if the local system's time differs from the NTP
server's time by a certain amount, ntpd will but sync the time. If I
remember right, syslog gets a message about this, so grep ntp in
/var/log/message and see what it says.

If this is the case, there's an easy way to fix this:

<stop ntpd>
ntpdate <NTP server's hostname or address>
clock -us or clock -s depending on whether your BIOS is UTC or not.
<start ntpd>

Failing that, my main technique to find out what's going on:

ntpq
as
rv <assID>

Example:

ntpq
ntpq> as

ind assID status conf reach auth condition last_event cnt
===========================================================
1 13724 96f4 yes yes none sys.peer reachable 15
ntpq> rv 13724

status=96f4 reach, conf, sel_sys.peer, 15 events, event_reach,
srcadr=198.136.155.3, srcport=123, dstadr=192.168.2.2, dstport=123,
leap=00, stratum=3, precision=-17, rootdelay=143.204,
rootdispersion=145.233, refid=mail.getnet.net, reach=377, unreach=0,
hmode=3, pmode=4, hpoll=10, ppoll=10, flash=00 ok, keyid=0,
offset=3.589, delay=1.729, dispersion=14.843, jitter=12.625,
reftime=c3469393.963dc486  Sun, Oct 26 2003 11:40:19.586,
org=c3469795.407bbb62  Sun, Oct 26 2003 11:57:25.251,
rec=c3469795.3fc92578  Sun, Oct 26 2003 11:57:25.249,
xmt=c3469795.3f4f3fd9  Sun, Oct 26 2003 11:57:25.247,
filtdelay=     1.73    1.91    1.92    1.80    2.14    1.76    1.96    1.70,
filtoffset=    3.59   -9.04  -10.14  -10.85  -10.60   -8.09   -6.83  -10.62,
filtdisp=      0.02   15.37   30.74   46.12   61.51   76.90   92.26  107.62


Somewhere in the output for your rv command should be a clue as to why NTP
isn't sync'ing.

rna

On Sat, 25 Oct 2003, David Demland wrote:

> Does any one know why ntpq -p would have the following output:
>
>      remote           refid      st t when poll reach   delay   offset
> jitter
> ============================================================================
> ==
>  time.nist.gov   .ACTS.           1 u   35   64  377   56.603  -355.35
> 4102.83
>  clock.isc.org   gps.laguna.vix.  2 u   41   64  377   73.566  -6279.9
> 5443.67
>  catapult.sgi.co 0.0.0.0          0 u    -  128    0    0.000    0.000
> 4000.00

>
> Since there is not a "*" at the beginning of a line, the documentation says
> that there is no server being used. How do I fix this?
>
> David
>
> ---------------------------------------------------
> PLUG-discuss mailing list -
> To subscribe, unsubscribe, or to change you mail settings:
> http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss
>