summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2020-03-31 18:01:40 +0200
committerGitHub <noreply@github.com>2020-03-31 18:01:40 +0200
commit33411e9d2815d40e0389b369cd24df0f9f82d92e (patch)
treedde8eda06db206de784137b092c3286734cf67ac
parent685de4c3f9d3367a25ff1320cdacaf6427f6cc80 (diff)
parent81f6ec933a6e76e4635e2bab92e0078c2b4150f7 (diff)
downloadvyos-1x-33411e9d2815d40e0389b369cd24df0f9f82d92e.tar.gz
vyos-1x-33411e9d2815d40e0389b369cd24df0f9f82d92e.zip
Merge pull request #290 from Elbandi/fixntp
T2188: use ntpq for query NTP daemon infos
-rw-r--r--op-mode-definitions/show-ntp.xml4
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 &amp;&gt;/dev/null; then ntpdc -n -c peers; else echo NTP daemon disabled; fi</command>
+ <command>if ps -C ntpd &amp;&gt;/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 &amp;&gt;/dev/null; then ntpdc -n -c sysinfo; ntpdc -n -c kerninfo; else echo NTP daemon disabled; fi</command>
+ <command>if ps -C ntpd &amp;&gt;/dev/null; then ntpq -n -c sysinfo; ntpq -n -c kerninfo; else echo NTP daemon disabled; fi</command>
</node>
</children>