mirror of
https://gitlab.com/chrony/chrony.git
synced 2025-12-03 18:05:06 -05:00
client: add option to print all sources
Add -a option to the sources and sourcestats commands to print all sources, including those that don't have a resolved address yet. By default, only sources that have a real address are printed for compatibility. Remove the "210 Number of sources" messages to avoid confusion. Also, modify the ntpdata command to always print only sources with a resolved address.
This commit is contained in:
@@ -43,12 +43,10 @@ Root delay : 0\.000...... seconds
|
||||
Root dispersion : 0\.000...... seconds
|
||||
Update interval : [0-9]+\.. seconds
|
||||
Leap status : Normal
|
||||
210 Number of sources = 2
|
||||
MS Name/IP address Stratum Poll Reach LastRx Last sample
|
||||
===============================================================================
|
||||
#\? SHM0 0 4 377 [0-9]+ [0-9 +-]+[un]s\[[0-9 +-]+[un]s\] \+/-[ 0-9]+[un]s
|
||||
\^\* 192\.168\.123\.1 1 [67] 377 [0-9]+ [0-9 +-]+[un]s\[[0-9 +-]+[un]s\] \+/-[ 0-9]+[un]s
|
||||
210 Number of sources = 2
|
||||
Name/IP Address NP NR Span Frequency Freq Skew Offset Std Dev
|
||||
==============================================================================
|
||||
SHM0 [0-9 ]+ [0-9 ]+ [0-9 ]+ [ +-][01]\.... [0-9 ]+\.... [0-9 +-]+[un]s [0-9 ]+[un]s
|
||||
@@ -106,6 +104,7 @@ for chronyc_conf in \
|
||||
"cmddeny all 1.2.3.0/24" \
|
||||
"cyclelogs" \
|
||||
"delete 10.0.0.0" \
|
||||
"delete ID#0000000001" \
|
||||
"deny 1.2.3.4" \
|
||||
"deny all 1.2.3.0/24" \
|
||||
"dfreq 1.0e-3" \
|
||||
@@ -126,6 +125,7 @@ for chronyc_conf in \
|
||||
"maxupdateskew 1.2.3.4 10.0" \
|
||||
"minpoll 1.2.3.4 3" \
|
||||
"minstratum 1.2.3.4 1" \
|
||||
"minstratum ID#0000000001 1" \
|
||||
"ntpdata 1.2.3.4" \
|
||||
"offline" \
|
||||
"offline 255.255.255.0/1.2.3.0" \
|
||||
|
||||
Reference in New Issue
Block a user