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 logical enclosure objects from the HPE OneView appliance.Syntax
Description
Get-OVLogicalEnclosure retrieves logical enclosure objects from HPE OneView. A logical enclosure is the software-defined representation of one or more HPE Synergy frames that are managed as a single unit under a shared enclosure group.
Logical enclosure vs. physical enclosure
| Concept | Cmdlet | Description |
|---|---|---|
| Physical enclosure | Get-OVEnclosure | The physical chassis hardware — the frame itself. |
| Logical enclosure | Get-OVLogicalEnclosure | The software policy layer applied to one or more frames, tied to an enclosure group. |
Logical enclosures are a concept exclusive to HPE Synergy. HPE BladeSystem c-Class enclosures managed by OneView do not have a separate logical enclosure layer.
-EnclosureGroup to filter by the associated enclosure group. Use -NonCompliant to return only logical enclosures whose current state does not match their enclosure group configuration.
Parameters
The name (or wildcard pattern) of the logical enclosure to retrieve.
Filters results to logical enclosures associated with the specified enclosure group. Accepts a name (string) or an enclosure group object from
Get-OVEnclosureGroup. Accepts pipeline input.Returns only logical enclosures that are out of compliance with their enclosure group definition. Useful for identifying frames that require a configuration update.
Filters results to resources within the specified scope. Defaults to
AllResourcesInScope, which returns all resources accessible to the current user’s active permissions.The HPE OneView appliance connection. Defaults to the current default session.
Examples
Example 1: List all logical enclosures
Return all logical enclosures from the connected appliance.Example 2: Get a specific logical enclosure
Retrieve a single logical enclosure by name.Example 3: Filter by enclosure group
Return all logical enclosures associated with a specific enclosure group.Example 4: Find non-compliant logical enclosures
Return logical enclosures that have drifted from their enclosure group definition.Example 5: Trigger an update on non-compliant enclosures
Find non-compliant logical enclosures and update them to bring them back into compliance.Output
Returns one or moreHPEOneView.LogicalEnclosure objects. Key properties include name, state, complianceState, enclosureGroupUri, enclosureUris, and uri.
Returns an empty collection when no matching resources are found.
Related cmdlets
Get-OVEnclosure— Retrieve the underlying physical enclosure (frame) objects.Get-OVEnclosureGroup— Retrieve enclosure group templates.New-OVLogicalEnclosure— Create a logical enclosure for Synergy frames.Update-OVLogicalEnclosure— Update or re-apply the enclosure group configuration.Remove-OVLogicalEnclosure— Delete a logical enclosure.