Skip to contentSkip to conversation

mg-hosts: document "power" command

PATCH In review Wei Liu 2 participants 2 messages Dec 7, 2015 – Dec 8, 2015

lore
Share & tools
lore

Wei Liu

author
#0 lore raw

PATCH 1/1 mg-hosts: document "power" command

---
 mg-hosts | 7 +++++++
 1 file changed, 7 insertions(+)
mg-hosts +7 -0
index a911099..0d02c56 100755
@@ -24,6 +24,13 @@
 #               of osstest.  Will use "sudo". The HOST(s) must be
 #               allocated (via mg-allocate HOST).
 #
+#  ./mg-hosts power HOST ACTION
+#               Power cycles the host. Host must be allocated to the current
+#               user.  Actions are:
+#                "0" or "on"    : power on
+#                "1" or "off"   : power off
+#                "c" or "r"     : reboot
+#
 #  ./mg-hosts create-like SOURCE-HOST NEW-HOST[,NEW-HOST...]
 #               Create new host(s).  This does NOT copy the
 #               flags and properties (!)
Signature · 1 line
2.1.4
Acked-by on v1 1/1
#1 lore raw
Quoted 16 lines · Wei Liu

---
 mg-hosts | 7 +++++++

 1 file changed, 7 insertions(+)
mg-hosts +2 -0
index a911099..0d02c56 100755
@@ -24,6 +24,13 @@
  #               of osstest.  Will use "sudo". The HOST(s) must be
  #               allocated (via mg-allocate HOST).
  #
+#  ./mg-hosts power HOST ACTION
+#               Power cycles the host. Host must be allocated to the

current

mg-hosts line 32

Quoted 4 lines
mg-hosts +4 -0
+#               user.  Actions are:
+#                "0" or "on"    : power on
+#                "1" or "off"   : power off
+#                "c" or "r"     : reboot

I think in reality the ACTION needs merely to start with any of those strings, but in the interests of not making the docs too confusing I think the above is good.

(c is for "cycle" I guess?)
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel