Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

43 lines
1.0 KiB

Option Explicit
Main
Sub Main
Dim oCluster
Dim oClusterResGroups
Dim nCount
Dim oClusResGroup
Dim oCommonProps
Dim e
Dim nPropCount
Dim f
Dim sCluster
Set oCluster = CreateObject("MSCluster.Cluster")
sCluster = InputBox( "Cluster to open?" )
oCluster.Open( sCluster )
MsgBox "Cluster Name is " & oCluster.Name
MsgBox "Cluster Version is " & oCluster.Version.BuildNumber
Set oClusterResGroups = oCluster.ResourceGroups
nCount = oClusterResGroups.Count
MsgBox "Group count is " & nCount
for e = 1 to nCount
set oClusResGroup = oClusterResGroups.Item(e)
MsgBox "Group name is '" & oClusResGroup.Name & "'"
set oCommonProps = oClusResGroup.CommonProperties
nPropCount = oCommonProps.Count
MsgBox "Group common property count is " & nPropCount
for f = 1 to nPropCount
MsgBox "Property name is '" & oCommonProps.Item(f).Name & "' property value is: '" & oCommonProps.Item(f).Value & "'"
next
next
End Sub