The vicfg-iscsi command allows you to configure software or hardware iSCSI on ESX/ESXi hosts, set up CHAP parameters, and set up iSCSI networking.

For details, see the VMware vSphere Command-Line Interface Installation and Reference Guide.