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.

37 lines
737 B

  1. Option Explicit
  2. Main
  3. Sub Main
  4. Dim oCluster
  5. Dim ClusterName
  6. Dim oQuorum
  7. Dim nCount
  8. Dim sCluster
  9. Set oCluster = CreateObject("MSCluster.Cluster")
  10. sCluster = InputBox( "Cluster to open?" )
  11. oCluster.Open( sCluster )
  12. 'for nCount = 1 to 100
  13. ClusterName = oCluster.Name
  14. MsgBox "Cluster Name is " & ClusterName
  15. 'MsgBox "Cluster Version is " & oCluster.Version.BuildNumber
  16. MsgBox "Quorum log size is " & oCluster.QuorumLogSize
  17. MsgBox "Quorum log path is " & oCluster.QuorumPath
  18. set oQuorum = oCluster.QuorumResource
  19. MsgBox "Quorum resource name is " & oQuorum.Name
  20. 'oCluster.QuorumResource = oQuorum
  21. 'MsgBox "Iteration count is" & nCount
  22. 'next
  23. MsgBox "Done!"
  24. End Sub