sp_cluster logical, offline

Description

Stops the logical cluster on one or more instances or the entire logical cluster.

Syntax

sp_cluster logical, "offline", lc_name, { 
	cluster |
	instance, instance_list }
	[, wait_option[, timeout,[, @handle output ]]]

Parameters

lc_name – is the name of a logical cluster.

cluster – specifies the entire cluster.

instance – specifies that only certain instances in the logical cluster are to be taken offline.

instance_list – is a list of selected instances in the logical cluster.

wait_option – is how the time of the action is to be specified. Values are:

timeout – is a specific amount of time (when used with wait) or a specific time (when used with until). The format is "hh:mm:ss" according to a 24-hour clock. For example, timeout records 11:30 pm as 23:30:00.

@handle output – specifies that an action handle is to be retrieved for the action.

Examples

Example 29

Example 1 Immediately stops all instances in the “SalesLC”, and places “SalesLC” in the offline state.

sp_cluster logical, "offline", SalesLC, cluster, 
nowait

Example 30

Example 2 Stops the “ase1” and “ase2” instances in “SalesLC”, and places “SalesLC” in the offline state.

sp_cluster logical, "offline", SalesLC, instance, "ase1;ase2"

Usage