Reference Guide

59 Lifecycle Controller Web Services Interface Guide for Linux
<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
2. Enumerate the DCIM_ComputerSystem class and search for the Host instance
3. Use the EPR on steps 1) and 2) to invoke RequestPowerStateChange()
Power State Management Profile:
http://www.dmtf.org/sites/default/files/standards/documents/DSP1027_2.0.0.pd f
EXAMPLE:
wsman invoke -a
RequestPowerStateChange "http://schemas.dell.com/wbem/wscim/1/cimschema/2/DCIM
_CSPowerManagementService?CreationClassName=DCIM_CSPowerManagementService,
SystemCreationClassName=DCIM_SPComputerSystem,
SystemName=Systemmc,Name=pwrmgt svc:1"
-k PowerState="2"
-h $IPADDRESS -V -v -c dummy.cert -P 443