You can list and set iSCSI options with ESXCLI or with vicfg-iscsi. You can also manage parameters. See Listing and Setting iSCSI Parameters.Use esxcli iscsi information retrieval commands to list external HBA properties, information about targets, and LUNs. Specify one of the options listed in Connection Options in place of <conn_options>.
■ Run esxcli iscsi adapter firmware to list or upload the firmware for the iSCSI adapter.
■ Run commands in the esxcli iscsi adapter target name space.
■ esxcli iscsi adapter target portal lists and sets authentication and portal parameters.
■ esxcli iscsi adapter target list lists LUN information.
■ Run esxcli network vswitch standard set to change the MTU of the virtual switch.
■ Run esxcli network ip interface set to change the MTU of the network interface.Use vicfg-iscsi information retrieval options to list external HBA properties, information about targets, and LUNs. You can use the following vicfg-iscsi options to list iSCSI parameters. Specify one of the options listed in Connection Options in place of <conn_options>.
■ Run vicfg-iscsi -P|--phba to list external (vendor-specific) properties of an iSCSI adapter.vicfg-iscsi <conn_options> - -phba - -list <adapter_name>
■ vicfg-iscsi <conn_options> - -target - -list <adapter_name>The system returns information about targets for the specified adapter, including the iSCSI name (IQN or EUI format) and alias. See Discovery Target Names.
■ vicfg-iscsi <conn_options> - -lun - -list <adapter_name>The command returns the operating system device name, bus number, target ID, LUN ID, and LUN size for the LUN.
■ vicfg-iscsi <conn_options> - -lun - -list - -target_id <target_id> <adapter_name>The system returns the LUNs on the specified target and the corresponding device name, device number, LUN ID, and LUN size.
■ Run vicfg-iscsi -p|--pnp to list physical network portal information for independent hardware iSCSI devices. You also use this option with --mtu.vicfg-iscsi <conn_options> - -pnp - -list <adapter_name>
■ Run vicfg-iscsi -I -l to list information about the iSCSI initiator. ESXi systems use a software-based iSCSI initiator in the VMkernel to connect to storage. The command returns the iSCSI name, alias name, and alias settable bit for the initiator.
■ Run vicfg-iscsi -p -M to set the MTU for the adapter. You specify the size and adapter name.vicfg-iscsi <conn_options> - -pnp - -mtu <mtu-size> <adapter_name>