You can retrieve the transfer statistics for snapshots of Volumes or Protection Groups. For volumes, use the
Get-Pfa2VolumeSnapshotTransfer cmdlet, and for protection groups, use the
Get-Pfa2ProtectionGroupSnapshotTransfer cmdlet. Both cmdlets have similar parameters.
PS> Get-Pfa2VolumeSnapshotTransfer -Array $FlashArray -Name 'DEMO-VOL1.TEST'
Name : DEMO-VOL1.TEST
Completed : 8/1/2020 2:38:18 PM
DataTransferred : 41122875
Destroyed : False
PhysicalBytesWritten : 40060829
Progress : 1
Started : 8/1/2020 2:38:05 PM
For protection Group snapshots-
PS> Get-Pfa2ProtectiongroupSnapshotTransfer -Array $FlashArray -Name 'PGDEMO-VOL1.TEST'
Name : PGDEMO-VOL1.TEST
Completed : 8/1/2020 2:44:22 PM
DataTransferred : 41290179
Destroyed : False
PhysicalBytesWritten : 40215252
Progress : 1
Started : 8/1/2020 2:41:53 PM
Since the
Get-Pfa2VolumeSnapshotTransfer and
Get-Pfa2ProtectionGroupSnapshotTransfer cmdlets accept pipeline input, you could create a command to post the output from a
Get-Pfa2VolumeSnapshot or
Get-Pfa2ProtectiongroupSnapshot cmdlet to the same transfer cmdlet for scripting, as shown below.
PS> Get-Pfa2VolumeSnapshot -Array $FlashArray -Name 'DEMO-VOL1.TEST' | Get-Pfa2VolumeSnapshotTransfer
PS> Get-Pfa2ProtectionGroupSnapshot -Array $FlashArray -Name 'DEMO-VOL1.TEST' | Get-Pfa2ProtectionGroupSnapshotTransfer