Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compatibility to ntpdate #3

Open
mowgli opened this issue Jan 16, 2021 · 3 comments
Open

Compatibility to ntpdate #3

mowgli opened this issue Jan 16, 2021 · 3 comments

Comments

@mowgli
Copy link

mowgli commented Jan 16, 2021

Currently I want to use adjtimex on gentoo where no dedicated ntpdate is available and the output of ntpdate from net-misc/ntp is incompatible to the format, adjtimex is using. Additionally, there is a dedicated ntpclient (net-misc/sntpd)

Here is the output of ntpdate from net-misc/ntp (with the same parameter, adjtimex is using, -q -d):

16 Jan 21:58:59 ntpdate[26949]: ntpdate [email protected] Sat Jan 16 20:38:39 UTC 2021 (1)
transmit(192.168.17.4)
receive(192.168.17.4)

server 192.168.17.4, port 123
stratum 2, precision -24, leap 00, trust 000
refid [192.33.96.102], root delay 0.003906, root dispersion 0.026184
reference time:      e3adcf9b.d6cb0aa6  Sat, Jan 16 2021 21:48:27.839
originate timestamp: e3add213.76340ba6  Sat, Jan 16 2021 21:58:59.461
transmit timestamp:  e3add213.2a7969ac  Sat, Jan 16 2021 21:58:59.165
delay 0.02641, dispersion 0.00000, offset +0.295302

16 Jan 21:58:59 ntpdate[26949]: adjust time server 192.168.17.4 offset +0.295302 sec

Could adjtimex be updated to use this newer output? Or alternative use ntpclient?

@rogers0
Copy link
Owner

rogers0 commented Apr 26, 2021

@mowgli

Thanks for the report!
I think it's the same issue in Debian BTS:

So the solution is to add "-p4" to ntpdate command:

$ sudo ntpdate -d -p4 -q pool.ntp.org

@mowgli
Copy link
Author

mowgli commented Apr 26, 2021

So, as ntpdate is called by adjtimex, this is nothing I can do without recompiling.

@rogers0
Copy link
Owner

rogers0 commented Apr 26, 2021

Yes, I'll update this in next upload.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants