Re: [Xen-devel] [PATCH OSSTEST] mg-hosts: document "power" command

2015-12-08 Thread Ian Campbell
On Mon, 2015-12-07 at 17:24 +, Wei Liu wrote:
> Signed-off-by: Wei Liu 
> ---
>  mg-hosts | 7 +++
>  1 file changed, 7 insertions(+)
> 
> diff --git a/mg-hosts b/mg-hosts
> index a911099..0d02c56 100755
> --- a/mg-hosts
> +++ b/mg-hosts
> @@ -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

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.

Acked-by: Ian Campbell 

(c is for "cycle" I guess?)
___
Xen-devel mailing list
Xen-devel@lists.xen.org
http://lists.xen.org/xen-devel


[Xen-devel] [PATCH OSSTEST] mg-hosts: document "power" command

2015-12-07 Thread Wei Liu
Signed-off-by: Wei Liu 
---
 mg-hosts | 7 +++
 1 file changed, 7 insertions(+)

diff --git a/mg-hosts b/mg-hosts
index a911099..0d02c56 100755
--- a/mg-hosts
+++ b/mg-hosts
@@ -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 (!)
-- 
2.1.4


___
Xen-devel mailing list
Xen-devel@lists.xen.org
http://lists.xen.org/xen-devel