New-IScsiHbaTarget Command | Vmware PowerCLI Reference

New-IScsiHbaTarget

This cmdlet creates a new iSCSI HBA target. The cmdlet also enables and configures the CHAP (Challenge Handshake Authentication Protocol) authentication settings of the new target.The Address parameter supports both IPv4 and v6 and also supports the string representations of these types. e.g. "<address>:<port>". The Port parameter is used only when the value of the Address parameter does not contain the port. The default port number is 3260.

Syntax

New-IScsiHbaTarget
-Address < String >
-IScsiHba < IScsiHba >
[ [-Port ] < Int32 > ]
[ [-IScsiName ] < String > ]
[-ChapName < String > ]
[-ChapPassword < String > ]
[-ChapType < ChapType > ]
[-InheritChap < Boolean > ]
[-InheritMutualChap < Boolean > ]
[-MutualChapEnabled < Boolean > ]
[-MutualChapName < String > ]
[-MutualChapPassword < String > ]
[-ProgressAction < ActionPreference > ]
[-Server < VIServer[] > ]
[-Type < IScsiHbaTargetType > ]
[CommonParameters]

Parameters

Required Parameter Name Type Position Features Description
required
Address String named
Specifies the address of the new iSCSI HBA target. Passing multiple values to this parameter is obsolete.
required
IScsiHba IScsiHba named
  • pipeline
Specifies the iSCSI HBA for which you want to create the new target. Passing multiple values to this parameter is obsolete.
optional Port Int32 1
Specifies the TCP port of the target.
optional IScsiName String 2
Specifies the iSCSI name of the target. It can be specified only for Static targets.
optional ChapName String named
Specifies a CHAP authentication name for the new target.
optional ChapPassword String named
Specifies a CHAP authentication password for the new target.
optional ChapType ChapType named
Specifies the type of the CHAP (Challenge Handshake Authentication Protocol) you want the new target to use. The valid values are Prohibited, Discouraged, Preferred, and Required.
optional InheritChap Boolean named
Indicates that the CHAP setting is inherited from the iSCSI HBA.
optional InheritMutualChap Boolean named
Indicates that the Mutual CHAP setting is inherited from the iSCSI HBA.
optional MutualChapEnabled Boolean named
Indicates that Mutual CHAP is enabled.
optional MutualChapName String named
Specifies a Mutual CHAP authentication name for the new target.
optional MutualChapPassword String named
Specifies a Mutual CHAP authentication password for the new target.
optional ProgressAction ActionPreference named
optional Server VIServer[] named
  • wildcards
Specifies the vCenter Server systems on which you want to run the cmdlet. If no value is provided or $null 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.
optional Type IScsiHbaTargetType named
Specifies the type of the target. The valid values are Static and Send.

Output

VMware.VimAutomation.ViCore.Types.V1.Host.Storage.IScsiHbaTarget

Examples

Example 1

$hba = Get-VMHost | Get-VMHostHba -Type iScsi

New-IScsiHbaTarget -IScsiHba $hba -Address 10.23.84.73

Creates a new target with IP address 10.23.84.73 on the specified iSCSI HBA device.

Example 2

Get-VMHost | Get-VMHostHba -Type iScsi | New-IScsiHbaTarget -Address "10.23.84.73" -ChapType Preferred -ChapName user -ChapPassword pass

Creates a new target on the provided iSCSI HBA device and configures the CHAP settings of the target.

Related Commands

IScsiHbaTarget

This cmdlet retrieves the available iSCSI HBA targets.

This cmdlet creates a new iSCSI HBA target.

This cmdlet removes targets from their iSCSI HBAs.

This cmdlet modifies the configuration of an iSCSI HBA target.