Get-LXCODeviceInventory
This cmdlet returns inventory data about a specific managed device.
Syntax
Get-LXCODeviceInventory [-Connection LXCOConnection]
-DeviceId 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.
- -DeviceId String
- Specifies the ID of the device to return inventory data.
- 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.ChassisInventoryInfo
If device specified by -DeviceId is a chassis, this cmdlet returns a ChassisInventoryInfo object that contains inventory information about the specified device
- Lenovo.XClarityOrchestrator.PowerShell.Data.Devices.SwitchInventoryInfo
If device specified by -DeviceId is a switch, this cmdlet returns a SwitchInventoryInfo object that contains inventory information about the specified device
- Lenovo.XClarityOrchestrator.PowerShell.Data.Devices.StorageInventoryInfo
If device specified by -DeviceId is a storage, this cmdlet returns a StorageInventoryInfo object that contains inventory information about the specified device
- Lenovo.XClarityOrchestrator.PowerShell.Data.Devices.ServerInventoryInfo
If device specified by -DeviceId is a server, this cmdlet returns a ServerInventoryInfo object that contains inventory information about the specified device
- 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 inventory data about a specific device
$cred = Get-Credential
Connect-LXCO -HostUri 192.0.2.0 -Credential $cred -SkipCertificateCheck
$result = Get-LXCODeviceInventory `
-DeviceID 00632D78DE644E23B712E200FE449787-7AF5D198CECF431AAEC674C7CA5A29B5
$result | Format-List
Disconnect-LXCO