Technical White Paper
EXAMPLE:
wsman invoke -a DeletePartition
http://schemas.dmtf.org/wbem/wscim/1/cimschema/
2/root/dcim/DCIM_PersistentStorageService
?SystemCreationClassName=DCIM_ComputerSystem,CreationClassName=DCIM_Persisten
tStorageServic
e,SystemName=DCIM:ComputerSystem,Name=DCIM:PersistentStorageService" -h
$IPADDRESS -V -v -c
dummy.cert -P 443
-u $USERNAME -p $PASSWORD -J DeletePartition.xml -j utf-8 –y basic
The input file DeletePartition.xml is shown below:
<p:DeletePartition_INPUT
xmlns:p="http://schemas.dmtf.org/wbem/wscim/1/cimschema/
2/root/dcim/DCIM_PersistentStorageService">
<p:PartitionIndex>1</p:PartitionIndex>
</p:DeletePartition_INPUT>
OUTPUT:
After running this method, a
ReturnValue
or a message is displayed indicating an error.
<n1:DeletePartition_OUTPUT>
<n1:ReturnValue>0</n1:ReturnValue>
</n1:DeletePartition_OUTPUT>
An index that does not exist in the XML file may yield the following error message:
<n1:DeletePartition_OUTPUT>
<n1:Message>Invalid partition index</n1:Message>
<n1:MessageID>VF018</n1:MessageID>
<n1:ReturnValue>2</n1:ReturnValue>
</n1:DeletePartition_OUTPUT>
13.7 Format Partition
This method is for formatting a partition of the type specified by you.
Use the following algorithm to successfully format an existing partition:
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