Skip to content

Commit 101f1ea

Browse files
committed
Fix examples
1 parent 6c61abd commit 101f1ea

File tree

2 files changed

+26
-16
lines changed

2 files changed

+26
-16
lines changed

docset/winserver2019-ps/storagereplica/Set-SRNetworkConstraint.md

Lines changed: 13 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
description: Use this topic to help manage Windows and Windows Server technologies with Windows PowerShell.
33
external help file: MSFT_WvrAdminTasks.cdxml-help.xml
44
Module Name: StorageReplica
5-
ms.date: 12/20/2016
5+
ms.date: 07/06/2021
66
online version: https://docs.microsoft.com/powershell/module/storagereplica/set-srnetworkconstraint?view=windowsserver2019-ps&wt.mc_id=ps-gethelp
77
schema: 2.0.0
88
title: Set-SRNetworkConstraint
@@ -30,8 +30,10 @@ Any networks not specified by this cmdlet are no longer used by Storage Replica.
3030
## EXAMPLES
3131

3232
### Example 1: Set a constraint for stand-alone computers
33+
34+
This command lists available interface indexes by using the **Get-NetIPConfiguration** cmdlet. Run this command on both servers.
35+
3336
```
34-
This command lists available interface indexes by using the **Get-NetIPConfiguration** cmdlet. Run this command on both servers.
3537
PS C:\>Get-NetIPConfiguration
3638
InterfaceAlias : Ethernet
3739
InterfaceIndex : 2
@@ -54,18 +56,21 @@ IPv6DefaultGateway : fe80::ea65:49ff:fecd:4141
5456
IPv4DefaultGateway : 172.24.18.1
5557
DNSServer : 10.177.9.210
5658
10.177.9.211
59+
```
5760

61+
The next command sets the network constraint for interfaces and replication groups. The final command makes sure that the constraint takes effect immediately by using the **Update-SmbMultichannelConnection** cmdlet.
5862

59-
The next command sets the network constraint for interfaces and replication groups. The final command makes sure that the constraint takes effect immediately by using the Update-SmbMultichannelConnection cmdlet.
60-
PS C:\>Set-SRNetworkConstraint -SourceComputerName "SR-SRV06" -SourceRGName "ReplicationGroup02" -SourceNWInterface 6 -DestinationComputerName "SR-SRV05" -DestinationRGName "ReplicationGroup01" -DestinationNWInterface 2
63+
```
64+
PS C:\>Set-SRNetworkConstraint -SourceComputerName "SR-SRV06" -SourceRGName "ReplicationGroup02" -SourceNWInterfaceIndex 6 -DestinationComputerName "SR-SRV05" -DestinationRGName "ReplicationGroup01" -DestinationNWInterfaceIndex 2
6165
C:\PS> Update-SmbMultichannelConnection
6266
```
6367

6468
This example sets the network constraint for interfaces and replication groups on stand-alone computers.
6569

6670
### Example 2: Set a constraint for a stretch cluster
71+
6772
```
68-
PS C:\>Set-SRNetworkConstraint -SourceComputerName "SR-SRV01" -SourceRGName "Group01" -SourceNWInterfaceIndex "Cluster Network 1","Cluster Network 2" -DestinationComputerName "SR-SRV03" -DestinationRGName "Group02" -DestinationNWInterfaceIndex "Cluster Network 1","Cluster Network 2"
73+
PS C:\>Set-SRNetworkConstraint -SourceComputerName "SR-SRV01" -SourceRGName "Group01" -SourceNWInterface "Cluster Network 1","Cluster Network 2" -DestinationComputerName "SR-SRV03" -DestinationRGName "Group02" -DestinationNWInterface "Cluster Network 1","Cluster Network 2"
6974
```
7075

7176
This command sets a network constraint for a specific set of cluster networks in a stretch cluster.
@@ -78,7 +83,7 @@ Runs the cmdlet as a background job. Use this parameter to run commands that tak
7883
```yaml
7984
Type: SwitchParameter
8085
Parameter Sets: (All)
81-
Aliases:
86+
Aliases:
8287

8388
Required: False
8489
Position: Named
@@ -204,13 +209,13 @@ Accept wildcard characters: False
204209
205210
### -ThrottleLimit
206211
Specifies the maximum number of concurrent operations that can be established to run the cmdlet.
207-
If this parameter is omitted or a value of `0` is entered, then Windows PowerShell® calculates an optimum throttle limit for the cmdlet based on the number of CIM cmdlets that are running on the computer.
212+
If this parameter is omitted or a value of `0` is entered, then Windows PowerShell® calculates an optimum throttle limit for the cmdlet based on the number of CIM cmdlets that are running on the computer.
208213
The throttle limit applies only to the current cmdlet, not to the session or to the computer.
209214

210215
```yaml
211216
Type: Int32
212217
Parameter Sets: (All)
213-
Aliases:
218+
Aliases:
214219
215220
Required: False
216221
Position: Named

