White Papers

LC Integration Best Practices Specification
126
Applies to: LC2+
Prerequisites for script: Set desired values by editing script
Script: SetSystemAttribute.win
A) The Lifecycle Controller remote service must be in a “ready” state before executing any
other WSMAN commands.
GetRemoteServicesAPIStatus():
B) GetSystemAttributes(): ENUMERATE the DCIM_SystemAttribute class to view all
instances of the attributes from the following classes: DCIM_SystemEnumeration,
DCIM_SystemInteger, and DCIM_SystemString. See section 2.2 for a definition of
ENUMERATE .
C) Confirm correct FQDD and that the IsReadOnly field is set to false
D) SetSystemAttribute(): Invoke the SetSystemAttribute() method on the
DCIM_SystemManagement class. The method will set the PendingValue property of the
system attributes to the specified value passed in from the input parameters. [Return
value = 0]
NOTE: Use SetSystemAttribute() to set one attribute and SetSystemAttributes() to set multiple
attributes. Both methods take the same input parameters but the types of input parameter are
different. SetSystemAttributes() uses string input and SetSystemAttributs() uses arrays of strings
for input.
E) CreateSystemConfigJob(): Apply the pending values, pass ScheduledStartTime of
TIME_NOW, to invoke the reboot to apply the new attribute values immediately.
NOTE: This method also allows the user to schedule when to apply the attribute value change. If
the schedule is TIME_NOW, the PendingValue will be applied to the CurrentValue of the attribute
immediately. There is no reboot required for setting system attributes as indicated in the output
parameter RebootRequired.
F) Poll jobstatus for Completed: GET the InstanceID of from E). See section 2.3 for a
definition of GET.
G) Repeat C) to confirm successful execution of the method by examining PendingValue
property of the attributes that were set by this step.
28.7 Apply pending system attribute values
See the previous section, Setting and Applying System Attributes, for a use case for this
method.
28.8 Delete pending system attribute values