Practices Guide

Lifecycle Controller IntegrationBest Practices Specification
130
28.5 Get a Single System String Attribute
Use the following procedure below to get a single system attribute in the system.
Applies to: LC2+
Prerequisites for script: Set desired instanceID by editing script
Script: GetSystemString.win
A) The Lifecycle Controller remote service must be in a “ready” state before executing any
other WSMAN commands.
GetRemoteServicesAPIStatus():
B) GetSystemString(): GET the instance using the desired class’s InstanceID. See Section 2.3
for a definition of
GET.
The instance that contains the information on the attribute will be returned.
28.6 Setting and Applying System Attributes
The following procedure sets a system attribute and applies the new configuration.
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.