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.
25 lines
540 B
25 lines
540 B
Option Explicit
|
|
|
|
Main
|
|
|
|
Sub Main
|
|
|
|
Dim oCluster
|
|
Dim oResource
|
|
Dim bPending
|
|
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
|
|
|
|
MsgBox "Cluster resource count is " & oCluster.Resources.Count
|
|
|
|
Set oResource = oCluster.Resources.Item("Dummy")
|
|
bpending = oResource.Offline(30)
|
|
MsgBox "bPending is " & bPending
|
|
|
|
End Sub
|