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.

49 lines
1.1 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.property { margin-top: 0em; margin-bottom: 0em; margin-left: 10em; } -->
  8. </style>
  9. <TITLE> Preferred Owners</TITLE>
  10. <SCRIPT LANGUAGE="VBSCRIPT">
  11. <!--
  12. Option Explicit
  13. On Error Resume Next
  14. Dim oCluster
  15. Dim sCluster
  16. Dim oNode
  17. Dim oGroup
  18. Dim oOwnerNodes
  19. Set oCluster = CreateObject("MSCluster.Cluster")
  20. sCluster = InputBox( "Cluster to open?" )
  21. oCluster.Open( sCluster )
  22. Document.Write "<B><p class=cluster>Cluster name is " & oCluster.Name & "</B><BR>"
  23. set oNode = oCluster.Nodes(1)
  24. Document.Write "<B><p class=cluster>Node name is " & oNode.Name & "</B><BR>"
  25. set oGroup = oCluster.ResourceGroups("Test")
  26. Document.Write "<B><p class=cluster>Group name is " & oGroup.Name & "</B><BR>"
  27. set oOwnerNodes = oGroup.PreferredOwnerNodes
  28. oOwnerNodes.InsertItem( oNode )
  29. oOwnerNodes.SaveChanges
  30. -->
  31. </SCRIPT>
  32. </HEAD>
  33. <BODY>
  34. </BODY>
  35. </HTML>