Practices Guide
Lifecycle Controller Integration―Best Practices Specification
126
27.2 Inventory of Power Supply Units (PSUs) in System
Use the following procedure below to list the inventory of all power supplies in the system.
Applies to: LC1.5.0+
Prerequisites for script: none
Script: GetPowerSupplyViews.win
A) The Lifecycle Controller remote service must be in a “ready” state before executing any
other WSMAN commands. The GetRSStatus() method or the GetRemoteServicesAPIStatus()
method may be used depending on the version of the LC Management registered profile.
B) GetFanViews(): ENUMERATE the DCIM_PowerSupplyView class to view all instances. See
section 2.2 for a definition of
ENUMERATE .
The instance information of all available power supplies will be returned.
27.3 Get the first PSU’s Information
Use the following procedure to get a single power supply instance. The URI for getting
particular instance information is deterministic (i.e the InstanceID will be unique for each
instance).
Applies to: LC1.5.0+
Prerequisites for script:
Set desired instanceID by editing script
Script: GetPowerSupplyView.win
A) The Lifecycle Controller remote service must be in a “ready” state before executing any
other WSMAN commands. The GetRSStatus() method or the GetRemoteServicesAPIStatus()
method may be used depending on the version of the LC Management registered profile.
B) GetPowerSupplyView(): GET the DCIM_PowerSupplyView instance using the
InstanceID=PSU.Slot.1. See Section 2.3 for a definition of
GET.
The instance of DCIM_PowerSupplyView that contains the information on the first power supply
will be returned.
27.4 Get MAC Information
This workflow enumerates DCIM_SystemView and invokes GetMACInfo.