This section follows the DMTF Power State Management Profile, DSP 1027, section 9.2.
The following steps describe how to determine the power state of the platform.
1. Find the instance of CIM_ComputerSystem representing the managed host, as described in Discovering CIM_ComputerSystem.
2. Retrieve the power management association to service instance by invoking Enumerate with association Filter using association instance with the following parameters:
The ComputerSystem reference obtained in Step 1.
Result Class Name
3. Examine the instance property CIM_AssociatedPowerManagementService.PowerState to see the system power state.
Click here for a snippet demonstrating this step
You can execute this snippet by inserting it into the execution template found here.
# Create a reference to the CIM_ComputerSystem instance.
$computerSystemRef =$wsmanConnectionObject.NewReference("SELECT * FROM CIM_ComputerSystem WHERE Name='ManagedSystem'")
# Traverse to the CIM_AssociatedPowerManagementService instances that are connected to CIM_ComputerSystem instance.
# For each instance, check if it is associated to the CIM_PowerManagementService instance.
In Release 3.2, where filtered enumeration is not supported, perform CIM_AssociatedPowerManagementService.Enumerate without any filter. The release is guaranteed to have only one instance of this class.
Classes Used in This Flow
If there is a sample demonstrating this flow, it is included in the SDK installation file. See SDK Installation Layout for details.
Copyright © 2006-2022, Intel Corporation. All rights reserved.