In order to use the WLBS CLI, you need to enable remote control:
The WLBS CLI lives as wlbs.exe in system32.
Query the cluster:
C:\>wlbs query 10.50.100.10 /passw WLBS Cluster Control Utility V2.3. (c) 1997-99 Microsoft Corporation Password: Accessing cluster '10.50.100.10' (10.50.100.40): Host 7 (10.50.100.17) reported: converged Host 1 (10.50.100.11) reported: converged as DEFAULT Host 3 (10.50.100.13) reported: converged Host 6 (10.50.100.16) reported: converged Host 4 (10.50.100.14) reported: converged Host 5 (10.50.100.15) reported: converged Host 2 (10.50.100.12) reported: converged C:\> |
Stop host .16:
C:\>wlbs stop 10.50.100.10:10.50.100.16 /passw WLBS Cluster Control Utility V2.3. (c) 1997-99 Microsoft Corporation Password: Accessing cluster '10.50.100.10' (10.50.100.40): Host 6 (10.50.100.16) reported: Cluster operations stopped. C:\> C:\>wlbs query 10.50.100.10 /passw WLBS Cluster Control Utility V2.3. (c) 1997-99 Microsoft Corporation Password: Accessing cluster '10.50.100.10' (10.50.100.40): Host 6 (10.50.100.16) reported: stopped Host 2 (10.50.100.12) reported: converged Host 4 (10.50.100.14) reported: converged Host 1 (10.50.100.11) reported: converged as DEFAULT Host 7 (10.50.100.17) reported: converged Host 3 (10.50.100.13) reported: converged Host 5 (10.50.100.15) reported: converged C:\> |
One really cool option is drainstop. This option will disable new connections to the host. If you need to schedule maintenance, use drainstop on that host, and when users log off, they won’t be able to get back on, yet it won’t interrupt the existing connections.
C:\>wlbs drainstop 10.50.100.10:10.50.100.15 /passw WLBS Cluster Control Utility V2.3. (c) 1997-99 Microsoft Corporation Password: Accessing cluster '10.50.100.10' (10.50.100.40): Host 5 (10.50.100.15) reported: Connection draining started. C:\> C:\>wlbs query 10.50.100.10 /passw WLBS Cluster Control Utility V2.3. (c) 1997-99 Microsoft Corporation Password: Accessing cluster '10.50.100.10' (10.50.100.40): Host 5 (10.50.100.15) reported: draining Host 6 (10.50.100.16) reported: stopped Host 3 (10.50.100.13) reported: converged Host 1 (10.50.100.11) reported: converged as DEFAULT Host 4 (10.50.100.14) reported: converged Host 7 (10.50.100.17) reported: converged Host 2 (10.50.100.12) reported: converged C:\> |
Stop the host from being part of the cluster with the stop option:
C:\>wlbs stop 10.50.100.10:10.50.100.11 /passw WLBS Cluster Control Utility V2.3. (c) 1997-99 Microsoft Corporation Password: Accessing cluster '10.50.100.10' (10.50.100.40): Host 1 (10.50.100.11) reported: Cluster operations stopped. C:\> C:\>wlbs query 10.50.100.10 /passw WLBS Cluster Control Utility V2.3. (c) 1997-99 Microsoft Corporation Password: Accessing cluster '10.50.100.10' (10.50.100.40): Host 3 (10.50.100.13) reported: stopped Host 1 (10.50.100.11) reported: stopped Host 6 (10.50.100.16) reported: stopped Host 2 (10.50.100.12) reported: draining Host 5 (10.50.100.15) reported: stopped Host 4 (10.50.100.14) reported: converged as DEFAULT Host 7 (10.50.100.17) reported: stopped |
Start the host with, well… drumroll… start:
C:\>wlbs start 10.50.100.10:10.50.100.12 /passw WLBS Cluster Control Utility V2.3. (c) 1997-99 Microsoft Corporation Password: Accessing cluster '10.50.100.10' (10.50.100.40): Host 2 (10.50.100.12) reported: Connection draining suspended. Cluster operations started. C:\> C:\>wlbs query 10.50.100.10 /passw WLBS Cluster Control Utility V2.3. (c) 1997-99 Microsoft Corporation Password: Accessing cluster '10.50.100.10' (10.50.100.40): Host 5 (10.50.100.15) reported: converged Host 1 (10.50.100.11) reported: converged as DEFAULT Host 3 (10.50.100.13) reported: converged Host 6 (10.50.100.16) reported: converged Host 2 (10.50.100.12) reported: converged Host 7 (10.50.100.17) reported: converged Host 4 (10.50.100.14) reported: converged C:\> |
For other options, use wlbs /help | more.