Skip to content

Commit 9960d8a

Browse files
authored
Merge pull request MicrosoftDocs#2532 from PatAltimore/patricka-storagereplica
Fix storagereplica examples
2 parents d9b306a + 55a07da commit 9960d8a

File tree

3 files changed

+41
-104
lines changed

3 files changed

+41
-104
lines changed

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

Lines changed: 13 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -30,42 +30,21 @@ 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-
PS C:\>Get-NetIPConfiguration
36-
InterfaceAlias : Ethernet
37-
InterfaceIndex : 2
38-
InterfaceDescription : Microsoft Hyper-V Network Adapter
39-
NetProfile.Name : Threshold.nttest.microsoft.com
40-
IPv6Address : 2001:4898:f0:10d1:4037:4c52:6fa4:fe7f
41-
IPv4Address : 172.24.19.182
42-
IPv6DefaultGateway : fe80::ea65:49ff:fecd:4141
43-
IPv4DefaultGateway : 172.24.18.1
44-
DNSServer : 10.177.9.210
45-
10.177.9.211
46-
47-
InterfaceAlias : Ethernet 2
48-
InterfaceIndex : 3
49-
InterfaceDescription : Microsoft Hyper-V Network Adapter #2
50-
NetProfile.Name : Threshold.nttest.microsoft.com
51-
IPv6Address : 2001:4898:f0:10d1:20d9:301e:9af9:8b4e
52-
IPv4Address : 172.24.18.180
53-
IPv6DefaultGateway : fe80::ea65:49ff:fecd:4141
54-
IPv4DefaultGateway : 172.24.18.1
55-
DNSServer : 10.177.9.210
56-
10.177.9.211
57-
58-
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
61-
C:\PS> Update-SmbMultichannelConnection
33+
34+
The first 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.
35+
36+
```powershell
37+
Set-SRNetworkConstraint -SourceComputerName "SR-SRV06" -SourceRGName "ReplicationGroup02" -SourceNWInterface 6 -DestinationComputerName "SR-SRV05" -DestinationRGName "ReplicationGroup01" -DestinationNWInterface 2
38+
39+
Update-SmbMultichannelConnection
6240
```
6341

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

6644
### Example 2: Set a constraint for a stretch cluster
67-
```
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"
45+
46+
```powershell
47+
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"
6948
```
7049

7150
This command sets a network constraint for a specific set of cluster networks in a stretch cluster.
@@ -78,7 +57,7 @@ Runs the cmdlet as a background job. Use this parameter to run commands that tak
7857
```yaml
7958
Type: SwitchParameter
8059
Parameter Sets: (All)
81-
Aliases:
60+
Aliases:
8261

8362
Required: False
8463
Position: Named
@@ -204,13 +183,13 @@ Accept wildcard characters: False
204183
205184
### -ThrottleLimit
206185
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.
186+
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.
208187
The throttle limit applies only to the current cmdlet, not to the session or to the computer.
209188

210189
```yaml
211190
Type: Int32
212191
Parameter Sets: (All)
213-
Aliases:
192+
Aliases:
214193
215194
Required: False
216195
Position: Named

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

Lines changed: 14 additions & 35 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/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
@@ -30,42 +30,21 @@ 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-
PS C:\>Get-NetIPConfiguration
36-
InterfaceAlias : Ethernet
37-
InterfaceIndex : 2
38-
InterfaceDescription : Microsoft Hyper-V Network Adapter
39-
NetProfile.Name : Threshold.nttest.microsoft.com
40-
IPv6Address : 2001:4898:f0:10d1:4037:4c52:6fa4:fe7f
41-
IPv4Address : 172.24.19.182
42-
IPv6DefaultGateway : fe80::ea65:49ff:fecd:4141
43-
IPv4DefaultGateway : 172.24.18.1
44-
DNSServer : 10.177.9.210
45-
10.177.9.211
46-
47-
InterfaceAlias : Ethernet 2
48-
InterfaceIndex : 3
49-
InterfaceDescription : Microsoft Hyper-V Network Adapter #2
50-
NetProfile.Name : Threshold.nttest.microsoft.com
51-
IPv6Address : 2001:4898:f0:10d1:20d9:301e:9af9:8b4e
52-
IPv4Address : 172.24.18.180
53-
IPv6DefaultGateway : fe80::ea65:49ff:fecd:4141
54-
IPv4DefaultGateway : 172.24.18.1
55-
DNSServer : 10.177.9.210
56-
10.177.9.211
57-
58-
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
61-
C:\PS> Update-SmbMultichannelConnection
33+
34+
The first 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.
35+
36+
```powershell
37+
Set-SRNetworkConstraint -SourceComputerName "SR-SRV06" -SourceRGName "ReplicationGroup02" -SourceNWInterface 6 -DestinationComputerName "SR-SRV05" -DestinationRGName "ReplicationGroup01" -DestinationNWInterface 2
38+
39+
Update-SmbMultichannelConnection
6240
```
6341

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

6644
### Example 2: Set a constraint for a stretch cluster
67-
```
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"
45+
46+
```powershell
47+
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"
6948
```
7049

