Skip to content

Commit 0999750

Browse files
committed
Fix parameters in examples
1 parent 101f1ea commit 0999750

File tree

3 files changed

+14
-10
lines changed

3 files changed

+14
-10
lines changed

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

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -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,9 +56,11 @@ 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.
63+
```
6064
PS C:\>Set-SRNetworkConstraint -SourceComputerName "SR-SRV06" -SourceRGName "ReplicationGroup02" -SourceNWInterface 6 -DestinationComputerName "SR-SRV05" -DestinationRGName "ReplicationGroup01" -DestinationNWInterface 2
6165
C:\PS> Update-SmbMultichannelConnection
6266
```
@@ -65,7 +69,7 @@ This example sets the network constraint for interfaces and replication groups o
6569

6670
### Example 2: Set a constraint for a stretch cluster
6771
```
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"
72+
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"
6973
```
7074

7175
This command sets a network constraint for a specific set of cluster networks in a stretch cluster.
@@ -78,7 +82,7 @@ Runs the cmdlet as a background job. Use this parameter to run commands that tak
7882
```yaml
7983
Type: SwitchParameter
8084
Parameter Sets: (All)
81-
Aliases:
85+
Aliases:
8286

8387
Required: False
8488
Position: Named
@@ -204,13 +208,13 @@ Accept wildcard characters: False
204208
205209
### -ThrottleLimit
206210
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.
211+
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.
208212
The throttle limit applies only to the current cmdlet, not to the session or to the computer.
209213

210214
```yaml
211215
Type: Int32
212216
Parameter Sets: (All)
213-
Aliases:
217+
Aliases:
214218
215219
Required: False
216220
Position: Named

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

Lines changed: 2 additions & 2 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: 07/06/2021
5+
ms.date: 07/28/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
@@ -61,7 +61,7 @@ DNSServer : 10.177.9.210
6161
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.
6262

6363
```
64-
PS C:\>Set-SRNetworkConstraint -SourceComputerName "SR-SRV06" -SourceRGName "ReplicationGroup02" -SourceNWInterfaceIndex 6 -DestinationComputerName "SR-SRV05" -DestinationRGName "ReplicationGroup01" -DestinationNWInterfaceIndex 2
64+
PS C:\>Set-SRNetworkConstraint -SourceComputerName "SR-SRV06" -SourceRGName "ReplicationGroup02" -SourceNWInterface 6 -DestinationComputerName "SR-SRV05" -DestinationRGName "ReplicationGroup01" -DestinationNWInterface 2
6565
C:\PS> Update-SmbMultichannelConnection
6666
```
6767

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

Lines changed: 2 additions & 2 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: 07/06/2021
5+
ms.date: 07/28/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
@@ -61,7 +61,7 @@ DNSServer : 10.177.9.210
6161
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.
6262

6363
```
64-
PS C:\>Set-SRNetworkConstraint -SourceComputerName "SR-SRV06" -SourceRGName "ReplicationGroup02" -SourceNWInterfaceIndex 6 -DestinationComputerName "SR-SRV05" -DestinationRGName "ReplicationGroup01" -DestinationNWInterfaceIndex 2
64+
PS C:\>Set-SRNetworkConstraint -SourceComputerName "SR-SRV06" -SourceRGName "ReplicationGroup02" -SourceNWInterface 6 -DestinationComputerName "SR-SRV05" -DestinationRGName "ReplicationGroup01" -DestinationNWInterface 2
6565
C:\PS> Update-SmbMultichannelConnection
6666
```
6767

0 commit comments

Comments
 (0)