Share via


Cluster.Open method

[The Open method is available for use in the operating systems specified in the Requirements section. It may be altered or unavailable in subsequent versions.]

Opens a connection to a cluster.

Syntax

Cluster.Open( _
  ByVal strClusterName _
)

Parameters

strClusterName

String specifying the name of the cluster to open. If set to a zero-length string (""), the method connects to the local machine's cluster.

Return value

This method does not return a value.

Examples

The following example illustrates the Open method. For more examples see Using Cluster Automation Server.

'''''''''''''''''''''''''''''''''''
'  opendemo.vbs  (use with cscript.exe)
'  Run from the command line using the following syntax:
'        opendemo [clustername]
'''''''''''''''''''''''''''''''''''
Option Explicit
Dim objArgs, objCluster
Set objArgs = WScript.Arguments
Set objCluster = CreateObject("MSCluster.Cluster")
If objArgs.Count > 0 Then
    objCluster.Open objArgs(0)
Else
    objCluster.Open ""
End If
WScript.Echo "Successfully opened " & objCluster.Name
Set objCluster = Nothing
Set objArgs = Nothing

Requirements

Minimum supported client
None supported
Minimum supported server
Windows Server 2008 Enterprise, Windows Server 2008 Datacenter
Header
MsClus.h
IDL
MsClus.idl
Type library
MsClus.tlb
DLL
MsClus.dll
IID
IID_ISCluster is defined as F2E606E4-2631-11D1-89F1-00A0C90D061E

See also

Cluster