Skip to main content

Get-LXCARackSwitch

This cmdlet retrieves inventory data for one or more RackSwitch switches from the Lenovo XClarity Administrator server.

Note
You cannot pipe objects to this cmdlet.

Syntax

Get-LXCARackSwitch [-Connection LXCAConnection] 
[-Uuid String[]]
[-Unmanaged]
[CommonParameter]

Parameters

-Connection LXCAConnection
Specifies the connection to the Lenovo XClarity Administrator server. If no connection is specified, the result from the last Connect-LXCA cmdlet is used.
-Uuid String[]
Specifies the UUIDs of one or more RackSwitch switches. If no UUID is specified, the cmdlet returns all managed RackSwitch switches unless you also specify the -Unmanage parameter.
-Unmanaged
If specified, the cmdlet returns all RackSwitch switches that are not currently managed. If not specified, this cmdlet returns all managed RackSwitch switches.
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

This cmdlet returns one or more RackSwitch objects.

Examples

The following example returns a list of all managed RackSwitch switches.
$cred = Get-Credential
Connect-LXCA -Host 192.0.2.0 -Credential $cred

$rackswitches = Get-LXCARackSwitch

Disconnect-LXCA