Get-HP4Snapshot
Short Description
Returns HPE StoreVirtual storage snapshots.
Applies to
Platform: VMware
Product Edition: Standard, Enterprise, Enterprise Plus
Storage System: HPE StoreVirtual (LeftHand/P4000), HPE StoreVirtual VSA
Syntax
Get-HP4Snapshot [-Name <string[]>][<CommonParameters>] -OR- Get-HP4Snapshot [-Name <string[]>] [-Volume <CSanVolume[]>][<CommonParameters>] |
Detailed Description
This cmdlet returns existing HPE StoreVirtual storage snapshots.
You can get all storage snapshots, or look for a specific snapshot by name or associated volume.
Alias
Get-VBRHPSnapshot
Parameters
Parameter | Description | Required | Position | Accept | Accept |
Name | Specifies the array of snapshot names. The cmdlet will return snapshots with these names. | False | Named | False | True |
Volume | Specifies the array of storage volumes. The cmdlet will return snapshots of these volumes. | False | Named | False | False |
<CommonParameters>
This cmdlet supports Microsoft PowerShell common parameters. For more information about common parameters, see http://go.microsoft.com/fwlink/p/?LinkID=113216.
Example 1
This command returns the HPE StoreVirtual storage snapshot by name.
Example 2
This example shows how to get all snapshots of the HPE StoreVirtual storage volume.
You will need to perform the following steps:
- Run Get-HP4Storage to get the storage. Save the result to the $storage variable.
- Run Get-HP4Volume with the $storage variable. Save the result to the $volume variable.
- Run Get-HP4Snapshot with the $volume variable.
$storage = Get-HP4Storage -Name "HPE StoreVirtual VSA" $volume = Get-HP4Volume -Storage $storage -Name "HPE Volume 01" Get-HP4Snapshot -Volume $volume |
Example 3
This example shows how to get a specific snapshot of the HPE StoreVirtual storage volume.
You will need to perform the following steps:
- Run Get-HP4Storage to get the storage and save it to the $storage variable.
- Run Get-HP4Volume with the $storage variable. Save the volume to the $volume variable.
- Run Get-HP4Snapshot with the $volume variable. Indicate the snapshot name.
$storage = Get-HP4Storage -Name "HPE StoreVirtual VSA" $volume = Get-HP4Volume -Storage $storage -Name "HPE Volume 01" Get-HP4Snapshot -Volume $volume -Name "HPE Volume 01 Snapshot" |
Related Commands