mirror of
https://gitlab.com/chrony/chrony.git
synced 2025-12-07 04:15:06 -05:00
cmdmon+client: add selectopts command
This command uses the new source function to modify configured selection options of an NTP source or reference clock.
This commit is contained in:
@@ -42,6 +42,7 @@ for command in \
|
||||
"reselect" \
|
||||
"reselectdist 1e-3" \
|
||||
"reset sources" \
|
||||
"selectopts $server -noselect +trust +prefer +require" \
|
||||
"smoothtime reset" \
|
||||
"smoothtime activate" \
|
||||
; do
|
||||
@@ -101,7 +102,7 @@ Total good RX : [0-9]+$" || test_fail
|
||||
run_chronyc "selectdata" || test_fail
|
||||
check_chronyc_output "^S Name/IP Address Auth COpts EOpts Last Score Interval Leap
|
||||
=======================================================================
|
||||
s 127\.0\.0\.1 N ----- ----- 0 1\.0 \+0ns \+0ns \?$" || test_fail
|
||||
s 127\.0\.0\.1 N -PTR- -PTR- 0 1\.0 \+0ns \+0ns \?$" || test_fail
|
||||
|
||||
run_chronyc "serverstats" || test_fail
|
||||
check_chronyc_output "^NTP packets received : [0-9]+
|
||||
|
||||
Reference in New Issue
Block a user