Stop-NlbClusterNode
Stops a node in a NLB cluster.
Syntax
Stop-NlbClusterNode
[-Drain]
[-Timeout <UInt32>]
[[-HostName] <String>]
[-InterfaceName <String>]
[<CommonParameters>]
Stop-NlbClusterNode
-InputObject <Node[]>
[-Drain]
[-Timeout <UInt32>]
[<CommonParameters>]
Description
The Stop-NlbClusterNode cmdlet stops a node in a Network Load Balancing (NLB) cluster. When the nodes are stopped in the cluster, client connections that are already in progress are interrupted. To avoid interrupting active connections, consider using the Drain parameter, which allows the node to continue servicing active connections but disables all new traffic to that node.
Examples
Example 1: Stop a cluster node on the local cluster
PS C:\>Stop-NlbClusterNode "Node2"
Name State Interface HostID
---- ----- --------- ------
node2 Stopped vlan-3 2
This command stops the cluster node named Node2 on the local cluster.
Example 2: Stop the local cluster node
PS C:\>Stop-NlbClusterNode -Drain -Timeout 10
Name State Interface HostID
---- ----- --------- ------
node3 Stopped vlan-3 3
This command stops the local cluster node. Before this cmdlet stops the cluster, this cmdlet drains all existing connections for up to 10 seconds. During that time, new connections will not be established on this node. Any remaining connections after the 10 seconds will be forcefully terminated.
Parameters
-Drain
Indicates that the cmdlet drains existing traffic before stopping the cluster node. If this parameter is omitted, then the existing traffic is dropped.
Type: | SwitchParameter |
Aliases: | D |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-HostName
Specifies the name of the cluster host against which this cmdlet is run.
If this parameter is omitted or a value of .
is entered, then the local cluster is assumed.
Type: | String |
Aliases: | Host, HN, H |
Position: | 0 |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-InputObject
Specifies the cluster node to stop.
Type: | Node[] |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-InterfaceName
Specifies the interface to which NLB is bound. This is the interface of the cluster against which this cmdlet is run.
Type: | String |
Aliases: | Interface, IN, I |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-Timeout
Specifies the number of seconds to wait for the drain operation before stopping the cluster node. After the time expires, the existing connections are dropped.
Type: | UInt32 |
Aliases: | T |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Inputs
Microsoft.NetworkLoadBalancingClusters.PowerShell.Node
Outputs
Microsoft.NetworkLoadBalancingClusters.PowerShell.Node