Re: ntpq no longer working -



Bob Goodwin wrote:
Ed Greshko wrote:
Bob Goodwin wrote:

taharka wrote:

How do,

On Mon, 2006-05-22 at 07:32 -0400, Bob Goodwin wrote:


Tim wrote:

On Mon, 2006-05-22 at 04:17 -0400, Bob Goodwin wrote:

server
clock2.redhat.com
server
ntp-1.cns.vt.edu
server
ntp-2.cns.vt.edu
server
ntp-3.cns.vt.edu
server ntp-4.cns.vt.edu

Cut and paste error? They should all look more like:

server
clock2.redhat.com
server
ntp-1.cns.vt.edu
server
ntp-2.cns.vt.edu
server
ntp-3.cns.vt.edu
server ntp-4.cns.vt.edu

Yes, that is exactly what it looks like before Mozilla Compose
mutilated them
in producing "plain text."

Those domains all resolve, here. But I don't think you're doing
yourself any favours by referring to a bunch of NTP servers at the
same
location. You want a collection of different servers, else you might
believe a set of servers to be true, that believe themselves to
all be
true, when they're not (they might all be referencing themselves).

Originally I had three different sources within a few hundred miles in
hope of minimizing delays, some went away over time and the two left
always
worked well enough for my purposes. Your suggestion is obviously
valid. But I still can't see what's happening, since ntpq doesn't
work even when I
reduce the list to just the Redhat server.

I picked a collection that come from different locations:

server 0.pool.ntp.org iburst
server 1.pool.ntp.org iburst
server 2.pool.ntp.org iburst

Plus a couple of more local ones, to me (au.pool.ntp.org and my
ISP's)

I can do something similar but first need to fix my problem.

Any hints/errors in /var/log/ntp?

I haven't found any such log, locate *log*ntp* produces nothing I
recognize as useful?

I did find: /usr/bin/ntpstat
synchronised to NTP server (198.82.1.203) at stratum 3
time correct to within 79 ms
polling server every 512 s

Which seems to indicate ntp is working at least but I don't have the
convenient data display I am accustomed to.


Why not try using ntpq in interactive mode. Use -i to get to that
state. Then raise the debug level with "debug more" and try "peers".

Ed

This is what I got ;

ntpq -i
Name or service not known
ntpq> debug more
debug level set to 1
ntpq> peers
***No host open, use `host' command
ntpq> host 198.82.1.203
current host set to 198.82.1.203
ntpq> peers
198.82.1.203: timed out, nothing received
***Request timed out
ntpq> debug more
debug level set to 2
ntpq> peers
198.82.1.203: timed out, nothing received
***Request timed out
ntpq>

I'm not sure I'm using this right but it seems not matter what I try
ntpq does nothing
and it always worked in the past. At first I thought it might be due to
the round trip transit time
between here and the satellite which probably add a quarter of a
second? But it seems to me that
I've seen some long delays in the ntpq data at times although that's not
typical, normally more like
.160 [s/ms?].

I assume ntpd is running....

Anyway, instead of setting host to 198.82.1.203 set it to 127.0.0.1 and
try again.


--
There is nothing wrong with abstinence, in moderation.

--
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list



Relevant Pages

  • Re: Local clock question with dialup connection
    ... This looks like ntpd is not running at the time you did this. ... It may be that the server is just dropping your queries. ... Internet, I run ntpq> pe, it shows local as a system peer, and ... they are being tried once while there is no initial Internet connection ...
    (comp.protocols.time.ntp)
  • syncing two machines, microsecond precision?
    ... Hi, I'm trying to sync two machines, one as the server the other as the ... client, both sitting on a private switched network. ... filegen clockstats file clockstats type day enable ... ntpq> rv ...
    (comp.protocols.time.ntp)
  • Re: NTP fails synchronization with server at startup
    ... synchronize with the server at booting. ... not make the connection. ... isn't up when NTP starts. ... Just for info I post a bit of output from ntpq> pe from FC2, ...
    (Fedora)
  • Re: notrust alternative?
    ... Any entries shown in ntpq other than those you configured are spurious and the result of tampering in the sources that leave here. ... My concern is that my server might be using systems other than the five I have listed in my ntp.conf as a synchronization source. ... restrict default kod nomodify notrap nopeer noquery ...
    (comp.protocols.time.ntp)
  • Linux/Windows: Different synchronization behaviour
    ... We are running ntpd ... clients on both Linux and Windows Server 2003 with identical ... Below I attach ntpq output and the ntp.conf configuration file. ... restrict default ignore ...
    (comp.protocols.time.ntp)