White Papers

50 Version 1.0.0a
4) Invoke the CIM_USBRedirectionSAP.RequestStateChange( ) method with the RequestedState
parameter set to 2 (Enabled).
5) Verify that the CIM_USBRedirectionSAP.EnabledState property is set to a value of 2 (Enabled).
The Virtual Media is now active.
9.16 Stop All Virtual Medias Associated with the Service – SAP State
Management
In the following use case, it is assumed that the client knows the instance of
DCIM_OEMVirtualMediaService of interest.
When the Virtual Media is managed through the state of the USB Redirection SAP only, a client can stop
all Virtual Medias as follows:
1) Start at the instance of the DCIM_OEMVirtualMediaService that represents the Virtual Media
Service of interest.
2) Enumerate the instances of CIM_USBRedirectionSAP that are associated with the instance of
DCIM_OEMVirtualMediaService through an instance of CIM_ServiceAccessBySAP.
3) For each instance of CIM_USBRedirectionSAP found, query the value of the EnabledState
property.
4) If the state of each CIM_USBRedirectionSAP is 2 (Enabled), invoke the RequestStateChange(
)
method with each RequestedState parameter set to 6 (Offline).
5) Verify that each CIM_USBRedirectionSAP.EnabledState property is set to a value of 6 (Enabled
but Offline).
All Virtual Medias associated with the DCIM_OEMVirtualMediaService instance are now
inactive.
9.17 Stop All Virtual Medias Associated with a Service—Service and SAP State
Management
When the Virtual Media is managed through the states of both the Virtual Media Service and USB
Redirection SAP, a client can stop all Virtual Medias associated with the Virtual Media Service as follows:
1) Start at the instance of the DCIM_OEMVirtualMediaService that represents the Virtual Media
Service of interest.
2) Change the state of the DCIM_OEMVirtualMediaService instance by invoking the
RequestStateChange(
) method with the RequestedState parameter set to 3 (Disabled).
All Virtual Medias associated with the DCIM_OEMVirtualMediaService instance are now
inactive.
9.18 Find the Number of Active USB Redirection SAPs for a Service
A client can find the number of active USB Redirection SAPs for a Virtual Media Service of interest as
follows:
1) Start at the DCIM_OEMVirtualMediaService instance of interest.
2) Query the value of the EnabledState property; if the EnabledState property is 3 (Disabled), the
number of active Redirection SAPs is zero.
3) If the EnabledState property is 2 (Enabled), find all instances of CIM_USBRedirectionSAP
associated with the DCIM_OEMVirtualMediaService through an instance of
CIM_ServiceAccessBySAP.