You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In my case NTPd runnning inside a container, so I want to change the default host target used by ntpq -p and ntpdc -p command (default: 127.0.0.1). I have created ~/.ntprc with the following content:
But when I'm running command I have an error occured which display an unknown random command like below:
ntpq -p
***Command `���.'' unknown
current host set to 169.254.0.10
remote refid st t when poll reach delay offset jitter
==============================================================================
*LOCAL(0) .LOCL. 14 l 63 64 377 0.000 0.000 0.000
ntpq -p
***Command `����*' unknown
current host set to 169.254.0.10
remote refid st t when poll reach delay offset jitter
==============================================================================
*LOCAL(0) .LOCL. 14 l 51 64 377 0.000 0.000 0.000
In some case the command work as expected :
ntpq -p
current host set to 169.254.0.10
remote refid st t when poll reach delay offset jitter
==============================================================================
*LOCAL(0) .LOCL. 14 l 43 64 377 0.000 0.000 0.000
It looks like a misread buffer error.
Besides, the manual is not really clear about the preset mechanisms using environment variables named NTPQ_* inside .netrc. I tried to set host using NTPQ_HOST=<ip> or host <ip> but none of these trials works.
How can I change the default host without define the host ip for each command (ie: ntpq -p <ip>) ?
I use ntpq in version [email protected].
Thanks for your feedbacks
The text was updated successfully, but these errors were encountered:
In my case NTPd runnning inside a container, so I want to change the default host target used by
ntpq -p
andntpdc -p
command (default: 127.0.0.1). I have created~/.ntprc
with the following content:But when I'm running command I have an error occured which display an unknown random command like below:
In some case the command work as expected :
It looks like a misread buffer error.
Besides, the manual is not really clear about the preset mechanisms using environment variables named
NTPQ_*
inside.netrc
. I tried to set host usingNTPQ_HOST=<ip>
orhost <ip>
but none of these trials works.How can I change the default host without define the host ip for each command (ie:
ntpq -p <ip>
) ?I use ntpq in version
[email protected]
.Thanks for your feedbacks
The text was updated successfully, but these errors were encountered: