Changes between Version 1 and Version 2 of Ticket #64142, comment 3


Ignore:
Timestamp:
Dec 6, 2021, 1:41:08 PM (3 years ago)
Author:
RobK88
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #64142, comment 3

    v1 v2  
    1 P.S.  I just discovered another program with the same name `ntpstat`.  Unlike the original `ntpstat` which was written in C and did not rely on `ntpq`, the newer `ntpstat` is a shell script which prints the ntpd or chronyd synchronisation status, using the `ntpq` or `chronyc` program.
     1P.S.  I just discovered another program with the same name `ntpstat`.  Unlike the original `ntpstat` which was written in C and did not rely on `ntpq`, the newer `ntpstat` is a shell script which prints the ntpd or chronyd synchronisation status, using the `ntpq` or `chronyc` program. See See https://github.com/mlichvar/ntpstat
    22
    33It emulates the original `ntpstat` program written in C by G. Richard Keech, which implemented a subset of the mode6 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).
     
    55Another downside to the newer `ntpstat` program -- it is NOT fully POSIX shell (sh) compatible.  It would have been better to use functions (like the original `ntpstat` program) instead of using ntpq in "raw" mode in a bash script.  (see https://github.com/mlichvar/ntpstat/pull/4)
    66
    7 On the bright side,  unlike the original `ntpstat` program, the newer `ntpstat` supports not only ntp but also chronyc.  It is also actively developed.  See https://github.com/mlichvar/ntpstat
     7On the bright side,  unlike the original `ntpstat` program, the newer `ntpstat` supports not only ntp but also chronyc.  It is also actively developed. 
    88
    99