GetClustersAndServers

Returns the names of the clusters and servers associated with an HsxServer object reference.

Syntax

<HsxServer>.GetClustersAndServers pvarabstrClusters, pvarabstrServers

Argument

Description

pvarabstrClusters

Variant. Returns an array containing the cluster names.

pvarabstrServers

Variant. Returns an array of two-dimensional arrays containing the names of the clusters’ servers. Each array of two-dimensional arrays has a one-to-one correspondence with the varalPeriodIDs argument’s array.

Example

The following snippet prints to Visual Basic’s Immediate window the names of the clusters and servers associated with an HsxServer object reference.

'g_cServer is an HsxServer object reference
g_cServer.GetClustersAndServers vaClusters, vaServers
For i = LBound(vaClusters) To UBound(vaClusters)
  Debug.Print "Cluster: " & vaClusters(i)
  For j = LBound(vaServers(i)) To UBound(vaServers(i))
    Debug.Print vbTab & vaServers(i)(j)
  Next j
Next i