[ntp:questions] Doubt about Syncronization of GPS SPECTRACOM(2)
Ronan Flood
usenet at umbral.org.uk
Thu Mar 1 14:23:30 UTC 2007
mlonisto at gmail.com (Marcos Onisto) wrote:
> I dont understand the output of this command , but follow below:
>
> # /usr/local/bin/ntpdate -qd 127.0.0.1
> 28 Feb 14:37:12 ntpdate[1081]: ntpdate 4.2.0 at 1.1161-r Thu Apr 1
> 03:24:08 EST 2004 (1)
> Looking for host 127.0.0.1 and service ntp
> host found : localhost
> transmit(127.0.0.1)
> receive(127.0.0.1)
> transmit(127.0.0.1)
> receive(127.0.0.1)
> transmit(127.0.0.1)
> receive(127.0.0.1)
> transmit(127.0.0.1)
> receive(127.0.0.1)
> transmit(127.0.0.1)
> server 127.0.0.1, port 123
> stratum 1, precision -20, leap 00, trust 000
> refid [WWVB], delay 0.02580, dispersion 0.00002
> transmitted 4, in filter 4
> reference time: c9903c22.a8a70d71 Wed, Feb 28 2007 14:36:34.658
> originate timestamp: c9903c48.4aab241b Wed, Feb 28 2007 14:37:12.291
> transmit timestamp: c9903c48.4a9c6e1b Wed, Feb 28 2007 14:37:12.291
> filter delay: 0.02621 0.02586 0.02580 0.02580
> 0.00000 0.00000 0.00000 0.00000
> filter offset: 0.000186 0.000036 0.000009 0.000010
> 0.000000 0.000000 0.000000 0.000000
> delay 0.02580, dispersion 0.00002
> offset 0.000009
>
> 28 Feb 14:37:12 ntpdate[1081]: adjust time server 127.0.0.1 offset 0.000009 sec
It worked! Transmitted 4 queries, received 4 replies, reported offset
of 9 microseconds; which is about as expected as the server is querying
its own system clock. That's what you wanted to see, isn't it?
> # netstat -an | grep 123
> *.123 Idle
> *.123 Idle
> 127.0.0.1.123 Idle
> 10.0.0.2.123 Idle
> 192.168.64.69.123 Idle
> *.123 Idle
>
> Everything is all right? What's is wrong?
Looks like your server is not listening on the IPv6 local address ::1,
which is what your "ntpdate -q localhost" said it was trying before
> > > # /usr/local/bin/ntpdate -q localhost
> > > Looking for host localhost and service ntp
> > > host found : localhost
> > > server ::1, stratum 0, offset 0.000000, delay 0.00000
and that's why that did not work.
What operating system are you using? Perhaps you have some problem with
the definition of localhost in /etc/hosts (or maybe /etc/inet/ipnodes) ?
Or some IPv6 configuration problem?
Your ntpdate says "version 4.2.0 at 1.1161-r", what is your ntpd version,
shown by "ntpq -crv" ?
--
Ronan Flood <usenet at umbral.org.uk>
More information about the questions
mailing list