get iscsi ip from initiator name
-
06-06-2021 - |
문제
In Linux how can I get iscsi target IP if I know the initiatorname either programmatically or by reading /sys filesystem. That is Without using iscsiadm or reading /etc/iscsi/node/* links. Thanks
해결책
Found it:
initiator ip: /sys/class/scsi_host/$host/device/iscsi_host/${host}/ipaddress
target ip: /sys/class/scsi_host/$host/device/session${s}/connection*/iscsi_connection/connection*/address
where $host the scsi host name
제휴하지 않습니다 StackOverflow