Set-VMHostHba

This cmdlet configures the CHAP properties of the specified iSCSI HBAs. If (Mutual)ChapType is set to a value different than "Prohibited", (Mutual)ChapPassword must be set. ChapType, MutualChapType, MutualChapName, MutualChapPassword - these are only available on 4.1 or later. Note: Run Set-VmHostHba directly against ESX. When Set-VmHostHba is run against vCenter Server, changing the iScsiName property of an iSCSI adapter modifies its AuthenticationCapabilities property.

Syntax

-IScsiHba  <IScsiHba[]>
[-ChapName  <String>]
[-ChapPassword  <String>]
[-ChapType  <ChapType>]
[-IScsiName  <String>]
[-MutualChapEnabled  <Boolean>]
[-MutualChapName  <String>]
[-MutualChapPassword  <String>]
[-Server  <VIServer[]>]
[CommonParameters]

Parameters

Required Parameter Name Type Position Features Description
required
IScsiHba
IScsiHba[] named
  • wildcards
  • pipeline
  • Specifies the iSCSI HBA device you want to configure.
    optional
    ChapName
    String named Specifies the CHAP initiator name if CHAP is enabled.
    optional
    ChapPassword
    String named Specifies the CHAP password if CHAP is enabled.
    optional
    ChapType
    ChapType named Specifies the type of the CHAP authorization. The valid values are Prohibited, Discouraged, Preferred, and Required.
    optional
    IScsiName
    String named Specifies a new name for the host HBA device.
    optional
    MutualChapEnabled
    Boolean named Indicates that Mutual CHAP authorization is enabled.
    optional
    MutualChapName
    String named Specifies the Mutual CHAP initiator name if Mutual CHAP is enabled.
    optional
    MutualChapPassword
    String named Specifies the Mutual CHAP password if Mutual CHAP is enabled.
    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.

    Output

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

    Examples


    Example 1

    Get-VMHostHba -Type iScsi | Set-VMHostHba -ChapType Required -ChapName Admin -ChapPassword pass

    Changes the CHAP type of the available iScsi to Required.

    Example 2

    Set-VMHostHba -IScsiHba $iscsi -MutualChapEnabled $true -ChapType Required -ChapName Admin -ChapPassword pass -MutualChapName Administrator -MutualChapPassword Pass

    Enables Mutual CHAP for the iScsi devices stored in the $iscsi variable and changes the CHAP type to Required.

    Related Commands

    Feedback

    Was this page helpful?