User`s guide

Chapter IX. FCoE Full Offload Initiator
Chelsio T5/T4 Unified Wire For Linux Page 160
4.2.3. Verifying the target discovery
To check the targets being discovered use cxgbtool. To check the list of targets that are being
discovered from a particular FCoE port, use the following commands from cxgbtool.
i. Check for the adapter number using the following command.
[root@host]# cxgbtool stor s
ii. To check the list of targets discovered from a particular FCoE port, first find out the wwpn of
the initiator local port under sysfs. The hosts under fc_host depends on the number of ports
on the adapter used.
[root@host]# cat /sys/class/fc_host/hostX/port_name
iii. After finding the localport, go to the corresponding Remote port under sysfs # cat
/sys/class/fc_remote_ports/rport-X:B:R where X is the Host ID, B is the bus ID and R is
the remote port.
Alternatively the locaports can also be found using cxgbtool
[root@host]# cxgbtool stor a <adapter no> --show-lnode
R can correspond to NameServer, Management Server and other initiator ports
logged in to the switch and targets.
Note