summaryrefslogtreecommitdiff
path: root/op-mode-definitions/show-host.xml
diff options
context:
space:
mode:
authorDmytro Aleksandrov <alkersan@gmail.com>2019-08-30 18:43:44 +0300
committerDmytro Aleksandrov <alkersan@gmail.com>2019-08-30 18:43:44 +0300
commit76f498220c796a39a92ce3bed47c1cc5bac1a99d (patch)
tree09c0119bc7c6850570fd8f8f101a7c8e4cb7248f /op-mode-definitions/show-host.xml
parent24495a18b2ba39cd0c5b024dbe63f3e7df92e69c (diff)
downloadvyos-1x-76f498220c796a39a92ce3bed47c1cc5bac1a99d.tar.gz
vyos-1x-76f498220c796a39a92ce3bed47c1cc5bac1a99d.zip
[op-mode] T1621 rewrite misc commands to python/xml syntax
Diffstat (limited to 'op-mode-definitions/show-host.xml')
-rw-r--r--op-mode-definitions/show-host.xml12
1 files changed, 12 insertions, 0 deletions
diff --git a/op-mode-definitions/show-host.xml b/op-mode-definitions/show-host.xml
index d7f8104aa..eee1288a1 100644
--- a/op-mode-definitions/show-host.xml
+++ b/op-mode-definitions/show-host.xml
@@ -7,6 +7,12 @@
<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>
@@ -25,6 +31,12 @@
</properties>
<command>/usr/bin/host $4</command>
</tagNode>
+ <leafNode name="os">
+ <properties>
+ <help>Show host operating system details</help>
+ </properties>
+ <command>/bin/uname -a</command>
+ </leafNode>
</children>
</node>
</children>