Gets the list of replica copies that specify the copies within a consistency group.
Syntax
Get-EmcReplicaCopy [[-ID] <String>] [-ReplicationServiceCluster <ReplicationServiceCluster>] [-Role <ReplicaCopyRole>] [-Silent] [<CommonParameters>]
Get-EmcReplicaCopy [[-ID] <String>] [-Role <ReplicaCopyRole>] [-Silent] [-ConsistencyGroup <ConsistencyGroup>] [<CommonParameters>]
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:
ProductionCopy: Replica copies with a Production Copy role.
LocalCopy: Replica copies with a Local Copy role.
RemoteCopy: Replica copies with a Remote Copy role.
Unknown: Replica copies with an Unknown role.
-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.