Get-LXCAServer
This cmdlet retrieves inventory data for one or more servers (including rack servers and compute nodes) from Lenovo XClarity Administrator.
Note
You cannot pipe objects to this cmdlet.
Syntax
Get-LXCAServer [-Connection LXCAConnection]
[-Uuid String[]]
[-Type SystemType]
[-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 servers, separated by a comma, for which information is to be returned. If no UUID is specified, the cmdlet returns information for all servers.
- -Type SystemType
- Specifies the type of server to return. Can have one of the fallowing values.
ComputeNode
EdgeServer
RackServer
ThinkServer
- -Unmanaged
- If specified, the cmdlet returns servers that are not currently managed. If not specified, this cmdlet returns managed servers.
- 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 Server objects.
Examples
The following example retrieves inventory data for two managed servers.
$cred = Get-Credential
Connect-LXCA -Host192.0.2.0 -Credential $cred
$inventory_data = Get-LXCAServer –UUID AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA,BBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBB
Disconnect-LXCAThe following example retrieves a list of all managed servers.
$cred = Get-Credential
Connect-LXCA -Host 192.0.2.0 -Credential $cred
$servers = Get-LXCAServer
Disconnect-LXCAThe following example retrieves a list of all unmanaged servers.
$cred = Get-Credential
Connect-LXCA -Host 192.0.2.0 -Credential $cred
$unmanaged_servers = Get-LXCAServer -Unmanaged
Disconnect-LXCA
Give documentation feedback