Changes between Version 8 and Version 9 of Ticket #64142, comment 3


Ignore:
Timestamp:
Dec 7, 2021, 3:18:26 AM (2 years ago)
Author:
RobK88
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #64142, comment 3

    v8 v9  
    33It emulates the original `ntpstat` program written in C by G. Richard Keech, which implemented a subset of the mode 6 ntp control message protocol supported by `ntpd`.  But please note that it has an additional dependency that the original `ntpstat` did not have.  It requires `gawk` (at least on older Macs where `awk` is pretty limited.  I had to patch the original script replacing `awk` with `gawk` everywhere to make the newer `ntpstat` work on my older Macs).
    44
    5 Another downside to the newer `ntpstat` program -- it is NOT fully POSIX shell (sh) compatible.  It would have been better if the newer `ntpstat` used the NTP mode 6 control message protocol directly to `ntpd` (e.g.via C functions), like the original `ntpstat` program did, instead of using `ntpq` in "raw" mode . (see https://github.com/mlichvar/ntpstat/pull/4).  But that is a lot more work and the ntp control message protocol is obscure.
     5Another downside to the newer `ntpstat` program -- it is NOT fully POSIX shell (sh) compatible.  It would have been better if the newer `ntpstat` was NOT scripted and used the NTP mode 6 control message protocol to communicate directly to `ntpd`, like the original `ntpstat` program did, instead of using `bash` and `ntpq` in "raw" mode . (see https://github.com/mlichvar/ntpstat/pull/4).  But that is a lot more work and the ntp control message protocol is pretty obscure.
    66
    77On the bright side,  unlike the original `ntpstat` program, the newer `ntpstat` supports not only ntp but also chronyc.  It is also still being developed.