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.

69 lines
1.3 KiB

  1. <HTML>
  2. <HEAD>
  3. <TITLE> Resources </TITLE>
  4. <SCRIPT LANGUAGE="VBSCRIPT">
  5. <!--
  6. Option Explicit
  7. Dim oCluster
  8. Dim oProps
  9. Dim sCluster
  10. Dim oRes
  11. Dim oProp
  12. Dim oValues
  13. Dim oValue
  14. Dim oData
  15. Dim oDatum
  16. Dim oNewRes
  17. Dim deleteit
  18. Dim oGroup
  19. Set oCluster = CreateObject("MSCluster.Cluster")
  20. sCluster = InputBox( "Cluster to open?" )
  21. oCluster.Open( sCluster )
  22. Document.Write "<B>Cluster name is " & oCluster.Name & "<BR><BR></B>"
  23. for each oGroup in oCluster.ResourceGroups
  24. Document.Write "<B>Group name is " & oGroup.Name & "<BR></B>"
  25. Document.Write "Common Properties<BR><BR>"
  26. for each oProp in oGroup.CommonProperties
  27. for each oValue in oProp.Values
  28. for each oDatum in oValue.Data
  29. Document.Write oProp.Name & " = " & oDatum & "<BR>"
  30. next
  31. next
  32. next
  33. Document.Write "Private Properties<BR><BR>"
  34. for each oProp in oGroup.PrivateProperties
  35. for each oValue in oProp.Values
  36. for each oDatum in oValue.Data
  37. Document.Write oProp.Name & " = " & oDatum & "<BR>"
  38. next
  39. next
  40. next
  41. Document.Write "<B><BR>Resources<BR><BR></B>"
  42. for each oRes in oGroup.Resources
  43. Document.Write oRes.Name & "<BR>"
  44. next
  45. Document.Write "<BR>"
  46. next
  47. -->
  48. </SCRIPT>
  49. </HEAD>
  50. <BODY>
  51. </BODY>
  52. </HTML>