Reference Guide

120 Lifecycle Controller Web Services Interface Guide for Linux
13.3 Enable or Disable VFlash using VFlash State Change
This method is used to enable or disable the virtual flash media device. After running the
VFlashStateChange() method successfully, the change will be dictated in the VFlashEnabledState
parameter as shown in Section 13.2.1 and Section 13.2.3.
Invoke VFlashStateChange() with the following parameters and syntax:
RequestedState: The state to set to. Enable=1, Disable=2
EXAMPLE:
wsman invoke -a VFlashStateChange
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 VFlashStateChange.xml -j utf-8 -y basic
The input file VFlashStateChange.xml is shown below:
<p:VFlashStateChange_INPUT
xmlns:p="http://schemas.dell.com/wbem/wscim/1/cimschema/2/DCIM_PersistentStora
geService">
<p:RequestedState>1</p:RequestedState>
</p:VFlashStateChange_INPUT>
OUTPUT:
<n1:VFlashStateChange_OUTPUT>
<n1:ReturnValue>0</n1:ReturnValue>
</n1:VFlashStateChange_OUTPUT>
13.4 Create Partition
This method is used for creating a new partition on a storage device. After running this method
successfully, an instance of DCIM_OpaqueManagementData representing the desired partition will be
created (Section 13.1) and a reference to this instance is captured in the output parameter Job.
Invoke CreatePartition() with the following parameters and syntax:
PartitionIndex: The PartitionIndex property of the DCIM_OpaqueManagementData instance that
represents the partition to be formatted 1 to 16.
Size: The size of the partition to be created.
SizeUnit: The unit of the size. MB=1, GB=2
PartitionType: The partition type. floppy=1, hard disk drive=2
OSVolumeLabel: The label seen in the OS after attaching the partition.
EXAMPLE:
wsman invoke -a CreatePartition
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 CreatePartition.xml -j utf-8 y basic