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.

67 lines
1.4 KiB

  1. <HTML>
  2. <HEAD>
  3. <TITLE> Node Properties</TITLE>
  4. <SCRIPT LANGUAGE="VBSCRIPT">
  5. <!--
  6. Option Explicit
  7. Dim oCluster
  8. Dim oProps
  9. Dim sCluster
  10. Dim nCount
  11. Dim oNode
  12. Dim oProp
  13. Dim oQuorum
  14. Dim oResGroup
  15. Set oCluster = CreateObject("MSCluster.Cluster")
  16. sCluster = InputBox( "Cluster to open?" )
  17. oCluster.Open( sCluster )
  18. Document.Write oCluster.Name & "<BR>"
  19. Set oQuorum = oCluster.QuorumResource
  20. for each oProp in oQuorum.CommonProperties
  21. Document.Write oProp.Name & " = " & oProp.Value & "<BR>"
  22. next
  23. Document.Write "QuorumLogSize = " & oCluster.QuorumLogSize & "<BR>"
  24. Document.Write "QuorumPath = " & oCluster.QuorumPath & "<BR>"
  25. for each oNode in oCluster.Nodes
  26. Document.Write oNode.Name & "<BR>"
  27. Document.Write "Common Properties<BR>"
  28. Set oProps = oNode.CommonProperties
  29. for each oProp in oProps
  30. Document.Write oProp.Name & " = " & oProp.Value & "<BR>"
  31. next
  32. 'Document.Write "Private Properties<BR>"
  33. 'Set oProps = oNode.PrivateProperties
  34. 'for each oProp in oProps
  35. ' Document.Write oProp.Name & " = " & oProp.Value & "<BR>"
  36. 'next
  37. for each oResGroup in oNode.ResourceGroups
  38. Document.Write "ResGroup name is " & oResGroup.Name & "<BR>"
  39. next
  40. next
  41. 'set oProp = oProps.Item("Description")
  42. 'oProp.Value = "This is the new description."
  43. 'oProps.SaveChanges
  44. -->
  45. </SCRIPT>
  46. </HEAD>
  47. <BODY>
  48. </BODY>
  49. </HTML>