diff options
Diffstat (limited to 'templates/show')
-rw-r--r-- | templates/show/host/lookup/node.tag/node.def | 9 | ||||
-rw-r--r-- | templates/show/ntp/node.tag/node.def | 3 |
2 files changed, 8 insertions, 4 deletions
diff --git a/templates/show/host/lookup/node.tag/node.def b/templates/show/host/lookup/node.tag/node.def index 29bf5a7..ba5a4ad 100644 --- a/templates/show/host/lookup/node.tag/node.def +++ b/templates/show/host/lookup/node.tag/node.def @@ -1,3 +1,8 @@ -help: Lookup host information for specified <hostname|IPv4 address> -allowed: vyatta-allowed-hosts +help: Lookup host information for specified name or address +allowed: echo "<hostname> <x.x.x.x> <y:y:y:y:y>" +comp_help: Possible completions + <hostname> host name (static or DNS) + <x.x.x.x> IPv4 address + <y:y:y:y:y:y> IPv6 address + run: /usr/bin/host $4 diff --git a/templates/show/ntp/node.tag/node.def b/templates/show/ntp/node.tag/node.def index d1f00d7..2710671 100644 --- a/templates/show/ntp/node.tag/node.def +++ b/templates/show/ntp/node.tag/node.def @@ -1,4 +1,3 @@ help: Show date and time of specified NTP server -allowed: vyatta-allowed-hosts ntp.vyatta.com ; - awk '/^server/ { print $2 }' /etc/ntp.conf +allowed: echo ntp.vyatta.com; awk '/^server/ { print $2 }' /etc/ntp.conf run: /usr/sbin/ntpdate -q ${3:-ntp.vyatta.com} |