[PATCH docs] host-management: Add section on power control

Patrick Williams patrick at stwcx.xyz
Tue Jun 21 08:41:45 AEST 2016


Reviewed-by: Patrick Williams <patrick at stwcx.xyz>

On Mon, Jun 20, 2016 at 04:40:12AM -0500, OpenBMC Patches wrote:
> From: Joel Stanley <joel at jms.id.au>
> 
> Signed-off-by: Joel Stanley <joel at jms.id.au>
> ---
>  host-management.md | 24 ++++++++++++++++++++++++
>  1 file changed, 24 insertions(+)
> 
> diff --git a/host-management.md b/host-management.md
> index d223850..e313468 100644
> --- a/host-management.md
> +++ b/host-management.md
> @@ -140,3 +140,27 @@ Each boot parameter is represented by an individual property, and their hex
>  value is displayed in a string format. For example, a boot flags parameter value
>  of `0x8014000000` would be stored as a `8014000000` string in the
>  `settings/host0/boot_flags` property.
> +
> +Host power control
> +------------------
> +
> +The host can be controlled through the `chassis` object. It implements a number
> +of actions including powerOn and powerOff. These correspond to the IPMI
> +`chassis power on` and `chassis power off` commands.
> +
> +Assuming you have logged in, the following will issue a POST with an empty data
> +payload that powers the host on:
> +
> +```
> +curl -c cjar -b cjar -k -H "Content-Type: application/json" -X POST \
> +   -d '{"data": []}'  https://bmc/org/openbmc/control/chassis0/action/powerOn
> +```
> +
> +Other actions available are:
> +
> + * `setIdentify` / `clearIdentify`
> + * `powerOff`
> + * `softPowerOff`
> + * `reboot`
> + * `softReboot`
> + * `getPowerState`
> -- 
> 2.8.4
> 
> 
> _______________________________________________
> openbmc mailing list
> openbmc at lists.ozlabs.org
> https://lists.ozlabs.org/listinfo/openbmc

-- 
Patrick Williams
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <http://lists.ozlabs.org/pipermail/openbmc/attachments/20160620/1110ad88/attachment-0001.sig>


More information about the openbmc mailing list