windows-nt/Source/XPSP1/NT/base/cluster/admin/msclus/vbscript/onoffline.vbs

26 lines
515 B
Plaintext
Raw Normal View History

2020-09-26 03:20:57 -05:00
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