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.

107 lines
2.3 KiB

  1. <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
  2. <html>
  3. <head>
  4. <meta http-equiv="Content-Type"
  5. content="text/html; charset=iso-8859-1">
  6. <meta name="GENERATOR" content="Microsoft FrontPage 2.0">
  7. <title>Cluster Groups</title>
  8. <meta name="FORMATTER" content="Microsoft FrontPage 2.0">
  9. </head>
  10. <%
  11. ' A Helper function for formatting
  12. Function ResourceRef( ResourceName )
  13. ResourceRef = _
  14. "<A HREF = property.asp?ResourceName=" & _
  15. Server.URLEncode(ResourceName) & _
  16. ">" & _
  17. ResourceName & _
  18. "</A>"
  19. End Function
  20. Sub ListDependencies( Resource )
  21. Dim DepResourceList
  22. Dim DepResource
  23. Dim i
  24. Response.Write "<table>"
  25. Set DepResourceList = Resource.Dependencies
  26. For i = 1 to DepResourceList.Count
  27. Set DepResource = DepResourceList(i)
  28. Response.Write "<tr>"
  29. Response.Write "<td>" & DepResource.Name & "</td>"
  30. Response.Write "<tr>"
  31. Next
  32. Response.Write "</table>"
  33. End Sub
  34. %>
  35. <body>
  36. <% = "<h3>Resource Groups for Node " & Request("NodeName") & "</h3>"%><%
  37. 'Open the Cluster
  38. If IsObject( Session("Cluster") ) Then
  39. Dim str
  40. Dim Cluster
  41. Set Cluster = Session("Cluster")
  42. Dim Node
  43. Set Node = Cluster.OpenNode( Request("NodeName") )
  44. Dim ResourceGroups
  45. Set ResourceGroups = Node.ResourceGroups
  46. Dim ResourceGroup
  47. Dim nIndex
  48. Dim Resources
  49. Dim Resource
  50. For nIndex = 1 To ResourceGroups.Count
  51. Set ResourceGroup = ResourceGroups( nIndex )
  52. Response.Write "<table border=1 width=""80%"">"
  53. Response.Write "<caption align=left>" & _
  54. ResourceGroup.Name & _
  55. "</caption>"
  56. Response.Write "<tr><th>Resource Name</th><th>Dependencies</th></tr>"
  57. Set Resources = ResourceGroup.Resources
  58. For i = 1 to Resources.Count
  59. Set Resource = Resources(i)
  60. Response.Write "<tr>"
  61. Response.Write "<td valign=top>"
  62. Response.Write ResourceRef( Resource.Name )
  63. Response.Write "</td>"
  64. Response.Write "<td>"
  65. ListDependencies Resource
  66. Response.Write "</td>"
  67. Response.Write "</tr>"
  68. Next
  69. Response.Write "</table>"
  70. Response.Write "<hr align=left width=""80%""> <p><p>"
  71. Next
  72. End If
  73. %>
  74. <p>&nbsp;</p>
  75. <p><!--webbot bot="PurpleText"
  76. preview="This page has no default target set. To change the default target, edit the page's properties. To override the default target for a particular link, edit the link's properties."
  77. --></p>
  78. </body>
  79. </html>