PowerCLI Reference

Get-VMHostHba

Synopsis

This cmdlet retrieves information about the available HBAs (Host Bus Adapter).

Syntax

Get-VMHostHba [[-VMHost] <VMHost[]>] [[-Device] <String[]>] [-Type <HbaType[]>] [-Server <VIServer[]>] [<CommonParameters>]

Related Commands

Online version
Get-IScsiHbaTarget
New-IScsiHbaTarget
Remove-IScsiHbaTarget
Set-IScsiHbaTarget
Set-VMHostHba

Detailed Description

This cmdlet retrieves information about the available HBAs (Host Bus Adapter).

Parameters

NameTypeDescriptionRequired?Pipeline InputDefault Value
DeviceString[]Specifies the devices of the HBA you want to retrieve.falsefalse
VMHostVMHost[]Specifies the hosts for which you want to retrieve HBAs.falsetrue (ByValue)
ServerVIServer[]Specifies the vCenter Server systems on which you want to run the cmdlet. If no value is passed to this parameter, the command runs on the default servers. For more information about default servers, see the description of Connect-VIServer.falsefalse
TypeHbaType[]Specifies the type of the HBAs you want to retrieve. The valid values are Block, FibreChannel, iSCSI, and ParallelSCSI.falsefalse

Return Type

Zero or more Hba objects

Notes

Examples

-------------- Example 1 --------------

Get-VMHostHba -Device *hba0* | fl

Retrieves the available HBA devices that contain "hba0" in their names.


Copyright © VMware, Inc. All rights reserved.