storage_iscsi_status
Checks the software iSCSI adapter state and configured send targets on an ESXi host. Use it to verify prerequisites before enabling iSCSI or modifying targets, then confirm changes took effect.
Instructions
[READ] Get the software iSCSI adapter state and configured send targets for an ESXi host.
Returns {host, enabled, hba_device, iqn, send_targets: [{address, port}]}; when the adapter is disabled, enabled=false with null device/IQN and an empty target list. Use this before storage_iscsi_enable / storage_iscsi_add_target / storage_iscsi_remove_target to check prerequisites, and afterwards to verify the change took effect.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| target | No | Optional vCenter/ESXi target name from config. | |
| host_name | Yes | ESXi host name exactly as shown in vCenter inventory (FQDN or IP). Errors if not found. No host listing here — get names from vmware-monitor list_esxi_hosts. |