Skip to main content

Add-LXCARack

This cmdlet creates a rack.

Note
You cannot pipe objects to this cmdlet.

Syntax

Add-LXCARack [-Connection LXCAConnection] 
-Name String
-Height Int
-Location String
-Room String
[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.
-Name String
Specifies the name of rack. The name must be unique.

The name can be 1 - 256 characters. You can use upper and lower case letter, number, and the following special characters: dash (-), underscore (_), and period (.). The first and last character cannot be a dash.

-Height Int
Specifies the height of the rack, in rack units. The available values are 6, 12, 18, 25, 37, 42, 45, 46, 48, 50, and 52.
-Location String
Specifies the location of rack.

The location can be 1 - 256 characters. You can use upper and lower case letter, number, and the following special characters: dash (-), underscore (_), and period (.). The first and last character cannot be a dash.

-Room String
Specifies the room where the rack is located.

The room can be 1 - 256 characters. You can use upper and lower case letter, number, and the following special characters: dash (-), underscore (_), and period (.). The first and last character cannot be a dash.

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 a Rack object.

Examples

The following example creates a rack.

$cred = Get-Credential
Connect-LXCA -Host 192.0.2.0 -Credential $cred

$rack = Add-LXCARack -Name MyRack -Height 42 -Location Lab-1 -Room 101

Disconnect-LXCA