Get target IP address of an iscsi device
问题 Suppose I have an iSCSI device /dev/sdat , how do I know the IP address of it's target? The target driver is SCST, and the initiator is iSCSI. All I know is a device named /dev/sdat and nothing more. So how to get the IP address of it's target? 回答1: Well, I'm not proud of this, but it gets the job done. At least for some definitions of getting the job done. The basic idea is this. You can get the target IQN from the output of lsscsi -t . (You'll need the lsscsi program if you don't already