Web Services Interface Guide

76 Dell Lifecycle Controller Web Services Interface Guide for Windows
?CreationClassName=DCIM_ComputerSystem +Name=srv:system"
-u:[USER] -p:[PASSWORD] -r:https://[IPADDRESS]/wsman:443 -SkipCNcheck -
SkipCAcheck -encoding:utf-8 -a:basic @{RequestedState="2"} -skiprevocationcheck
OUTPUT:
RequestStateChange_OUTPUT
ReturnValue = 0
Return values of zero indicate success, while others indicate failure and may include a corresponding error
message.
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 step 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.pdf
EXAMPLE:
winrm invoke RequestPowerStateChange http://schemas.dell.com/wbem/wscim/1/cim-
schema/2/DCIM_CSPowerManagementService?__cimnamespace=root/dcim+SystemCreationCl
assName=
DCIM_SPComputerSystem+SystemName=systemmc+CreationClassName=DCIM_CSPowerManageme
ntServi ce+Name= pwrmgtsvc:1
-u:[USER] -p:[PASSWORD] -r:https://[IPADDRESS]/wsman -SkipCNcheck
-SkipCAcheck -encoding:utf-8 -auth:basic @{PowerState=”5”}