Reference Guide
170 Lifecycle Controller Web Services Interface Guide for Linux
RAID 10 = 2048
RAID 50 = 8192
RAID 60 = 16384
16.21.2 Getting the Available Disks-GetAvailableDisks()
The GetAvailableDisks() method is used to determine possible selection of drives to create virtual disks.
Invoke GetAvailableDisks() with the following parameters and syntax:
TARGET: This parameter is the FQDD of the DCIM_ControllerView (Section 16.7)
DiskType: Corresponds to MediaType attribute in PhysicalDiskView ( Section 16.9)
Include all types=0
Include Magnetic Only=1
Include SSD only=2
Diskprotocol: Types of protocol to include
Include all protocols=0
Include SATA=1
Include SAStypes=2
DiskEncrypt: Types of encryption to include
0 = Include FDE capable and non encryption capable disks
1 = Include FDE disks only
2 = Include only non FDE disks
EXAMPLE:
wsman invoke -a GetAvailableDisks
http://schemas.dmtf.org/wbem/wscim/1/cimschema/2/root/dcim/DCIM_RAIDService?
SystemCreationClassName=DCIM_ComputerSystem,CreationClassName=DCIM_RAIDService
,SystemName=DCIM:ComputerSystem,Name=DCIM:RAIDService
-h $IPADDRESS -V -v -c dummy.cert -P 443
-u $USERNAME -p $PASSWORD
-J GetAvailableDisks.xml -j utf-8 -y basic
The input file GetAvailableDisks.xml is shown below:
<p:GetAvailableDisks_INPUT
xmlns:p="http://schemas.dmtf.org/wbem/wscim/1/cimschema/2/root/dcim/DCIM_RAIDS
ervice”>
<p:Target>RAID.Integrated.1-1</p:Target>
<p:DiskType>0</p:DiskType>
<p:Diskprotocol>0</p:Diskprotocol>
<p:DiskEncrypt>0</p:DiskEncrypt>
<p:Raidlevel>2</p:Raidlevel>
</p:GetAvailableDisks_INPUT>
OUTPUT:
<n1:GetAvailableDisks_OUTPUT>
<n1:PDArray>Disk.Bay.0:Enclosure.Internal.0-0:RAID.Integrated.1-1,
Disk.Bay.1:Enclosure.Internal.0-0:RAID.Integrated.1-1</n1:PDArray>
<n1:ReturnValue>0</n1:ReturnValue>
</n1:GetAvailableDisks_OUTPUT>