Skip to main content

Add-LXCACabinet

This cmdlet creates a cabinet (rack) instance on the Lenovo XClarity Administrator server.

Note
You cannot pipe objects to this cmdlet.

Syntax

Add-LXCACabinet [-Connection LXCAConnection] 
-Name String
-Height Int
-Location String
-Room String

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 cabinet (rack). The name must be unique.
-Height Int
Specifies the height of the cabinet in rack units. You can specify 37 or 42.
-Location String
Specifies the location of the cabinet.
-Room String
Specifies the room where the cabinet is located.

Results

A new cabinet is created on the XClarity Administrator server and a Cabinet object is returned.

Examples

The following example adds a cabinet.

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

Add-LXCACabinet -Name MyCabinet -Height 42 -Location Lab-1 -Room 101

Disconnect-LXCA