7150
This command sets a network constraint for a specific set of cluster networks in a stretch cluster.
@@ -78,7 +57,7 @@ Runs the cmdlet as a background job. Use this parameter to run commands that tak
7857
```yaml
7958
Type: SwitchParameter
8059
Parameter Sets: (All)
81-
Aliases:
60+
Aliases:
8261

8362
Required: False
8463
Position: Named
@@ -204,13 +183,13 @@ Accept wildcard characters: False
204183
205184
### -ThrottleLimit
206185
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.
186+
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.
208187
The throttle limit applies only to the current cmdlet, not to the session or to the computer.
209188

210189
```yaml
211190
Type: Int32
212191
Parameter Sets: (All)
213-
Aliases:
192+
Aliases:
214193
215194
Required: False
216195
Position: Named

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

Lines changed: 14 additions & 35 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/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
@@ -30,42 +30,21 @@ 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-
PS C:\>Get-NetIPConfiguration
36-
InterfaceAlias : Ethernet
37-
InterfaceIndex : 2
38-
InterfaceDescription : Microsoft Hyper-V Network Adapter
39-
NetProfile.Name : Threshold.nttest.microsoft.com
40-
IPv6Address : 2001:4898:f0:10d1:4037:4c52:6fa4:fe7f
41-
IPv4Address : 172.24.19.182
42-
IPv6DefaultGateway : fe80::ea65:49ff:fecd:4141
43-
IPv4DefaultGateway : 172.24.18.1
44-
DNSServer : 10.177.9.210
45-
10.177.9.211
46-
47-
InterfaceAlias : Ethernet 2
48-
InterfaceIndex : 3
49-
InterfaceDescription : Microsoft Hyper-V Network Adapter #2
50-
NetProfile.Name : Threshold.nttest.microsoft.com
51-
IPv6Address : 2001:4898:f0:10d1:20d9:301e:9af9:8b4e
52-
IPv4Address : 172.24.18.180
53-
IPv6DefaultGateway : fe80::ea65:49ff:fecd:4141
54-
IPv4DefaultGateway : 172.24.18.1
55-
DNSServer : 10.177.9.210
56-
10.177.9.211
57-
58-
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
61-
C:\PS> Update-SmbMultichannelConnection
33+
34+
The first 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.
35+
36+
```powershell
37+
Set-SRNetworkConstraint -SourceComputerName "SR-SRV06" -SourceRGName "ReplicationGroup02" -SourceNWInterface 6 -DestinationComputerName "SR-SRV05" -DestinationRGName "ReplicationGroup01" -DestinationNWInterface 2
38+
39+
Update-SmbMultichannelConnection
6240
```
6341

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

6644
### Example 2: Set a constraint for a stretch cluster
67-
```
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"
45+
46+
```powershell
47+
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"
6948
```
7049

7150
This command sets a network constraint for a specific set of cluster networks in a stretch cluster.
@@ -78,7 +57,7 @@ Runs the cmdlet as a background job. Use this parameter to run commands that tak
7857
```yaml
7958
Type: SwitchParameter
8059
Parameter Sets: (All)
81-
Aliases:
60+
Aliases:
8261

8362
Required: False
8463
Position: Named
@@ -204,13 +183,13 @@ Accept wildcard characters: False
204183
205184
### -ThrottleLimit
206185
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.
186+
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.
208187
The throttle limit applies only to the current cmdlet, not to the session or to the computer.
209188

210189
```yaml
211190
Type: Int32
212191
Parameter Sets: (All)
213-
Aliases:
192+
Aliases:
214193
215194
Required: False
216195
Position: Named

0 commit comments

Comments
 (0)