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.

70 lines
2.0 KiB

  1. <HTML>
  2. <HEAD>
  3. <style>
  4. <!-- body { font-family: Verdana, Arial; font-size: 75%; }
  5. p.cluster { margin-top: 1em; margin-bottom: 0em; margin-left: 0em; }
  6. p.resource { margin-top: 1em; margin-bottom: 0em; margin-left: 5em; }
  7. p.proptype { margin-top: 0em; margin-bottom: 0em; margin-left: 10em; }
  8. p.property { margin-top: 0em; margin-bottom: 0em; margin-left: 15em; } -->
  9. </style>
  10. <TITLE> Node Properties</TITLE>
  11. <SCRIPT LANGUAGE="VBSCRIPT">
  12. <!--
  13. Option Explicit
  14. Dim oCluster
  15. Dim oProps
  16. Dim sCluster
  17. Dim oRes
  18. Dim oProp
  19. Set oCluster = CreateObject("MSCluster.Cluster")
  20. sCluster = InputBox("Cluster to open?", "GALENB-CLUS")
  21. oCluster.Open( sCluster )
  22. Document.Write "<B><p class=cluster>Cluster name is " & oCluster.Name & "<BR></B>"
  23. for each oRes in oCluster.Resources
  24. Document.Write "<B><p class=resource>Resource name is " & oRes.Name & "<BR></B>"
  25. Document.Write "<BR><p class=proptype>Common Properties<BR><BR>"
  26. Set oProps = oRes.CommonProperties
  27. for each oProp in oProps
  28. Document.Write "<p class=property>" & oProp.Name & " = " & oProp.Value & "<BR>"
  29. next
  30. Document.Write "<BR><p class=proptype>Common RO Properties<BR><BR>"
  31. Set oProps = oRes.CommonROProperties
  32. for each oProp in oProps
  33. Document.Write "<p class=property>" & oProp.Name & " = " & oProp.Value & "<BR>"
  34. next
  35. Document.Write "<BR><p class=proptype>Private Properties<BR><BR>"
  36. for each oProp in oRes.PrivateProperties
  37. if oProp.Format <> 1 then
  38. Document.Write "<p class=property>" & oProp.Name & " = " & oProp.Value & "<BR>"
  39. end if
  40. next
  41. Document.Write "<BR><p class=proptype>Private RO Properties<BR><BR>"
  42. for each oProp in oRes.PrivateROProperties
  43. if oProp.Format <> 1 then
  44. Document.Write "<p class=property>" & oProp.Name & " = " & oProp.Value & "<BR>"
  45. end if
  46. next
  47. next
  48. -->
  49. </SCRIPT>
  50. </HEAD>
  51. <BODY>
  52. </BODY>
  53. </HTML>