White Papers

78 Lifecycle Controller Integration Best Practices Guide
E) ChangeBootSourceState(): using instanceID = IPL and EnabledState=1 [ReturnValue=0]
F) Poll jobstatus for Completed: GET the InstanceID of from E). See section 2.3 for a definition of GET.
I) 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.
The GetRSStatus() method must first poll for ‘reloading’ then poll for ‘ready’, while the
GetRemoteServicesAPIStatus() can just poll for ‘ready.’
G) ENUMERATE the DCIM_BootSourceSetting class. See section 2.2 for a definition of ENUMERATE.
The CurrentEnabledStatus of the “Hard drive C” should be 1 for enable (or 0 for disable).
6.9 One Time Boot
This workflow sets a one-time boot for vFlash, IPL, or UEFI. This example uses IPL. Approximate time for completion
that one can expect to encounter is about 15-25 minutes.
Applies to: LC1.5.0+
Prerequisites for script: none
Script: OneTimeBoot.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) GetBootConfigSettings(): ENUMERATE the DCIM_BootConfigSetting class to identify the ElementName field
containing BootSeq and corresponding InstanceID (IPL or UEFI).
ElementName = Hard drive C: BootSeq
C) GetBootSourceSettings(): ENUMERATE the DCIM_BootSourceSetting class and identify the desired one time boot
source: vFlash, IPL, or UEFI
D) ChangeBootOrderByInstanceID(): using instanceID = OneTime and Source=instanceID from C)
E) GetBootConfigSettings(): ENUMERATE the DCIM_BootConfigSetting class.
The OneTime entry should have an IsNext value of 3, which means “Is Next for Single Use”
F) GetBootSourceSettings(): ENUMERATE the DCIM_BootSourceSetting class.
Verify that an additional entry for that DCIM_BootSourceSetting appears with an InstanceID prefixed with
OneTime:”, such as InstanceID = OneTime:IPL:HardDisk.List.1-1:c9203080df84781e2ca3d512883dee6f.
After the reboot, the boot list reverts to the original boot list.