Practices Guide

LC Integration Best Practices Specification
122
27.3 Get the first power supply’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.
Applies to: LC1.5.0
Prerequisites for script: none
Script: CollectBlades.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) GetSystemViews(): ENUMERATE the DCIM_SystemView class. See section 2.2 for a
definition of ENUMERATE .
C) GetHostMACInfo(): Invoke GetHostMACInfo [ReturnValue=0]
27.5 Get blade power