문제

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

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top