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
[-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[] | named |
|
Specifies the iSCSI HBA device you want to configure. | optional |
|
String | named |
|
Specifies the CHAP initiator name if CHAP is enabled. | optional |
|
String | named |
|
Specifies the CHAP password if CHAP is enabled. | optional |
|
ChapType | named |
|
Specifies the type of the CHAP authorization. The valid values are Prohibited, Discouraged, Preferred, and Required. | optional |
|
String | named |
|
Specifies a new name for the host HBA device. | optional |
|
Boolean | named |
|
Indicates that Mutual CHAP authorization is enabled. | optional |
|
String | named |
|
Specifies the Mutual CHAP initiator name if Mutual CHAP is enabled. | optional |
|
String | named |
|
Specifies the Mutual CHAP password if Mutual CHAP is enabled. | optional |
|
VIServer[] | named |
|
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
Changes the CHAP type of the available iScsi to Required.
Example 2
Enables Mutual CHAP for the iScsi devices stored in the $iscsi variable and changes the CHAP type to Required.
Related Commands
VMHost
VMHostAccount
VMHostAdvancedConfiguration
VMHostAuthentication
VMHostAvailableTimeZone
VMHostDiagnosticPartition
VMHostDisk
VMHostDiskPartition
VMHostFirewallDefaultPolicy
VMHostFirewallException
VMHostFirmware
VMHostHardware
VMHostHba
VMHostModule
VMHostNetwork
VMHostNetworkAdapter
VMHostNetworkStack
VMHostNtpServer
VMHostPatch
VMHostPciDevice
VMHostProfile
VMHostProfileCompliance
VMHostProfileImageCacheConfiguration
VMHostProfileRequiredInput
VMHostProfileStorageDeviceConfiguration
VMHostProfileUserConfiguration
VMHostProfileVmPortGroupConfiguration
VMHostRoute
VMHostService
VMHostSnmp
VMHostStartPolicy
VMHostStorage