Reference Guide

55 Lifecycle Controller Web Services Interface Guide for Linux
8 Power State Management
8.1 Description of Base Server versus Power State Management
Methods
The remote control of a server power state (On, Off) and methodology for cycling power is available
through data models specified in both the DMTF Base Server Profile and the DMTF Power State
Management Profile. The Base Server Profile offers the RequestStateChange() method on the instance of
the CIM_ComputerSystem class representing the server platform. The Power State Management Profile
offers the RequestPowerStateChange() method available on the instance of the
PowerStateManagmentService associated with the instance of CIM_ComputerSystem representing the
server platform.
Base Server Profile:
http://www.dmtf.org/sites/default/files/standards/documents/DSP1004_1.0.1.pdf
Power State Management Profile:
http://www.dmtf.org/sites/default/files/standards/documents/DSP1027_2.0.0.pdf
8.2 Get Power State
8.2.1 Base Server Method
The power state of the System is reported by the EnabledState property of the DCIM_ComputerSystem
class.
EXAMPLE:
wsman enumerate http://schemas.dmtf.org/wbem/wscim/1/cimschema/2/DCIM_Computer
System
-h $IPADDRESS -V -v -c dummy.cert -P 443
-u $USERNAME -p $PASSWORD
-j utf-8
-y basic
OUTPUT:
<n1:DCIM_ComputerSystem>
<n1:CreationClassName>DCIM_ComputerSystem</n1:CreationClassName>
<n1:Dedicated>0</n1:Dedicated>
<n1:ElementName/>
<n1:EnabledState>2</n1:EnabledState>
<n1:HealthState>25</n1:HealthState>
<n1:IdentifyingDescriptions>CIM:GUID</n1:IdentifyingDescriptions>
<n1:IdentifyingDescriptions>CIM:Tag</n1:IdentifyingDescriptions>
<n1:IdentifyingDescriptions>DCIM:ServiceTag</n1:IdentifyingDescriptions>
<n1:Name>srv:System</n1:Name>
<n1:OperationalStatus>6</n1:OperationalStatus>
<n1:OtherIdentifyingInfo>4c4c4544-0036-3510-8034-b7c04f333231</n1:OtherIden
tifyingInfo>
<n1:OtherIdentifyingInfo>mainSystemchassis</n1:OtherIdentifyingInfo>
<n1:OtherIdentifyingInfo>7654321</n1:OtherIdentifyingInfo>
<n1:PrimaryStatus>3</n1:PrimaryStatus>
<n1:RequestedState>0</n1:RequestedState>
</n1:DCIM_ComputerSystem>