docset/winserver2022-ps/storagereplica/Set-SRNetworkConstraint.md

Lines changed: 13 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
description: Use this topic to help manage Windows and Windows Server technologies with Windows PowerShell.
33
external help file: MSFT_WvrAdminTasks.cdxml-help.xml
44
Module Name: StorageReplica
5-
ms.date: 12/20/2016
5+
ms.date: 07/06/2021
66
online version: https://docs.microsoft.com/powershell/module/storagereplica/set-srnetworkconstraint?view=windowsserver2022-ps&wt.mc_id=ps-gethelp
77
schema: 2.0.0
88
title: Set-SRNetworkConstraint
@@ -30,8 +30,10 @@ Any networks not specified by this cmdlet are no longer used by Storage Replica.
3030
## EXAMPLES
3131

3232
### Example 1: Set a constraint for stand-alone computers
33+
34+
This command lists available interface indexes by using the **Get-NetIPConfiguration** cmdlet. Run this command on both servers.
35+
3336
```
34-
This command lists available interface indexes by using the **Get-NetIPConfiguration** cmdlet. Run this command on both servers.
3537
PS C:\>Get-NetIPConfiguration
3638
InterfaceAlias : Ethernet
3739
InterfaceIndex : 2
@@ -54,18 +56,21 @@ IPv6DefaultGateway : fe80::ea65:49ff:fecd:4141
5456
IPv4DefaultGateway : 172.24.18.1
5557
DNSServer : 10.177.9.210
5658
10.177.9.211
59+
```
5760

61+
The next command sets the network constraint for interfaces and replication groups. The final command makes sure that the constraint takes effect immediately by using the Update-SmbMultichannelConnection cmdlet.
5862

59-
The next command sets the network constraint for interfaces and replication groups. The final command makes sure that the constraint takes effect immediately by using the Update-SmbMultichannelConnection cmdlet.
60-
PS C:\>Set-SRNetworkConstraint -SourceComputerName "SR-SRV06" -SourceRGName "ReplicationGroup02" -SourceNWInterface 6 -DestinationComputerName "SR-SRV05" -DestinationRGName "ReplicationGroup01" -DestinationNWInterface 2
63+
```
64+
PS C:\>Set-SRNetworkConstraint -SourceComputerName "SR-SRV06" -SourceRGName "ReplicationGroup02" -SourceNWInterfaceIndex 6 -DestinationComputerName "SR-SRV05" -DestinationRGName "ReplicationGroup01" -DestinationNWInterfaceIndex 2
6165
C:\PS> Update-SmbMultichannelConnection
6266
```
6367

6468
This example sets the network constraint for interfaces and replication groups on stand-alone computers.
6569

6670
### Example 2: Set a constraint for a stretch cluster
71+
6772
```
68-
PS C:\>Set-SRNetworkConstraint -SourceComputerName "SR-SRV01" -SourceRGName "Group01" -SourceNWInterfaceIndex "Cluster Network 1","Cluster Network 2" -DestinationComputerName "SR-SRV03" -DestinationRGName "Group02" -DestinationNWInterfaceIndex "Cluster Network 1","Cluster Network 2"
73+
PS C:\>Set-SRNetworkConstraint -SourceComputerName "SR-SRV01" -SourceRGName "Group01" -SourceNWInterface "Cluster Network 1","Cluster Network 2" -DestinationComputerName "SR-SRV03" -DestinationRGName "Group02" -DestinationNWInterface "Cluster Network 1","Cluster Network 2"
6974
```
7075

7176
This command sets a network constraint for a specific set of cluster networks in a stretch cluster.
@@ -78,7 +83,7 @@ Runs the cmdlet as a background job. Use this parameter to run commands that tak
7883
```yaml
7984
Type: SwitchParameter
8085
Parameter Sets: (All)
81-
Aliases:
86+
Aliases:
8287

8388
Required: False
8489
Position: Named
@@ -204,13 +209,13 @@ Accept wildcard characters: False
204209
205210
### -ThrottleLimit
206211
Specifies the maximum number of concurrent operations that can be established to run the cmdlet.
207-
If this parameter is omitted or a value of `0` is entered, then Windows PowerShell® calculates an optimum throttle limit for the cmdlet based on the number of CIM cmdlets that are running on the computer.
212+
If this parameter is omitted or a value of `0` is entered, then Windows PowerShell® calculates an optimum throttle limit for the cmdlet based on the number of CIM cmdlets that are running on the computer.
208213
The throttle limit applies only to the current cmdlet, not to the session or to the computer.
209214

210215
```yaml
211216
Type: Int32
212217
Parameter Sets: (All)
213-
Aliases:
218+
Aliases:
214219
215220
Required: False
216221
Position: Named

0 commit comments

Comments
 (0)