Get-EmcReplicaCopy

Gets the list of replica copies that specify the copies within a consistency group.

 

Syntax

 

Parameters

-ID <String>

Attributes: Optional, Position: 1

Specifies the name or ID of the replica copy. Wildcards are permitted.

 

-ReplicationServiceCluster <ReplicationServiceCluster>

Attributes: Optional, Position: named

Specifies the replication cluster that owns and manages the replica copy.

 

-Role <ReplicaCopyRole>

Attributes: Optional, Position: named

Specifies the replica copy Role Type. The value can be any combination of the following:

 

-Silent <SwitchParameter>

Attributes: Optional, Position: named

Turns off all the informational and verbose messages. However, it still displays errors.

 

-ConsistencyGroup <ConsistencyGroup>

Attributes: Optional, Position: named

Specifies the consistency group that owns and manages the replica copy.

 

<CommonParameters>

This cmdlet supports these common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, WarningVariable, OutBuffer, and OutVariable. Type get-help about_commonparameters for more details.

 

Examples

-------------- Example 1 --------------

C:\PS>$service = Get-EmcReplicationService -ID *60*

C:\PS>$cluster = Get-EmcReplicationServiceCluster -ReplicationService $service

C:\PS>$copy = Get-EmcReplicaCopy -ReplicationServiceCluster $cluster -Role ProductionCopy

This example gets a replica copy for a specified replication service cluster.

 

-------------- Example 2 --------------

C:\PS>$service = Get-EmcReplicationService -ID *60*

C:\PS>$cluster = Get-EmcReplicationServiceCluster -ReplicationService $service

C:\PS>$group = Get-EmcConsistencyGroup -ReplicationServiceCluster $cluster -ID CG_PSTest

C:\PS>$copy = Get-EmcReplicaCopy -ConsistencyGroup $group -Role ProductionCopy,LocalCopy

This example gets a replica copy for a specified consistency group.