CollapseAll image

Enable/Disable the KVM Interface

The following steps describe how to enable or disable the KVM interface.

1.  Retrieve the instance of IPS_KVMRedirectionSettingData, where the “InstanceID” key equals “Intel(r) KVM Redirection Settings”.

2.  Validate that IPS_KVMRedirectionSettingData.EnabledByMEBx is true. If it is, continue to the next step.

Click here for a snippet demonstrating this step

You can execute this snippet by inserting it into the execution template found here.

  

$kvmRedirectionSettingDataRef = $wsmanConnectionObject.NewReference("SELECT * FROM IPS_KVMRedirectionSettingData WHERE InstanceID='Intel(r) KVM Redirection Settings'")

$kvmRedirectionSettingDataInstance = $kvmRedirectionSettingDataRef.Get()

$enabledByMEBx = $kvmRedirectionSettingDataInstance.GetProperty("EnabledByMEBx")

 

 

3.  Retrieve the instance of CIM_KVMRedirectionSAP, where the “Name” key equals “KVM Redirection Service Access Point”.

4.  Invoke CIM_KVMRedirectionSAP.RequestStateChange.

Click here for a snippet demonstrating this step

You can execute this snippet by inserting it into the execution template found here.

  

$kvmRedirectionSAPRef = $wsmanConnectionObject.NewReference("SELECT * FROM CIM_KVMRedirectionSAP WHERE Name='KVM Redirection Service Access Point'")

$inputObject = $kvmRedirectionSAPRef.CreateMethodInput("RequestStateChange")

$inputObject.SetProperty("RequestedState", "2")

$outputObject = $kvmRedirectionSAPRef.InvokeMethod($inputObject)

$returnValue = $outputObject.GetProperty("ReturnValue")

 

 

Instance Diagram

Classes Used in This Flow

SDK Sample

Located at:<SDK_root>\Windows\Intel_AMT\Samples\KVM

 

See Also:

   KVM Application Developer’s Guide

Copyright © 2006-2014, Intel Corporation. All rights reserved.