Get HPOVStoragePool - HewlettPackard/POSH-HPEOneView GitHub Wiki

HPE OneView 4.10 Library

Get-HPOVStoragePool

Retrieve Storage Pool resource(s).

SYNTAX

Get-HPOVStoragePool[ [-Name] <String>][ [-StorageSystem] <Object>][ [-Label] <Object>][ [-Scope] <Object>][ [-ApplianceConnection] <Array>][ [-Managed] <SwitchParameter>][ [-Unmanaged] <SwitchParameter>] [<CommonParameters>]

Detailed Description

Obtain a collection of storage pools (i.e. CPG"s) from discovered and managed storage systems.

Parameters

-ApplianceConnection <Array>

Aliases [-Appliance]

Specify one or more HPOneView.Appliance.Connection object(s) or Name property value(s). If Resource object is provided via Pipeline, the ApplianceConnection property of the object will be used.

Default Value: ${Global:ConnectedSessions} | ? Default

Aliases Appliance
Required? false
Position? 4
Default value (${Global:ConnectedSessions} | ? Default)
Accept pipeline input? true (ByPropertyName)
Accept wildcard characters?    False

-Label <Object>

Specify the Label to filter on.

Aliases None
Required? false
Position? 2
Default value
Accept pipeline input? false
Accept wildcard characters?    False

-Managed <SwitchParameter>

Only returned storage pools that are managed.

Aliases None
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters?    False

-Name <String>

Aliases [-PoolName, -Pool]

The name of the specific storage pool resource to be returned. All storage pool resources will be returned if omitted.

Aliases pool, PoolName
Required? false
Position? 0
Default value
Accept pipeline input? false
Accept wildcard characters?    False

-Scope <Object>

Filter resources based on provided Scope membership. By default, all resources for the accounts Active Permissions will be displayed. Allowed values:

* AllResources
* AllResourcesInScope
* HPOneView.Appliance.ScopeCollection
* HPOneView.Appliance.ConnectionPermission
Aliases None
Required? False
Position? 3
Default value AllResourcesInScope
Accept pipeline input? false
Accept wildcard characters?    False

-StorageSystem <Object>

The name or Storage System object of the specific storage system to return storage pool resource from. Can be combined with the PoolName parameter to single out a specific storage pool in a specific storage system.

Aliases systemName, system
Required? false
Position? 1
Default value
Accept pipeline input? true (ByValue)
Accept wildcard characters?    False

-Unmanaged <SwitchParameter>

Only returned storage pools that are unmanaged.

Aliases None
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters?    False

<CommonParameters>

This cmdlet supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, WarningVariable, OutBuffer, PipelineVariable, and OutVariable. For more information, see about_CommonParameters (http://go.microsoft.com/fwlink/?LinkID=113216)

Input Types

HPOneView.Storage.System

Managed Storage System from Get-HPOVStorageSystem.

Return Values

HPOneView.Storage.Pool [System.Management.Automation.PSCustomObject]

Single Storage Pool resource

System.Collections.ArrayList

Multiple Storage Pool resources

The matching storage pool resources.

Examples

 -------------------------- EXAMPLE 1 --------------------------

Get-HPOVStoragePool Status Name Storage System Storage Domain Drive Type RAID Total Allocated Free ------ ---- -------------- -------------- ---------- ---- -------- ----------- ------- OK FC_NO_DN ThreePAR7200-5706 NoDomain FC RAID5 1,048,576.00GB 22.13GB 1,048,553.88GB OK FC_NO_DN ThreePAR7200-2870 NoDomain FC RAID5 1,048,576.00GB 22.13GB 1,048,553.88GB

Get all available storage pools.

 -------------------------- EXAMPLE 2 --------------------------

Get-HPOVStoragePool | format-list Name : FC_NO_DN Status : OK Storage System : ThreePAR7200-5706 Domain : NoDomain Drive Type : FC RAID : RAID5 Total : 1,048,576.00 GB Allocated : 22.13 GB Free : 1,048,553.88 GB Volumes : 0 Volume Templates : 0 Name : FC_NO_DN Status : OK Storage System : ThreePAR7200-2870 Domain : NoDomain Drive Type : FC RAID : RAID5 Total : 1,048,576.00 GB Allocated : 22.13 GB Free : 1,048,553.88 GB Volumes : 0 Volume Templates : 0

Get all available storage pools, display using Format-List to see extended information.

 -------------------------- EXAMPLE 3 --------------------------

$myPool = Get-HPOVStoragePool -name "HP_CPG1"

Return the storage pool resource(s) with the name "HP_CPG1"

 -------------------------- EXAMPLE 4 --------------------------

$myPools = Get-HPOVStoragePool

Return all the storage pool resources

 -------------------------- EXAMPLE 5 --------------------------

Get-HPOVStoragePool -StorageSystem "HP_3PAR_1"

Returns all managed storage pool resources on the storage system "HP_3PAR_1"

 -------------------------- EXAMPLE 6 --------------------------

Get-HPOVStoragePool -poolName "HP_CPG1" -systemName "HP_3PAR_1"

Returns the storage pool resource "HP_CPG1" on the storage system "HP_3PAR_1"

Related Links


Top

HPE OneView 4.00 Library

Get-HPOVStoragePool

Retrieve Storage Pool resource(s).

SYNTAX

Get-HPOVStoragePool[ [-Name] <String>][ [-StorageSystem] <Object>][ [-Label] <Object>][ [-Scope] <Object>][ [-ApplianceConnection] <Array>][ [-Managed] <SwitchParameter>][ [-Unmanaged] <SwitchParameter>] [<CommonParameters>]

Detailed Description

Obtain a collection of storage pools (i.e. CPG's) from discovered and managed storage systems.

Parameters

-ApplianceConnection <Array>

Aliases [-Appliance]

Specify one or more HPOneView.Appliance.Connection object(s) or Name property value(s). If Resource object is provided via Pipeline, the ApplianceConnection property of the object will be used.

Default Value: ${Global:ConnectedSessions} | ? Default

Aliases Appliance
Required? false
Position? 4
Default value (${Global:ConnectedSessions} | ? Default)
Accept pipeline input? true (ByPropertyName)
Accept wildcard characters?    False

-Label <Object>

Specify the Label to filter on.

Aliases None
Required? false
Position? 2
Default value
Accept pipeline input? false
Accept wildcard characters?    False

-Managed <SwitchParameter>

Only returned storage pools that are managed.

Aliases None
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters?    False

-Name <String>

Aliases [-PoolName, -Pool]

The name of the specific storage pool resource to be returned. All storage pool resources will be returned if omitted.

Aliases pool, PoolName
Required? false
Position? 0
Default value
Accept pipeline input? false
Accept wildcard characters?    False

-Scope <Object>

Filter resources based on provided Scope membership. By default, all resources for the accounts Active Permissions will be displayed. Allowed values:

* AllResources
* AllResourcesInScope
* HPOneView.Appliance.ScopeCollection
* HPOneView.Appliance.ConnectionPermission
Aliases None
Required? False
Position? 3
Default value AllResourcesInScope
Accept pipeline input? false
Accept wildcard characters?    False

-StorageSystem <Object>

The name or Storage System object of the specific storage system to return storage pool resource from. Can be combined with the PoolName parameter to single out a specific storage pool in a specific storage system.

Aliases systemName, system
Required? false
Position? 1
Default value
Accept pipeline input? true (ByValue)
Accept wildcard characters?    False

-Unmanaged <SwitchParameter>

Only returned storage pools that are unmanaged.

Aliases None
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters?    False

<CommonParameters>

This cmdlet supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, WarningVariable, OutBuffer, PipelineVariable, and OutVariable. For more information, see about_CommonParameters (http://go.microsoft.com/fwlink/?LinkID=113216)

Input Types

HPOneView.Storage.System

Managed Storage System from Get-HPOVStorageSystem.

Return Values

HPOneView.Storage.Pool [System.Management.Automation.PSCustomObject]

Single Storage Pool resource

System.Collections.ArrayList

Multiple Storage Pool resources

The matching storage pool resources.

Examples

 -------------------------- EXAMPLE 1 --------------------------

Get-HPOVStoragePool Status Name Storage System Storage Domain Drive Type RAID Total Allocated Free ------ ---- -------------- -------------- ---------- ---- -------- ----------- ------- OK FC_NO_DN ThreePAR7200-5706 NoDomain FC RAID5 1,048,576.00GB 22.13GB 1,048,553.88GB OK FC_NO_DN ThreePAR7200-2870 NoDomain FC RAID5 1,048,576.00GB 22.13GB 1,048,553.88GB

Get all available storage pools.

 -------------------------- EXAMPLE 2 --------------------------

Get-HPOVStoragePool | format-list Name : FC_NO_DN Status : OK Storage System : ThreePAR7200-5706 Domain : NoDomain Drive Type : FC RAID : RAID5 Total : 1,048,576.00 GB Allocated : 22.13 GB Free : 1,048,553.88 GB Volumes : 0 Volume Templates : 0 Name : FC_NO_DN Status : OK Storage System : ThreePAR7200-2870 Domain : NoDomain Drive Type : FC RAID : RAID5 Total : 1,048,576.00 GB Allocated : 22.13 GB Free : 1,048,553.88 GB Volumes : 0 Volume Templates : 0

Get all available storage pools, display using Format-List to see extended information.

 -------------------------- EXAMPLE 3 --------------------------

$myPool = Get-HPOVStoragePool -name "HP_CPG1"

Return the storage pool resource(s) with the name "HP_CPG1"

 -------------------------- EXAMPLE 4 --------------------------

$myPools = Get-HPOVStoragePool

Return all the storage pool resources

 -------------------------- EXAMPLE 5 --------------------------

Get-HPOVStoragePool -StorageSystem "HP_3PAR_1"

Returns all managed storage pool resources on the storage system "HP_3PAR_1"

 -------------------------- EXAMPLE 6 --------------------------

Get-HPOVStoragePool -poolName "HP_CPG1" -systemName "HP_3PAR_1"

Returns the storage pool resource "HP_CPG1" on the storage system "HP_3PAR_1"

Related Links


Top
⚠️ **GitHub.com Fallback** ⚠️