Skip to main content
SnapCenter 4.9 cmdlets

Get-SdSnapMirror

Contributors

Gets the SnapMirror relationship status for storage system volumes you specify.

Syntax

Get-SdSnapMirror [-StorageSystem]  <String>  [-Volume]  <String[]>  [-Session]  <String>  [-Host]  <String>

Detailed Description

Gets the SnapMirror relationship status for storage system volumes you specify. If you do not specify any volumes, you retrieve SnapMirror relationships for all registered virtual storage servers.This cmdlet is supported in clustered Data ONTAP 8.2 and later. Related cmdlets: Invoke-SdSnapMirrorUpdate

Parameters

Name Description Required? Pipeline Input Default Value

StorageSystem

Specifies the primary storage system name or IP address containing the volumes for which you want to retrieve the SnapMirror relationship status.

false

true (ByPropertyName)

Volume

Indicates a comma-separated list of storage system volumes for which you want to retrieve the SnapMirror relationship status.

false

true (ByPropertyName)

Session

false

true (ByPropertyName)

Host

Specifies the name or IP address of the host on which you execute the operation. The default is your local machine.

false

true (ByPropertyName)

Examples

Example 1: Getting SnapMirror information for a storage system volume

 PS C:\> Get-SdSnapMirror -StorageSystem 172.17.162.61 -Volume test_vol1 -Verbose

In this example syntax, you retrieve SnapMirror relationship status information for the volume test_vol1.

Get-SdSnapMirror -StorageSystem 172.17.162.61 -Volume test_vol1 -Verbose
SnapMirrorRelationshipType : data_protection
SnapMirrorPolicyName   : DPDefault
SnapMirrorRelationship : vserver : test_vol1 ==> vserver : test_vol2
SnapMirrorState: snapmirrored
SnapMirrorStatus   : Idle
Lag: 0
LagSpecified   : False
BaseSnapshotName   : snapmirror.9a000021-fb71-11e1-8315-123478563412_2147484917.2013-07-19_124400
Message: Success.

Example 2: Getting SnapVault information for a storage system volume

 PS C:\> Get-SdSnapMirror -StorageSystem 172.17.162.61 -Volume snapvault_source -Verbose

In this example syntax, you retrieve SnapVault relationship status information for the volume snapvault_source.

PS C:\Users\administrator.NEXTGEN> Get-SdSnapMirror -StorageSystem 172.17.162.61 -Volume snapvault_source -Verbose
SnapMirrorRelationshipType : vault
SnapMirrorPolicyName   : XDPDefault
SnapMirrorRelationship : vserver : snapvault_source ==> vserver : snapvault_dest
SnapMirrorState: snapmirrored
SnapMirrorStatus   : Idle
Lag: 0
LagSpecified   : False
BaseSnapshotName   : DATA
Message: Success.