Get-LXCODevicesConfiguration
This cmdlet returns details about the configuration pattern status for managed servers.
Note
You cannot pipe objects to this cmdlet.
Syntax
Get-LXCODevicesConfiguration [-Connection LXCOConnection]
[-ComplianceStatus String[]]
[-DeviceStatus String[]]
[-AssignedPattern String[]]
[-DeviceName String[]]
[-GroupName String[]]
[CommonParameter]
Parameters
- -Connection LXCOConnection
- Specifies the connection to the Lenovo XClarity Orchestrator server. If no connection is specified, the result from the last Connect-LXCO cmdlet is used.
- -ComplianceStatus String[]
- Specifies the compliance status of the devices to be returned. This can be one or more of the following values, separated by comma.
- Compliant
- DeployFailed
- NoPatternAssigned
- Noncompliant
- PendingComplianceCheck
- PendingRestart
- -DeviceStatus String[]
- Specifies the status of the devices to be returned. This can be one or more of the following values, separated by comma.
- Critical
- Normal
- Warning
- -AssignedPattern String[]
- Specifies one or more full or partial assigned patterns names, separated by a comma. A list of all devices that match specified pattern is returned.
- -DeviceName String[]
- Specifies one or more full or partial device names, separated by a comma. A list of all devices that match specified pattern is returned.
- -GroupName String[]
- Specifies one or more full or partial resource-group names, separated by a comma. A list of all devices that match specified pattern is returned.
- CommonParameters
- This cmdlet supports the following common parameters: -Verbose, -Debug, -ErrorAction, -ErrorVariable, -WarningAction, -WarningVariable, -OutBuffer, -PipelineVariable, -OutVariable. For detailed information about each common parameter, see the Microsoft PowerShell Common Parameters webpage.
Results
- Lenovo.XClarityOrchestrator.PowerShell.Data.Devices.DeviceConfigPatternDetails[]
If request is successful, this cmdlet returns a DeviceConfigPatternDetails[] array that contains information about configuration patterns.
- Lenovo.XClarityOrchestrator.PowerShell.Data.RequestStatusMessage
If an error occurred, this cmdlet returns a RequestStatusMessage object that contains information about the reason for the failure.
Examples
The following example returns all devices that are not compliant and have Normal or Warning status
$cred = Get-Credential
Connect-LXCO -HostUri 192.0.2.0 -Credential $cred -SkipCertificateCheck
SkipCertificateCheck
$details = Get-LXCODevicesConfiguration -ComplianceStatus Noncompliant `
-DeviceStatus Normal,Warning
# show the result
$details
Disconnect-LXCO
Give documentation feedback