diff options
author | Andras Elso <elso.andras@gmail.com> | 2020-03-31 13:36:18 +0200 |
---|---|---|
committer | Andras Elso <elso.andras@gmail.com> | 2020-03-31 13:36:18 +0200 |
commit | 81f6ec933a6e76e4635e2bab92e0078c2b4150f7 (patch) | |
tree | f1089a5dc6dca14c02c3687453343a1a859d1fad /op-mode-definitions | |
parent | c707202f440e387310f97a75b737f482c11ef72e (diff) | |
download | vyos-1x-81f6ec933a6e76e4635e2bab92e0078c2b4150f7.tar.gz vyos-1x-81f6ec933a6e76e4635e2bab92e0078c2b4150f7.zip |
T2188: use ntpq for query NTP daemon infos
Diffstat (limited to 'op-mode-definitions')
-rw-r--r-- | op-mode-definitions/show-ntp.xml | 4 |
1 files changed, 2 insertions, 2 deletions
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 @@ <properties> <help>Show peer status of NTP daemon</help> </properties> - <command>if ps -C ntpd &>/dev/null; then ntpdc -n -c peers; else echo NTP daemon disabled; fi</command> + <command>if ps -C ntpd &>/dev/null; then ntpq -n -c peers; else echo NTP daemon disabled; fi</command> <children> <tagNode name="server"> <properties> @@ -21,7 +21,7 @@ <properties> <help>Show NTP operational summary</help> </properties> - <command>if ps -C ntpd &>/dev/null; then ntpdc -n -c sysinfo; ntpdc -n -c kerninfo; else echo NTP daemon disabled; fi</command> + <command>if ps -C ntpd &>/dev/null; then ntpq -n -c sysinfo; ntpq -n -c kerninfo; else echo NTP daemon disabled; fi</command> </node> </children> |