Reference Guide

124 Lifecycle Controller Web Services Interface Guide for Linux
Enumerate the DCIM_PersistentStorageService class
Invoke the FormatPartition() method on the instance above with the following parameters:
PartitionIndex: The PartitionIndex property of the DCIM_OpaqueManagementData instance that
represents the partition to be formatted. 1 to 16
FormatType: The new format type of the partition. EXT2=1, EXT3=2, FAT16=3, FAT32=4
The OUT parameter Job will refer to the instance of CIM_ConcreteJob using which you can query the
status of the formatting of the partition.
EXAMPLE:
wsman invoke -a FormatPartition
http://schemas.dmtf.org/wbem/wscim/1/cimschema/2/root/dcim/DCIM_PersistentStor
ageService?SystemCreationClassName=DCIM_ComputerSystem,
CreationClassName=DCIM_PersistentStorageService,
SystemName=DCIM:ComputerSystem,Name=DCIM:PersistentStorageService
-h $IPADDRESS -V -v -c dummy.cert -P 443
-u $USERNAME -p $PASSWORD
-J FormatPartition.xml -j utf-8 y basic
The input file FormatPartition.xml is shown below:
<p:FormatPartition_INPUT
xmlns:p=“http://schemas.dell.com/wbem/wscim/1/cimschema/2/DCIM_PersistentStora
geService">
<p:PartitionIndex>13</p:PartitionIndex>
<p:FormatType>4</p:FormatType>
</p:FormatPartition_INPUT>
OUTPUT:
After running this method, a jobid or a message is displayed indicating an error.
<n1:FormatPartition_OUTPUT>
<n1:Job>
<wsa:Address>http://schemas.xmlsoap.org/ws/2004/08/addressing/role/an
onymous<
/wsa:Address>
<wsa:ReferenceParameters>
<wsman:ResourceURI>http://schemas.dell.com/wbem/wscim/1/cimsche
ma/2/DCIM_LifecycleJob</wsman:ResourceURI>
<wsman:SelectorSet>
<wsman:Selector Name="InstanceID">JID_001300793541</wsman
:Selector>
<wsman:Selector Name="__cimnamespace">root/dcim</wsman:Se
lector>
</wsman:SelectorSet>
</wsa:ReferenceParameters>
</n1:Job>
<n1:ReturnValue>4096</n1:ReturnValue>
</n1:FormatPartition_OUTPUT>
13.8 Modify Partition
This method is used for modifying the changeable attributes of a partition.
Use the following algorithm to successfully modify an existing partition.
A. Enumerate the DCIM_PersistentStorageService class
B. Invoke ModifyPartition() method on the instance above with the following parameters: