Practices Guide
LC Integration Best Practices Specification
100
15.4 List Lifecycle log entries
Use the following procedure below to list the inventory of all LCLogEntry instances in the
system.
Applies to: LC1.5.0+
Prerequisites for script:
Due to the large amount of data returned by this enumeration, winRM
settings may need to be changed as described in the section 1.2
Script: GetLCLogEntries.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) GetLCLogEntries(): ENUMERATE the DCIM_LCLogEntry class to view all instances. See
section 2.2 for a definition of ENUMERATE .
The instance information of all available LCLogEntry will be returned
15.5 Set and get comment in Lifecycle log entries
Use the following procedure below to ‘Get’and ‘Set’ the instance of DCIM_LCLogEntry with the
Comment that needs to be added. This is accomplished using an intrinsic set/put operation on
the DCIM_LCLogEntry instance at the Comment property.
Applies to: LC1.5.0+
Prerequisites for script:
Due to the large amount of data returned by this enumeration, winRM
settings may need to be changed as described in the section 1.2
Set desired instanceID by editing script
Script: SetLCLogEntryComment.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) GetLCLogEntries(): ENUMERATE the DCIM_LCLogEntry class to view all instances of the
class LCLogEntry. See section 2.2 for a definition of ENUMERATE .
C) GetLCLogEntry(): GET the desired InstanceID of from B). See section 2.3 for a definition
of GET. This will display the current comment.
D) SetLCLogEntryComment(): Set the desired comment into the InstanceID of from C)
E) GetLCLogEntry(): GET the desired InstanceID of from B) to confirm new comment