This is an archive version of the document. To get the most up-to-date information, see the current version.

Get-HP4Snapshot

In this article

    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>]

    Related Commands

    Get-HP4Volume

    Detailed Description

    This cmdlet returns HPE StoreVirtual storage snapshots.

    You can get all storage snapshots, or look for a specific snapshot name or volume.

    Alias

    Get-VBRHPSnapshot

    Parameters

    Parameter

    Description

    Required

    Position

    Accept
    Pipeline
    Input

    Accept
    Wildcard
    Characters

    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 looks for a snapshot by name.

    PS C:\PS> Get-HP4Snapshot -Name "HPE Volume 01 Snapshot"

    Example 2

    This command looks for all snapshots of a volume.

    1. Run Get-HP4Storage to get the storage and save it to the $storage variable.
    2. Run Get-HP4Volume with the $storage variable. Save the volume to the $volume variable.
    3. Run Get-HP4Snapshot with the $volume variable.

    PS C:\PS> $storage = Get-HP4Storage -Name "HPE StoreVirtual VSA"

    PS C:\PS> $volume = Get-HP4Volume -Storage $storage -Name "HPE Volume 01"

    PS C:\PS> Get-HP4Snapshot -Volume $volume

    Example 3

    This command looks for a specific snapshot of a volume.

    1. Run Get-HP4Storage to get the storage and save it to the $storage variable.
    2. Run Get-HP4Volume with the $storage variable. Save the volume to the $volume variable.
    3. Run Get-HP4Snapshot with the $volume variable. Indicate the snapshot name.

    PS C:\PS> $storage = Get-HP4Storage -Name "HPE StoreVirtual VSA"

    PS C:\PS> $volume = Get-HP4Volume -Storage $storage -Name "HPE Volume 01"

    PS C:\PS> Get-HP4Snapshot -Volume $volume -Name "HPE Volume 01 Snapshot"