The target's iSCSI initiator name is in
/etc/iscsi/initiatorname.iscsi.
If you use targetcli for iSCSI configuration, all config is in
/etc/target/saveconfig.json. For example:
Code:
# cat /etc/target/saveconfig.json
...
"targets": [
{
"fabric": "iscsi",
"tpgs": [
{
"attributes": {
...
},
"enable": true,
"luns": [],
"node_acls": [
{
...
"chap_password": "naspw11",
"chap_userid": "nas11",
"mapped_luns": [],
"node_wwn": "iqn.1994-05.com.redhat:5deda06d84b6"
}
...
You can also launch the
targetcli command, navigate to the ACL and use the get auth command for authentication data:
Code:
# targetcli
targetcli shell version 2.1.53
Copyright 2011-2013 by Datera, Inc and others.
For help on commands, type 'help'.
/> cd /iscsi/iqn.2003-01.org.linux-iscsi.centos8.x8664:sn.8de53af50b23/tpg1/acls/iqn.1994-05.com.redhat:5deda06d84b6
/iscsi/iqn.20...:5deda06d84b6> get auth
AUTH CONFIG GROUP
=================
mutual_password=
----------------
The mutual_password auth parameter.
mutual_userid=
--------------
The mutual_userid auth parameter.
password=naspw11
----------------
The password auth parameter.
userid=nas11
------------
The userid auth parameter.
/iscsi/iqn.20...:5deda06d84b6>
For details, use
help.