Documentation Index
Fetch the complete documentation index at: https://mintlify.com/HewlettPackard/POSH-HPEOneView/llms.txt
Use this file to discover all available pages before exploring further.
Synopsis
Retrieve one or more rack objects from the HPE OneView appliance.Syntax
Description
Get-OVRack retrieves rack resource objects from HPE OneView. A rack represents a physical equipment rack installed in a data center. Racks are used in HPE OneView to:
- Track the physical U-slot location of servers, enclosures, and other managed devices.
- Model power and cooling load per rack.
- Contribute to the data center floor layout and capacity plan.
Add-OVRackToDataCenter. Managed devices (servers and enclosures) are associated with racks using Add-OVResourceToRack.
Use -Name to filter by rack name. Use -Datacenter to return only racks associated with a specific data center.
Parameters
The name (or wildcard pattern) of the rack to retrieve. Supports
* and ? wildcard characters.Example: "Rack-*" returns all racks whose name begins with Rack-.Filters results to racks associated with the specified data center. Accepts a data center object returned by
Get-OVDataCenter.The HPE OneView appliance connection object or connection name. Defaults to the current default connection stored in
${Global:ConnectedSessions}.Examples
Example 1: List all racks
Return all racks defined on the appliance.Example 2: Get a specific rack by name
Retrieve a single rack and display its properties.Example 3: Filter racks within a data center
Retrieve all racks located in thePrimary DC data center.
Example 4: Filter with a wildcard
Return all racks whose names begin withRack-DR-.
Example 5: List devices in a rack
Retrieve a rack and then list all devices assigned to it.Output
Returns one or moreHPEOneView.Facilities.Rack objects. Key properties include name, serialNumber, depth, height, width, thermalLimit, uHeight, and uri.
Returns an empty collection when no matching racks are found.
Related cmdlets
New-OVRack— Create a new rack.Set-OVRack— Modify rack properties.Remove-OVRack— Delete a rack.Get-OVDataCenter— Retrieve data centers that contain racks.Add-OVRackToDataCenter— Place a rack in a data center.Add-OVResourceToRack— Assign a managed device (server or enclosure) to a rack slot.Get-OVRackMember— List devices assigned to a rack.