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

24 lines
353 B
Plaintext
Raw Normal View History

2020-09-26 03:20:57 -05:00
Option Explicit
Main
Sub Main
Dim oCluster
Dim oNode
Dim sCluster
Set oCluster = CreateObject("MSCluster.Cluster")
sCluster = InputBox( "Cluster to open?" )
oCluster.Open( sCluster )
MsgBox oCluster.Name
MsgBox "Node count is " & oCluster.Nodes.Count
for each oNode in oCluster.Nodes
MsgBox "Node name is " & oNode.Name
next
End Sub