Skip to main content
SnapCenter 5.0 cmdlets

Get-SdSnapMirrorPolicyRule

Contributors

Gets the rules for managing Snapshot retention on the SnapVault secondary storage system.

Syntax

Get-SdSnapMirrorPolicyRule [-SourceStorageSystem]  <String>  [-SourceStorageSystemVolume]  <String>  [-DestinationStorageSystem]  <String>  [-DestinationStorageSystemVolume]  <String>  [-Session]  <String>  [-Host]  <String>

Detailed Description

Gets the rules for managing Snapshot retention on the SnapVault secondary storage system. Related cmdlets: Set-SdSnapMirrorPolicyRule, Remove-SdSnapMirrorPolicyRule

Parameters

Name Description Required? Pipeline Input Default Value

SourceStorageSystem

Specifies the primary storage system name containing the source volumes of the SnapMirror relationship for which you want to retrieve the SnapMirror policy rules. IP addresses are not supported.

true

true (ByValue, ByPropertyName)

SourceStorageSystemVolume

Specifies the source volume of the SnapMirror relationship for which you want to retrieve the SnapMirror policy rules.

true

true (ByPropertyName)

DestinationStorageSystem

Specifies the secondary storage system name containing the destination volumes of the SnapMirror relationship for which you want to retrieve the SnapMirror policy rules. IP addresses are not supported.

true

true (ByValue, ByPropertyName)

DestinationStorageSystemVolume

Specifies the destination volume of the SnapMirror relationship for which you want to retrieve the SnapMirror policy rules.

true

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 policy rule information from the policy for a SnapMirror relationship

 PS C:\> Get-SdSnapMirrorPolicyRule -SourceStorageSystem vs1 -SourceStorageSystemVolume src_vol -DestinationStorageSystem vs2 -DestinationStorageSystemVolume dest_vol01 -verbose

Get the SnapMirror policy rules from the policy on the specified relationship.

SnapLabel  : daily
NumberOfSnapsToKeep: 10
PreserveSnaps  :
PreserveSnapsSpecified : False
WarnThreshold  : 0
SnapMirrorPolicy   : snapvault_policy
SnapLabel  : weekly
NumberOfSnapsToKeep: 3
PreserveSnaps  :
PreserveSnapsSpecified : False
WarnThreshold  : 2
SnapMirrorPolicy   : snapvault_policy
SnapLabel  : mothly
NumberOfSnapsToKeep: 4
PreserveSnaps  :
PreserveSnapsSpecified : False
WarnThreshold  : 3
SnapMirrorPolicy   : snapvault_policy
The getting SnapMirror policy rules operation is successful.