Get-LXCOManagers
This cmdlet returns a list of all resource managers or detailed information about a specific resource manager that is registered in Lenovo XClarity Orchestrator. When a list is returned, the content of the list can be filtered by manager type and manager health state.
Note
You cannot pipe objects to this cmdlet.
Syntax
Get-LXCOManagers [-Connection LXCOConnection]
-HealthStatus String[]
-ManagerType String[]
[CommonParameter]
Get-LXCOManagers [-Connection LXCOConnection]
-ManagerID String
[-ConnectedInterval 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.
- -HealthStatus String[]
- Specifies the health states of resource managers to return. This can be one or more of the following values, separated by a comma.
- Normal
- Warning
- Critical
- Unknown
- -ManagerType String[]
- Specifies the type of resource managers to return. This can be one or more of the following values, separated by a comma.
- Schneider EcoStruxure IT
- vRealize Operations Manager
- XClarity Administrator
- XClarity Orchestrator
TipIf you specify a portion of a value, the toolkit finds the best match. For example, specifyxclarity to return information for XClarity Orchestrator and all XClarity Administrator resource managers. - -ManagerID String
- Specifies the ID of the resource manager to return.
- -ConnectedInterval String[]
- Specifies when the manager was connected as dates range, using the following format: <startDate>,<endDate>. The end date is optional. If not specified, the current date is used by default.
- 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.ResourceManager.ResourceManagerFullData
If -ManagerID is specified, this cmdlet returns an ResourceManagerFullData object that contains detailed information about the specified resource managers.
- Lenovo.XClarityOrchestrator.PowerShell.Data.ResourceManager.ResourceManagerData
If -ManagerID is not specified, this cmdlet returns an array of ResourceManagerData objects, which contains high-level information for each resource manager.
- Lenovo.XClarityOrchestrator.PowerShell.Data.RequestStatusMessage
If an error occurred, this cmdlet returns a RequestStatusMessage object that contains information about the reason of the failure.
Examples
The following example returns a detailed information about a specific resource manager.
$cred = Get-Credential
Connect-LXCO -HostUri 192.0.2.0 -Credential $cred -SkipCertificateCheck
$result = Get-LXCOManagers -ManagerID 7AF5D198CECF431AAEC674C7CA5A29B5
$result | Format-List
Disconnect-LXCO
The following example returns a list of all registered resource managers, with high-level information about each manager.
$cred = Get-Credential
Connect-LXCO -HostUri 192.0.2.0 -Credential $cred -SkipCertificateCheck
$result = Get-LXCOManagers
$result | Format-List
Disconnect-LXCO
The following example returns list of all registered XClarity Administrator resource managers that are in Critical or Warning health state.
$cred = Get-Credential
Connect-LXCO -HostUri 192.0.2.0 -Credential $cred -SkipCertificateCheck
$result = Get-LXCOManagers -ManagerType administrator -HealthStatus Critical,Normal
$result | Format-List
Disconnect-LXCO
Give documentation feedback