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.

50 lines
1.3 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.restype { margin-top: 1em; margin-bottom: 0em; margin-left: 5em; }
  7. p.resource { 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> NetInterface</TITLE>
  11. <SCRIPT LANGUAGE="VBSCRIPT">
  12. <!--
  13. Option Explicit
  14. On Error Resume Next
  15. Dim oCluster
  16. Dim sCluster
  17. Dim oNetInterface
  18. Dim oNetwork
  19. Dim oProp
  20. Set oCluster = CreateObject("MSCluster.Cluster")
  21. sCluster = InputBox( "Cluster to open?" )
  22. oCluster.Open( sCluster )
  23. Document.Write "<B><p class=cluster>" & oCluster.Name & "</B><BR>"
  24. for each oNetwork in oCluster.Networks
  25. Document.Write "<p class=restype>Network: " & oNetwork.Name & "<BR>"
  26. for each oNetInterface in oNetwork.NetInterfaces
  27. Document.Write "<p class=resource>Netinterface: " & oNetinterface.Name & "<BR>"
  28. for each oProp in oNetInterface.CommonROProperties
  29. Document.Write "<p class=property>" & oProp.Name & " : " & oProp.Value & "<BR>"
  30. next
  31. next
  32. next
  33. -->
  34. </SCRIPT>
  35. </HEAD>
  36. <BODY>
  37. </BODY>
  38. </HTML>