Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
在 Linux 中,如果我以编程方式或通过读取 /sys 文件系统知道启动器名称,我如何获得 iscsi 目标 IP。即不使用 iscsiadm 或读取 /etc/iscsi/node/* 链接。谢谢
找到了:
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
其中 $host 是 scsi 主机名