Skip to content

Commit fa4abd2

Browse files
committed
Fix example blocks
1 parent 0999750 commit fa4abd2

File tree

3 files changed

+3
-12
lines changed

3 files changed

+3
-12
lines changed

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

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,9 @@ 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-
33+
```
3434
This command lists available interface indexes by using the **Get-NetIPConfiguration** cmdlet. Run this command on both servers.
3535
36-
```
3736
PS C:\>Get-NetIPConfiguration
3837
InterfaceAlias : Ethernet
3938
InterfaceIndex : 2
@@ -56,11 +55,9 @@ IPv6DefaultGateway : fe80::ea65:49ff:fecd:4141
5655
IPv4DefaultGateway : 172.24.18.1
5756
DNSServer : 10.177.9.210
5857
10.177.9.211
59-
```
6058
6159
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.
6260
63-
```
6461
PS C:\>Set-SRNetworkConstraint -SourceComputerName "SR-SRV06" -SourceRGName "ReplicationGroup02" -SourceNWInterface 6 -DestinationComputerName "SR-SRV05" -DestinationRGName "ReplicationGroup01" -DestinationNWInterface 2
6562
C:\PS> Update-SmbMultichannelConnection
6663
```

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

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,9 @@ 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-
33+
```
3434
This command lists available interface indexes by using the **Get-NetIPConfiguration** cmdlet. Run this command on both servers.
3535
36-
```
3736
PS C:\>Get-NetIPConfiguration
3837
InterfaceAlias : Ethernet
3938
InterfaceIndex : 2
@@ -56,11 +55,9 @@ IPv6DefaultGateway : fe80::ea65:49ff:fecd:4141
5655
IPv4DefaultGateway : 172.24.18.1
5756
DNSServer : 10.177.9.210
5857
10.177.9.211
59-
```
6058
6159
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.
6260
63-
```
6461
PS C:\>Set-SRNetworkConstraint -SourceComputerName "SR-SRV06" -SourceRGName "ReplicationGroup02" -SourceNWInterface 6 -DestinationComputerName "SR-SRV05" -DestinationRGName "ReplicationGroup01" -DestinationNWInterface 2
6562
C:\PS> Update-SmbMultichannelConnection
6663
```

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

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,9 @@ 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-
33+
```
3434
This command lists available interface indexes by using the **Get-NetIPConfiguration** cmdlet. Run this command on both servers.
3535
36-
```
3736
PS C:\>Get-NetIPConfiguration
3837
InterfaceAlias : Ethernet
3938
InterfaceIndex : 2
@@ -56,11 +55,9 @@ IPv6DefaultGateway : fe80::ea65:49ff:fecd:4141
5655
IPv4DefaultGateway : 172.24.18.1
5756
DNSServer : 10.177.9.210
5857
10.177.9.211
59-
```
6058
6159
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.
6260
63-
```
6461
PS C:\>Set-SRNetworkConstraint -SourceComputerName "SR-SRV06" -SourceRGName "ReplicationGroup02" -SourceNWInterface 6 -DestinationComputerName "SR-SRV05" -DestinationRGName "ReplicationGroup01" -DestinationNWInterface 2
6562
C:\PS> Update-SmbMultichannelConnection
6663
```

0 commit comments

Comments
 (0)