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.

26 lines
477 B

  1. Option Explicit
  2. Main
  3. Sub Main
  4. Dim oCluster
  5. Dim oNetInterfaces
  6. Dim nCount
  7. Dim e
  8. Dim sCluster
  9. Set oCluster = CreateObject("MSCluster.Cluster")
  10. sCluster = InputBox( "Cluster to open?" )
  11. oCluster.Open( sCluster )
  12. Set oNetInterfaces = oCluster.NetInterfaces
  13. nCount = oNetInterfaces.Count
  14. MsgBox "Net Interfaces count is " & nCount
  15. for e = 1 to nCount
  16. MsgBox "Net Interface name is '" & oNetInterfaces.Item(e).Name & "'"
  17. next
  18. End Sub