Displaying iSCSI iGroup and Initiator Names in Linux

If you're setting up an iSCSI system for the first time or adding a new host to an existing SAN, you'll inevitably need to look up the iSCSI initiator name at some point.  Once you've added initiators to an iGroup, you can look up all of the iGroups and the software and hardware initiators within them using the following command:

igroup show

Here's a sample of the output you'll see on a Red Hat Enterprise Linux system with two iSCSI initiators:

james_test_igroup (iSCSI) (ostype: linux):

iqn.1994-05.com.redhat:c3dfa51d3e76 (logged in on: vif1-100)

iqn.1994-05.com.redhat:cb3g553f692g (logged in on: vif1-100)