vSphere PowerCLI Reference

Get-IScsiHbaTarget

Synopsis

Retrieves the available iSCSI HBA targets.

Syntax

Get-IScsiHbaTarget [[-IScsiHba] <IScsiHba[]>] [-Type <IScsiHbaTargetType[]>] [[-IPEndPoint] <String[]>] [-Server <VIServer[]>] [<CommonParameters>]

Related Commands

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

Detailed Description

Retrieves the available iSCSI HBA targets. The cmdlet retrieves the configured targets (send and static) on the specified iSCSI storage adapters. If IPEndPoint is specified filters the result by <Address>:<Port>. If no IScsiHba is provided - retrieves all targets from the entire inventory.

Parameters

NameTypeDescriptionRequired?Pipeline InputDefault Value
IPEndPointString[]Specify <Address>:<Port> to filter the available iSCSI HBA targets.falsefalse
IScsiHbaIScsiHba[]Specify the iSCSI HBA whose targets you want to retrieve.falsetrue (ByValue)
ServerVIServer[]A vSphere servers to apply the command on. If no value is given to this parameter, the command runs on the server currently specified in the $DefaultVIServer variable.falsefalse
TypeIScsiHbaTargetType[]Specify the type of the iSCSI HBA targets you want to retrieve. The valid values are Send and Static.falsefalse

Return Type

IScsiHbaTarget[]

Notes

Examples

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

Get-IScsiHbaTarget -Address "10.23.84.73" -Type Send

Retrieves the targets of type Send on the specified address.


Copyright © 1998 - 2012 VMware, Inc. All rights reserved.