Web Services Interface Guide

Dellâ„¢ Lifecycle Controller 2 Web Services Interface Guide for Windows Version: 2.1.0
159
16.16 Managing Hot Spare
16.16.1 Determining Potential Disks-GetDHSDisks()
The GetDHSDisks() method is used to determine possible choices of drives to be a dedicated HotSpare
for the identified virtual disk.
Invoke GetDHSDisks() with the following parameters and syntax:
TARGET: This parameter is the FQDD of the target virtual disk. Its value will depend on the
number of virtual disks, obtainable in Section 16.10.
EXAMPLE:
winrm i GetDHSDisks cimv2/root/dcim/DCIM_RAIDService
?SystemCreationClassName=DCIM_ComputerSystem
+SystemName=DCIM:ComputerSystem
+CreationClassName=DCIM_RAIDService
+Name=DCIM:RAIDService
-u:[USER] -p:[PASSWORD]
-r:https://[IPADDRESS]/wsman -SkipCNcheck -SkipCAcheck
-encoding:utf-8 -a:basic -file:GetDHSDisks.xml
The input file GetDHSDisks.xml is shown below:
<p:GetDHSDisks_INPUT xmlns:p="http://schemas.dmtf.org/wbem/wscim/1/cim-
schema/2/root/dcim/DCIM_RAIDService">
<p:Target>DISK.Virtual.1:RAID.Integrated.1-1</p:Target>
</p:GetDHSDisks_INPUT>
OUTPUT:
GetDHSDisks_OUTPUT
ReturnValue = 0
The following message may be fixed by deleting the job queue as referenced in Section 10.2.2.
GetDHSDisks_OUTPUT
Message = Configuration already committed, cannot set configuration
MessageID = STOR023
ReturnValue = 2
16.16.2 Assigning the Hot Spare-AssignSpare()
The AssignSpare() method is used to assign a physical disk as a dedicated HotSpare for a virtual disk
(VD), or as a global HotSpare.
Invoke AssignSpare() with the following parameters and syntax:
TARGET: This parameter is the FQDD of the DCIM_PhysicalDiskView (Section 16.9)