Practices Guide

Lifecycle Controller IntegrationBest Practices Specification
137
31.2 Inventory of LC Management Attributes in system
Use the following procedure below to view all available LC attributes and possible values in the
system.
Applies to: LC1.5.0+
Prerequisites for script: none
Script: GetAllLCAttributes.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) GetLCEnumerations(): ENUMERATE the DCIM_LCEnumeration class to view all instances.
See section 2.2 for a definition of
ENUMERATE .
C) GetLCStrings(): ENUMERATE the DCIM_LCString class to view all instances. See section
2.2 for a definition of
ENUMERATE .
The instance information of all available LC Management attributes will be returned
31.3 Check and enable (or disable) Collect System Inventory on
Restart (CSIOR)
This workflow first checks whether CSIOR is enabled (or disabled), if it is not, then it is set to
Enabled (or Disabled). While setting the attribute, it checks both the pending and final values.
Applies to: LC1.4.0+
Prerequisites for script: none
Script: EnableCSIOR.win (or DisableCSIOR.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) GetLCEnumerations(): ENUMERATE the DCIM_LCEnumeration class and find the current
value of CSIOR by searching for “AttributeName=Collect System Inventory on Restart". See
section 2.2 for a definition of
ENUMERATE .
C) SetLCAttribute(): Set the CSIOR attribute if it is Disabled (or Enabled)
D) GetLCEnumerations(): ENUMERATE the DCIM_LCEnumeration class to ensure the pending
value of CSIOR is Enabled (or Enabled). See section 2.2 for a definition of
ENUMERATE .
E) CreateLCConfigJob(): Apply step C) [ReturnValue=4096]