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

Get-StoragePluginSnapshot

Short Description

Returns snapshots of Universal Storage API integrated systems.

Applies to

Platform: VMware

Product Edition: Enterprise Plus

Storage System: IBM Spectrum Virtualize, INFINIDAT InfiniBox, Pure Storage

Syntax

Get-StoragePluginSnapshot [-Name <String[]>] [-Volume <CSanVolume[]>] [<CommonParameters>]

Detailed Description

This cmdlet returns snapshots of Universal Storage API integrated systems.

You can get the list of all storage snapshots, or look for a specific snapshot by name or associated volume.

Parameters

Parameter

Description

Required

Position

Accept
Pipeline
Input

Accept
Wildcard
Characters

Name

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

False

Named

False

False

Volume

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

False

Named

True (ByValue,
ByProperty
Name)

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 example shows how to get a storage snapshot by name. The cmdlet will look for the snapshot across all Universal Storage API integrated systems.

Get-StoragePluginSnapshot -Name "DailySnapshot01"

Example 2

This example shows how to get snapshots of several storage volumes.

You will need to perform the following steps:

  1. Run Get-StoragePluginHost to get the storage. Save the result to the $storage variable.
  2. Get the volumes. To do this, run Get-StoragePluginVolume with the $storage variable and save each volume to a separate variable: $volume1, $volume2, etc.
  3. Run Get-StoragePluginSnapshot with the $volume1 and $volume2 variables.

$storage = Get-StoragePluginHost -Name "IBM Spectrum"

$volume1 = Get-StoragePluginVolume -Host $storage -Name "VOLUME-01"

$volume2 = Get-StoragePluginVolume -Host $storage -Name "VOLUME-02"

Get-StoragePluginSnapshot -Volume $volume1, $volume2

Related Commands

Get-StoragePluginHost

Get-StoragePluginVolume