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.

76 lines
2.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.resource { margin-top: 1em; margin-bottom: 0em; margin-left: 5em; }
  7. p.property { margin-top: 0em; margin-bottom: 0em; margin-left: 10em; }
  8. p.info { margin-top: 0em; margin-bottom: 0em; margin-left: 15em; } -->
  9. </style>
  10. <TITLE> Cluster Physical Disk Resource Properties</TITLE>
  11. <SCRIPT LANGUAGE="VBSCRIPT">
  12. <!--
  13. Option Explicit
  14. 'On Error Resume Next
  15. Dim oCluster
  16. Dim sCluster
  17. Dim oPhysDisk
  18. Dim oPartition
  19. Dim oDisk
  20. Dim sDisk
  21. Dim oScsi
  22. Dim oResType
  23. Dim oKey
  24. Set oCluster = CreateObject("MSCluster.Cluster")
  25. sCluster = InputBox( "Cluster to open?" )
  26. oCluster.Open( sCluster )
  27. Document.Write "<B><p class=cluster>Cluster name is " & oCluster.Name & "</B><BR>"
  28. sDisk = InputBox( "Physical disk resource name?" )
  29. set oPhysDisk = oCluster.Resources( sDisk )
  30. Document.Write "<B><p class=resource>Disk name is " & oPhysDisk.Name & "</B><BR>"
  31. set oDisk = oPhysDisk.Disk
  32. set oScsi = oDisk.ScsiAddress
  33. Document.Write "<B><p class=property>SCSI port number is " & oScsi.PortNumber & "</B><BR>"
  34. Document.Write "<B><p class=property>SCSI path id is " & oScsi.PathId & "</B><BR>"
  35. Document.Write "<B><p class=property>SCSI target id is " & oScsi.Targetid & "</B><BR>"
  36. Document.Write "<B><p class=property>SCSI Lun is " & oScsi.Lun & "</B><BR>"
  37. for each oPartition in oDisk.Partitions
  38. Document.Write "<B><p class=property>Disk " & oPartition.DeviceName & " is " & oPartition.FileSystem & "</B><BR>"
  39. next
  40. set oResType = oCluster.ResourceTypes.Item("Physical Disk")
  41. Document.Write "<B><p class=resource>resource type is " & oResType.Name & "</B><BR>"
  42. for each oDisk in oResType.AvailableDisks
  43. for each oPartition in oDisk.Partitions
  44. Document.Write "<B><p class=property>Disk " & oPartition.DeviceName & " is " & oPartition.FileSystem & "</B><BR>"
  45. next
  46. for each oKey in oResType.RegistryKeys
  47. Document.Write "<p class=property>Registry key is " & oKey & "<BR>"
  48. next
  49. for each oKey in oResType.CryptoKeys
  50. Document.Write "<p class=property>Crypto key is " & oKey & "<BR>"
  51. next
  52. next
  53. -->
  54. </SCRIPT>
  55. </HEAD>
  56. <BODY>
  57. </BODY>
  58. </HTML>