White Papers

77 Lifecycle Controller Integration Best Practices Guide
Script: GetBootSources.win
A) The Lifecycle Controller remote service must be in a “ready” state before running 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) GetBootSourceSettings(): ENUMERATE the DCIM_BootSourceSetting class to view all instances. See section 2.2
for a definition of ENUMERATE.
The instance information of all available boot sources will be returned.
6.7 Changing Boot Order by Instance
See Section “4.5: Set hard drive to first in boot order” for a comprehensive example.
6.8 Enable or Disable Boot Source
This workflow can enable[1] (or disable[0]) the hard drive(c:). If the BootMode is set to UEFI, it will change it to BIOS.
Following completion of the reboot, the hard drive will be enabled (or disabled). Approximate time for completion that
one can expect to encounter on an 11G system is about 15-25 minutes, depending on whether an additional reboot is
needed to set the BootMode parameter.
Applies to: LC1.5.0+
Prerequisites for script:
Set the desired boot source state to enable(1) or disable(0)
Script: EnableBootSource.win
A) The Lifecycle Controller remote service must be in a “ready” state before running 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) Change BootMode to BIOS, if current value is UEFI
a. SetAttribute(): Sets attribute to be configured [ReturnValue=0]
b. CreateConfigJob(): Creates jobID and applies configuration [ReturnValue=4096]
C) GetBootConfigSettings(): ENUMERATE the DCIM_BootConfigSetting class to identify the ElementName field
containing BootSeq and corresponding InstanceID (IPL or UEFI). See section 2.2 for a definition of ENUMERATE.
ElementName = Hard drive C: BootSeq
D) GetBootSourceSettings(): ENUMERATE the DCIM_BootSourceSetting class. See section
2.2 for a definition of ENUMERATE.
a. The CurrentEnabledStatus attribute defines whether the boot source is enabled or disabled
b. If the CurrentEnabledStatus is desired value, skip to the end