From 81f6ec933a6e76e4635e2bab92e0078c2b4150f7 Mon Sep 17 00:00:00 2001 From: Andras Elso Date: Tue, 31 Mar 2020 13:36:18 +0200 Subject: T2188: use ntpq for query NTP daemon infos --- op-mode-definitions/show-ntp.xml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'op-mode-definitions') diff --git a/op-mode-definitions/show-ntp.xml b/op-mode-definitions/show-ntp.xml index 48cee5bee..b7f0acdf8 100644 --- a/op-mode-definitions/show-ntp.xml +++ b/op-mode-definitions/show-ntp.xml @@ -6,7 +6,7 @@ Show peer status of NTP daemon - if ps -C ntpd &>/dev/null; then ntpdc -n -c peers; else echo NTP daemon disabled; fi + if ps -C ntpd &>/dev/null; then ntpq -n -c peers; else echo NTP daemon disabled; fi @@ -21,7 +21,7 @@ Show NTP operational summary - if ps -C ntpd &>/dev/null; then ntpdc -n -c sysinfo; ntpdc -n -c kerninfo; else echo NTP daemon disabled; fi + if ps -C ntpd &>/dev/null; then ntpq -n -c sysinfo; ntpq -n -c kerninfo; else echo NTP daemon disabled; fi -- cgit v1.2.3