diff options
author | Runar Borge <runar@borge.nu> | 2018-06-17 22:28:21 +0200 |
---|---|---|
committer | Runar Borge <runar@borge.nu> | 2018-06-17 22:28:21 +0200 |
commit | 9b77c401bdd06230cceab7f3e37fc80958cfc72a (patch) | |
tree | 8b3c6404c673410bab08b909fc1d8a6d8e1a6f03 | |
parent | 5481e22dfca81c3ffd589ce0c167742266f07fbf (diff) | |
download | vyos-1x-9b77c401bdd06230cceab7f3e37fc80958cfc72a.tar.gz vyos-1x-9b77c401bdd06230cceab7f3e37fc80958cfc72a.zip |
rewrite show host to new syntax
-rw-r--r-- | op-mode-definitions/show-host.xml | 51 |
1 files changed, 51 insertions, 0 deletions
diff --git a/op-mode-definitions/show-host.xml b/op-mode-definitions/show-host.xml new file mode 100644 index 000000000..39c6c3acc --- /dev/null +++ b/op-mode-definitions/show-host.xml @@ -0,0 +1,51 @@ +<?xml version="1.0"?> +<interfaceDefinition> + <node name="show"> + <children> + <node name="host"> + <properties> + <help>Show host information</help> + </properties> + <children> + <leafNode name="date"> + <properties> + <help>Show host current date</help> + </properties> + <command>/bin/date</command> + </leafNode> + + <leafNode name="domain"> + <properties> + <help>Show domain name</help> + </properties> + <command>/bin/domainname -d</command> + </leafNode> + + <leafNode name="name"> + <properties> + <help>Show host name</help> + </properties> + <command>/bin/hostname</command> + </leafNode> + + <leafNode name="os"> + <properties> + <help>Show host operating system details</help> + </properties> + <command>/bin/uname -a</command> + </leafNode> + + <tagNode name="lookup"> + <properties> + <help>Lookup host information for hostname|IPv4 address</help> + </properties> + <command>/usr/bin/host $4</command> + </tagNode> + + + </children> + </node> + + </children> + </node> +</interfaceDefinition> |