Existen varias formas de conocer el iSCSI Qualified Name de un Host ESXi, de las cuales la que mas me gusta y me resulta mas cómoda es a través de esxcli. El iqn viene bien conocerlo para cuando quieres configurar la seguridad para que el host ESXi pueda acceder a un iSCSI target tales como un servidor, NAS etc etc como en el siguiente post: Configurar iSCSI Target en CentOS 7
Si ejecutamos esxcli iscsi adapter nos mostrará los espacio de nombres y los comandos disponibles
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 |
[root@ESXi65:~] esxcli iscsi adapter Usage: esxcli iscsi adapter {cmd} [cmd options] Available Namespaces: auth Operations that can be performed on iSCSI adapter authentications discovery Operations that can be performed on iSCSI adapter discovery target Operations that can be performed on iSCSI targets capabilities Operations that can be performed on iSCSI adapter capabilities firmware Operations that can be performed on iSCSI adapter firmware param Operations that can be performed on iSCSI adapter parameters Available Commands: get List the iSCSI information for the iSCSI Host Bus Adapter. list List all the iSCSI Host Bus Adapters on the system. set Set the iSCSI name and alias for the iSCSI Host Bus Adapter. |
Si ejecutamos esxcli iscsi adapter list, nos mostrará la lista de adaptadores iSCSI, en este caso mostrará el iSCSI software adapter, que es el único que tengo.
1 2 3 4 5 |
[root@ESXi65:~] esxcli iscsi adapter list Adapter Driver State UID Description ------- --------- ------ ------------- ---------------------- vmhba65 iscsi_vmk online iscsi.vmhba65 iSCSI Software Adapter [root@ESXi65:~] |
Escribiremos esxcli iscsi adapter get para ver las opciones que tenemos y donde tendremos que añadir la opción –adapter y seguido el nombre del adaptador conseguido anteriormente.
1 2 3 4 5 6 7 8 9 10 |
[root@ESXi65:~] esxcli iscsi adapter get Error: Missing required parameter -A|--adapter Usage: esxcli iscsi adapter get [cmd options] Description: get List the iSCSI information for the iSCSI Host Bus Adapter. Cmd options: -A|--adapter=<str> The iSCSI adapter name. (required) |
Ejecutamos esxcli iscsi adapter get –adapter vmhba65 y en el primer campo que es Name, nos dirá el nombre del iSCSI Qualified Name
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 |
esxcliiscsiadapterget--adaptervmhba65vmhba65Name:iqn.1998-01.com.vmware:esxi65-1bc99602Alias:Vendor:VMwareModel:iSCSISoftwareAdapterDescription:iSCSISoftwareAdapterSerialNumber:HardwareVersion:AsicVersion:FirmwareVersion:OptionRomVersion:DriverName:iscsi_vmkDriverVersion:TCPProtocolSupported:falseBidirectionalTransfersSupported:falseMaximumCdbLength:64CanBeNIC:falseIsNIC:falseIsInitiator:trueIsTarget:falseUsingTCPOffloadEngine:falseUsingISCSIOffloadEngine:false" decode="true" ][root@ESXi65:~] esxcli iscsi adapter get --adapter vmhba65 vmhba65 Name: iqn.1998-01.com.vmware:esxi65-1bc99602 Alias: Vendor: VMware Model: iSCSI Software Adapter Description: iSCSI Software Adapter Serial Number: Hardware Version: Asic Version: Firmware Version: Option Rom Version: Driver Name: iscsi_vmk Driver Version: TCP Protocol Supported: false Bidirectional Transfers Supported: false Maximum Cdb Length: 64 Can Be NIC: false Is NIC: false Is Initiator: true Is Target: false Using TCP Offload Engine: false Using ISCSI Offload Engine: false |
Saludos y espero que os sirva.