Get-ReplicationSession
SYNOPSIS
Gets details of replication sessions on the PowerStore cluster.
SYNTAX
All (Default)
Get-ReplicationSession [-Cluster] <Cluster> [-Type {Volume | VolumeGroup}] [-Identify] [<CommonParameters>]
ById
Get-ReplicationSession [-Cluster] <Cluster> [-Id] <String[]> [<CommonParameters>]
ByResourceId
Get-ReplicationSession [-Cluster] <Cluster> -ResourceId <String[]> [<CommonParameters>]
ByVolumeName
Get-ReplicationSession [-Cluster] <Cluster> -VolumeName <String[]> [<CommonParameters>]
ByVolumeGroupName
Get-ReplicationSession [-Cluster] <Cluster> -VolumeGroupName <String[]> [<CommonParameters>]
DESCRIPTION
Returns details of replication sessions on a PowerStore cluster.
EXAMPLES
Example 1
PS C:\> Get-ReplicationSession -Cluster $cluster
Where $cluster is a PowerStore cluster instance. Returns all replication sessions on the PowerStore cluster.
Example 2
PS C:\> Get-ReplicationSession -Cluster $cluster -Identify
Where $cluster is a PowerStore cluster instance. Returns a list of Identity objects with the Id of each replication session on the PowerStore cluster.
Example 3
PS C:\> Get-ReplicationSession -Cluster $cluster -Id cecc123e-6fee-4014-8f20-430c60b09afc
Where $cluster is a PowerStore cluster instance. Returns details of replication session cecc123e-6fee-4014-8f20-430c60b09afc.
Example 4
PS C:\> Get-ReplicationSession -Cluster $cluster -Type Volumegroup
Where $cluster is a PowerStore cluster instance. Returns only replication sessions of volume groups.
PARAMETERS
-Cluster
A PowerStore cluster instance.
Type: Cluster
Parameter Sets: (All)
Aliases:
Required: True
Position: 0
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-Type
Resource type filter. Specify either volume or volumegroup.
Type: String
Parameter Sets: All
Aliases:
Accepted values: Volume, VolumeGroup
Required: False
Position: Named
Default value: None
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False
-Identify
Returns replication session Ids as strings.
Type: SwitchParameter
Parameter Sets: All
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-Id
Replication session Id.
Type: String[]
Parameter Sets: ById
Aliases:
Required: True
Position: 1
Default value: None
Accept pipeline input: True (ByPropertyName, ByValue)
Accept wildcard characters: False
-ResourceId
Specify a list of storage resource Ids (volume or volume group Id).
Type: String[]
Parameter Sets: ByResourceId
Aliases:
Required: True
Position: Named
Default value: None
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False
-VolumeName
Specify a list of volume names.
Type: String[]
Parameter Sets: ByVolumeName
Aliases:
Required: True
Position: Named
Default value: None
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False
-VolumeGroupName
Specify a list of volume group names.
Type: String[]
Parameter Sets: ByVolumeGroupName
Aliases:
Required: True
Position: Named
Default value: None
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False
CommonParameters
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.