Get-HP4Snapshot

Short Description

Returns HPE StoreVirtual storage snapshots.

Applies to

Platform: VMware

Product Edition: Standard, Enterprise, Enterprise Plus, Veeam Universal License

Storage System: HPE StoreVirtual (LeftHand/P4000), HPE StoreVirtual VSA

Syntax

This cmdlet provides parameter sets that allow you to:

  • Get HPE StoreVirtual storage snapshots by name.

Get-HP4Snapshot [-Name <string[]>]  [<CommonParameters>]

  • Get HPE StoreVirtual storage snapshots by volume.

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

Type

Required

Position

Accept
Pipeline
Input

Name

Specifies the array of snapshot names. The cmdlet will return snapshots with these names.

String[]

False

Named

False

Volume

Specifies the array of storage volumes. The cmdlet will return snapshots of these volumes.

Accepts the CSanVolume[] object. To get this object, run the Get-HP4Volume cmdlet.

False

Named

False

<CommonParameters>

This cmdlet supports Microsoft PowerShell common parameters. For more information on common parameters, see Microsoft Docs.

Examples

Get-HP4SnapshotExample 1. Getting HPE StoreVirtual Storage Snapshot by Name

This command returns the HPE StoreVirtual storage snapshot by name.

Get-HP4Snapshot -Name "HPE Volume 01 Snapshot"

Get-HP4SnapshotExample 2. Getting All Snapshots of HPE StoreVirtual Storage Volume

This example shows how to get all snapshots of the HPE StoreVirtual storage volume.

$storage = Get-HP4Storage -Name "HPE StoreVirtual VSA"

$volume = Get-HP4Volume -Storage $storage -Name "HPE Volume 01"

Get-HP4Snapshot -Volume $volume

Perform the following steps:

  1. Run the Get-HP4Storage cmdlet. Specify the Name parameter value. Save the result to the $storage variable.
  2. Run the Get-HP4Volume cmdlet. Set the $storage variable as the Storage parameter value. Specify the Name parameter value. Save the result to the $volume variable.
  3. Run the Get-HP4Snapshot cmdlet. Set the $volume variable as the Volume parameter value.

Get-HP4SnapshotExample 3. Getting Specific Snapshot of HPE StoreVirtual Storage Volume

This example shows how to get a specific snapshot of the HPE StoreVirtual storage volume.

$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"

Perform the following steps:

  1. Run the Get-HP4Storage cmdlet. Specify the Name parameter value. Save the result to the $storage variable.
  2. Run the Get-HP4Volume cmdlet. Set the $storage variable as the Storage parameter value. Specify the Name parameter value. Save the result to the $volume variable.
  3. Run the Get-HP4Snapshot cmdlet. Set the $volume variable as the Volume parameter value. Specify the Name parameter value.

Related Commands