Stop-NlbCluster
Stop-NlbCluster
Stops all nodes of a Network Load Balancing (NLB) cluster.
Sintaxis
Parameter Set: NonPipeline
Stop-NlbCluster [[-HostName] <String> ] [[-InterfaceName] <String> ] [-Drain] [-Timeout <UInt32> ] [ <CommonParameters>]
Parameter Set: Pipeline
Stop-NlbCluster -InputObject <Cluster[]> [-Drain] [-Timeout <UInt32> ] [ <CommonParameters>]
Descripción detallada
The Stop-NlbCluster cmdlet stops all nodes in a Network Load Balancing (NLB) cluster. The cmdlet will stop the NLB service on the host and all existing connections will be lost. To avoid interrupting active connections, use the Drain parameter which allows the host to continue servicing active connections, but disables all new traffic to that host.
Parámetros
-Drain
Drains existing traffic before stopping the cluster. If this parameter is omitted, then the existing traffic will be dropped.
Alias |
D |
¿Requerido? |
false |
¿Posición? |
named |
Valor predeterminado |
ninguno |
¿Aceptar canalización? |
false |
¿Aceptar caracteres comodín? |
false |
-HostName<String>
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.
Alias |
Host,HN,H |
¿Requerido? |
false |
¿Posición? |
1 |
Valor predeterminado |
ninguno |
¿Aceptar canalización? |
false |
¿Aceptar caracteres comodín? |
false |
-InputObject<Cluster[]>
Specifies the cluster to stop.
Alias |
ninguno |
¿Requerido? |
true |
¿Posición? |
named |
Valor predeterminado |
ninguno |
¿Aceptar canalización? |
True (ByValue, ByPropertyName) |
¿Aceptar caracteres comodín? |
false |
-InterfaceName<String>
Specifies the interface to which NLB is bound. This is the interface of the cluster against which this cmdlet is run.
Alias |
Interface,IN,I |
¿Requerido? |
false |
¿Posición? |
2 |
Valor predeterminado |
ninguno |
¿Aceptar canalización? |
false |
¿Aceptar caracteres comodín? |
false |
-Timeout<UInt32>
Specifies the number of minutes to wait for the drain operation before stopping the cluster. After the time expires, the existing connections will be dropped.
Alias |
T |
¿Requerido? |
false |
¿Posición? |
named |
Valor predeterminado |
ninguno |
¿Aceptar canalización? |
false |
¿Aceptar caracteres comodín? |
false |
<CommonParameters>
Este cmdlet admite los siguientes parámetros comunes: -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer y -OutVariable. Para obtener más información, consulte about_CommonParameters (https://go.microsoft.com/fwlink/p/?LinkID=113216).
Entradas
El tipo de entrada es el tipo de los objetos que se pueden canalizar al cmdlet.
- Microsoft.NetworkLoadBalancingClusters.PowerShell.Cluster
Salidas
El tipo de resultado es el tipo de objetos que emite el cmdlet.
- Microsoft.NetworkLoadBalancingClusters.PowerShell.Cluster
Ejemplos
EXAMPLE 1
This example stops all cluster nodes on the local cluster.
PS C:\> Stop-NlbCluster