White Papers
12 No Restrictions | Filter Dialects |
</wsman:Filter>
</wsen:Enumerate>
</s:Body>
</s:Envelope>
2.4.3 References
References operation is used to enumerate the association objects that refer to a particular target CIM
Object (Class or Instance). It is quite similar to the Associators except for the fact that the associations are
not listed, but all of the instances associated to the target CIM class instance is listed.
The WinRM command to find the references is very similar to the command run to find the associations,
The ‘–associations’ option must be removed. The following WinRM command indicates the method to
enumerate the references of target DCIM_ComputerSystem.
winrm e http://schemas.dell.com/wbem/wscim/1/cim-schema/2/* -dialect:association
-
filter:{object=DCIM_ComputerSystem?__cimnamespace=root/dcim+CreationClassName=DC
IM_ComputerSystem+Name=srv:system} -u:<user> -p:<pwd> -r:https://<ip>/wsman -
encoding:utf-8 -a:basic -SkipCNcheck -SkipCAcheck
The above example will return all the device instances that are associated with the ComputerSystem class
instance. Output of an instance from the multiple instances is given here.
DCIM_LCRecordLog
CurrentNumberOfRecords = 4980
ElementName = LifeCycle Log
EnabledState = 2
HealthState = 5
InstanceID = DCIM:LifeCycleLog
LogState = 2
MaxNumberOfRecords = 0
OperationalStatus = 2
OverwritePolicy = 8
RequestedState = 12
DCIM_SELRecordLog
CurrentNumberOfRecords = 34
ElementName = System Event Log
EnabledState = 2
HealthState = 5
InstanceID = DCIM:SEL:1
LogState = 2
MaxNumberOfRecords = 512