summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Grennan <tgrennan@vyatta.com>2007-11-21 12:59:28 -0800
committerTom Grennan <tgrennan@vyatta.com>2007-11-21 12:59:28 -0800
commit27a5ac1261d5755189966798f72ff23414e9b032 (patch)
treed6e0eafb04f562a859a9780a87567c7e8c060988
parente7fd4dc96fbd4cb795ebb89b03d8a499fa5a184c (diff)
downloadvyatta-op-27a5ac1261d5755189966798f72ff23414e9b032.tar.gz
vyatta-op-27a5ac1261d5755189966798f72ff23414e9b032.zip
allow "show ntp <hostname|address>"
-rw-r--r--templates/show/ntp/node.tag/node.def3
1 files changed, 2 insertions, 1 deletions
diff --git a/templates/show/ntp/node.tag/node.def b/templates/show/ntp/node.tag/node.def
index 38828a8..b2678d8 100644
--- a/templates/show/ntp/node.tag/node.def
+++ b/templates/show/ntp/node.tag/node.def
@@ -1,3 +1,4 @@
help: Show date and time of given NTP server
-allowed: sed 's/#.*//; s/^[^ \t]*[ \t]//; /^$/d' ${HOSTFILE:-/dev/null}
+allowed: echo -n HOSTNAME A.B.C.D X:X::X:X ntp.vyatta.com ;
+ sed 's/#.*//; s/^[^ \t]*[ \t]//; /^$/d' ${HOSTFILE:-/dev/null}
run: /usr/sbin/ntpdate -q ${3:-ntp.vyatta.com}