Automation

 View Only
  • 1.  Display a List of HBAs and iSCSI HBA

    Posted Jul 19, 2010 11:29 PM

    In the vSphere client, we can see a list of HBAs. This helps us identify what vmhba0, vmhba1, etc. are (i.e. which one is local storage, which one is FC, etc.). How do I do this in PowerCLI? A cmdlet would be nice.

    I know how to enable software iSCSI. After that, I need to add the target. I know how to do that, but it requires the software iSCSI HBA. It might be vmhba32, vmhba33, etc. How do I determine the software iSCSI HBA? A cmdlet would be nice.



  • 2.  RE: Display a List of HBAs and iSCSI HBA

    Posted Jul 20, 2010 12:43 AM

    The easiest way to get the information you need is :

    get-vmhost "YourESXHostName" | get-vmhosthba

    The default output should get you what you need. I unfortunately can't help you with iSCSI as it isn't something we use in our environment and I'm not 100% familiar with it.



  • 3.  RE: Display a List of HBAs and iSCSI HBA

    Posted Jul 20, 2010 08:02 AM

    The command ae_jenkins posted will give you information about all HBAs on the host. If you want just the iSCSI HBAs, then you can filter them like this:

    Get-VMHost "HostName" | Get-VMHostHba -Type iScsi



    -


    PowerCLI development team