summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorTom Grennan <tgrennan@io.vyatta.com>2007-11-29 14:59:23 -0800
committerTom Grennan <tgrennan@io.vyatta.com>2007-11-29 14:59:23 -0800
commita9700af4fd0c2a033c9f32ae96ec0565931e563b (patch)
treec7209529a64a3a4f3cb4dbcab81bdd44d2add105 /templates
parentbc0323ce21ba5a1b85fb78bc4cd50018bff4415b (diff)
downloadvyatta-op-a9700af4fd0c2a033c9f32ae96ec0565931e563b.tar.gz
vyatta-op-a9700af4fd0c2a033c9f32ae96ec0565931e563b.zip
fix bug 2513 by having "show ntp" return peer status of NTP daemon rather
"ntpdate -q ntp.vyatta.com"
Diffstat (limited to 'templates')
-rw-r--r--templates/show/ntp/node.def8
1 files changed, 6 insertions, 2 deletions
diff --git a/templates/show/ntp/node.def b/templates/show/ntp/node.def
index 0d7abae..539f220 100644
--- a/templates/show/ntp/node.def
+++ b/templates/show/ntp/node.def
@@ -1,2 +1,6 @@
-help: Show date and time of network server
-run: /usr/sbin/ntpdate -q ntp.vyatta.com
+help: Show peer status of network time daemon
+run: if ps -C &>/dev/null ; then
+ ntpdc -n -c peers
+ else
+ echo NTP daemon disabled
+ fi