[ntp:questions] ntpdc and collectd queries timeout
Terje Mathisen
terje.mathisen at tmsw.no
Fri Jan 24 11:28:27 UTC 2014
michalpurzynski1 at gmail.com wrote:
> Hello.
>
> The ntpdc queries timeout every time on the NTP version
> ntp-dev-4.2.7p411 (compiled myself). Looks like the type 7 packets
> are blocked from localhost but I don't know why.
Type 7 (which is used by ntpdc) isn't blocked on ntp-dev, it has been
_removed_!
The design of type 7 was known to be broken many years ago, ntp-dev has
replaced the relevant functionality with new ntpq commands/options-
>
> The same queries work on the 4.2.6 (distribution version, Debian).
>
> I test it like this - here's a query result on 4.2.6
>
> root at raspberrypi:~# ntpdc -c kern pll offset: -0.024376 s
> pll frequency: -49.895 ppm maximum error: 0.0039681 s
> estimated error: 8.071e-06 s status: 2001 pll
> nano pll time constant: 4 precision: 1e-09 s frequency
> tolerance: 500 ppm
>
> And the query on 4.2.7p411, with the same configuration file
> root at raspberrypi:~# ntpdc -c kern localhost: timed out, nothing
> received ***Request timed out
>
> The ntpq command works on both versions.
>
> The NTP documentation says that ntpq uses a different packet type to
> communicate, type 5 and ntpdc uses type 7.
>
>
> What might be the reason for type 7 packets being blocked from
> localhost?
See above.
Terje
--
- <Terje.Mathisen at tmsw.no>
"almost all programming can be viewed as an exercise in caching"
More information about the questions
mailing list