PowerCLI Reference

Get-IScsiHbaTarget

Synopsis

This cmdlet retrieves the available iSCSI HBA targets.

Syntax

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

Related Commands

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

Detailed Description

This cmdlet 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[]Specifies <Address>:<Port> to filter the available iSCSI HBA targets.falseFalse
IScsiHbaIScsiHba[]Specifies the iSCSI HBA whose targets you want to retrieve.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
TypeIScsiHbaTargetType[]Specifies the type of the iSCSI HBA targets you want to retrieve. The valid values are Send and Static.falseFalse

Return Type

Zero or more IScsiHbaSendTarget or IScsiHbaStaticTarget objects

Notes

Examples

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

Get-IScsiHbaTarget -Address "10.23.84.73" -Type Send

Retrieves the targets of type Send on the specified address.


Copyright © VMware, Inc. All rights reserved.