Reference Guide

118 Lifecycle Controller Web Services Interface Guide for Linux
13.2 Initialize the Virtual Flash Media
Enumerate the DCIM_PersistentStorageService class
Invoke the InitializeMedia method on the instance above
The OUT parameter Job will refer to the instance of CIM_ConcreteJob using which you can query the
status of the initialization of the media.
13.2.1 Get VFlash SD Card Inventory
DCIM_VFlashView is a subclass of CIM_View that is used to represent the physical attributes of the
virtual flash media, such as total size, available size, category on which the partitions will reside.
Enumerate the DCIM_VFlashView with the following parameters and syntax:
EXAMPLE:
wsman enumerate http://schemas.dmtf.org/wbem/wscim/1/cimschema/2/root/dcim/DCI
M_VFlashView
-h $IPADDRESS -V -v -c dummy.cert -P 443
-u $USERNAME -p $PASSWORD
-j utf-8 -y basic
OUTPUT:
<n1:DCIM_VFlashView>
<n1:AvailableSize>970</n1:AvailableSize>
<n1:Capacity>976</n1:Capacity>
<n1:ComponentName>vFlash SD Card</n1:ComponentName>
<n1:FQDD>Disk.vFlashCard.1</n1:FQDD>
<n1:HealthStatus>OK</n1:HealthStatus>
<n1:InitializedState>Uninitialized</n1:InitializedState>
<n1:InstanceID>Disk.vFlashCard.1</n1:InstanceID>
<n1:LastSystemInventoryTime>20110322104946.000000+000</n1:LastSystemInvento
ryTime>
<n1:LastUpdateTime>20110322104946.000000+000</n1:LastUpdateTime>
<n1:Licensed>true</n1:Licensed>
<n1:VFlashEnabledState>true</n1:VFlashEnabledState>
<n1:WriteProtected>false</n1:WriteProtected>
</n1:DCIM_VFlashView>
InitializedState: Field indicates status of element to be initialized InstanceID: InstanceID of desired
element for initialization
13.2.2 Initialize or Format Media
This method is used to initialize or format the virtual flash media device.
wsman invoke -a InitializeMedia
http://schemas.dmtf.org/wbem/wscim/1/cimschema/2/root/dcim/DCIM_PersistentStor
ageService?
SystemCreationClassName=DCIM_ComputerSystem,CreationClassName=DCIM_PersistentS
torageService,SystemName=DCIM:ComputerSystem,Name=DCIM:PersistentSto
rageService"
h $IPADDRESS -V -v -c dummy.cert -P 443
-u $USERNAME -p $PASSWORD
-j utf-8 -y basic
See Section 13.2.3 for the
populated initialized fields