Page MenuHomeVyOS Platform

NTP op-mode commands don't work
Closed, ResolvedPublic


ntpd disables "mode 7" queries by default due to security issues, consequently ntpdc doesn't work. ntpq still works because it uses mode 6 queries. (source: stackexchange). Since ntpdc is deprecated, we need to switch to ntpq.

vyos@vyos$ show ntp info 
localhost: timed out, nothing received
***Request timed out
localhost: timed out, nothing received
***Request timed out

    Enables processing of NTP mode 7 implementation-specific requests which are used by the deprecated ntpdc program. The default for this flag is disable. This flag is excluded from runtime configuration using ntpq. The ntpq program provides the same capabilities as ntpdc using standard mode 6 requests.


Difficulty level
Unknown (require assessment)
Why the issue appeared?
Will be filled on close
Is it a breaking change?
Perfectly compatible
Issue type
Bug (incorrect behavior)

Event Timeline

jjakob created this task.
jjakob created this object in space S1 VyOS Public.

Fixed, VyOS 1.3-rolling-202007230117

vyos@r1-roll:~$ show ntp info 
associd=0 status=0615 leap_none, sync_ntp, 1 event, clock_sync,
system peer:
system peer mode:   client
leap indicator:     00
stratum:            3
log2 precision:     -24
root delay:         16.638
root dispersion:    32.807
reference ID:
reference time:     e2c4493d.8f499cce  Thu, Jul 23 2020 17:37:01.559
system jitter:      6.311880
clock jitter:       1.816
clock wander:       0.372
broadcast delay:    -50.000
symm. auth. delay:  0.000
associd=0 status=0615 leap_none, sync_ntp, 1 event, clock_sync,
pll offset:            1.29075
pll frequency:         -16.7616
maximum error:         0.066846
estimated error:       0.001815
kernel status:         pll nano
pll time constant:     8
precision:             1e-06
frequency tolerance:   500
pps frequency:         0
pps stability:         0
pps jitter:            0
calibration interval   0
calibration cycles:    0
jitter exceeded:       0
stability exceeded:    0
calibration errors:    0

In some reason, I can't close it.

erkin set Issue type to Bug (incorrect behavior).Aug 30 2021, 7:51 AM
erkin removed a subscriber: Active contributors.