PowerCLI Reference

Get-VMHostHba

Synopsis

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

Syntax

Get-VMHostHba [[-Device] <String[]>] [[-VMHost] <VMHost[]>] [-Server <VIServer[]>] [-Type <HbaType[]>] [<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.