Technical White Paper
8
(Graceful Shutdown Supported)
<n1:DCIM_CSPowerManagementCapabilities>
<n1:Caption xsi:nil="true"/>
<n1:Description xsi:nil="true"/>
<n1:ElementName>Power ManagementCapabilities</n1:ElementName>
<n1:InstanceID>DCIM:pwrmgtcap1</n1:InstanceID>
<n1:OtherPowerCapabilitiesDescriptions xsi:nil="true"/>
<n1:OtherPowerChangeCapabilities xsi:nil="true"/>
<n1:PowerCapabilities xsi:nil="true"/>
<n1:PowerChangeCapabilities>3</n1:PowerChangeCapabilities>
<n1:PowerChangeCapabilities>4</n1:PowerChangeCapabilities>
<n1:PowerChangeCapabilities>8</n1:PowerChangeCapabilities>
<n1:PowerStatesSupported>2</n1:PowerStatesSupported>
<n1:PowerStatesSupported>5</n1:PowerStatesSupported>
<n1:PowerStatesSupported>8</n1:PowerStatesSupported>
<n1:PowerStatesSupported>11</n1:PowerStatesSupported>
<n1:PowerStatesSupported>12</n1:PowerStatesSupported>
</n1:DCIM_CSPowerManagementCapabilities>
8.4 Power Control
8.4.1 Base Server Method
Changing the power state, such as cycling the power, is performed by invoking the
RequestStateChange() method of the
CIM_ComputerSystem
class instance. For iDRAC, there is
one instance for the main system and another for iDRAC. Use the main system instance. The
method requires you to specify the
RequestedState
argument. Refer to Section 8.3 to get the
possible values for this argument.
Base Server Profile:
http://www.dmtf.org/sites/default/files/standards/documents/DSP1004_1.0.1.pdf
EXAMPLE:
wsman invoke -a RequestStateChange
http://schemas.dell.com/wbem/wscim/1/cimschema/
2/DCIM_ComputerSystem
?CreationClassName=DCIM_ComputerSystem,Name=srv:system
-h $IPADDRESS -V -v -c dummy.cert -P 443
-u $USERNAME -p $PASSWORD
-j utf-8 -y basic -k RequestedState="2"
OUTPUT:
<n1:RequestStateChange_OUTPUT>
<n1:ReturnValue>0</n1:ReturnValue>
</n1:RequestStateChange_OUTPUT>
If the value returned is zero then it implies that the command is successfully run. Else, other values
indicate failure and may display a message indicating an error.
8.4.2 Power State Management Method
Changing the power state is performed by invoking the RequestPowerStateChange() method of
the
DCIM_PowerManagementService
(PMS) class instance. It is a three task process shown below:
1) Enumerate the
DCIM_PowerManagementService
with EPR