Identificar la tarjeta FC - Proyecto - SAN (Storage Area Network)
Algunos comandos linux para identificar la tarjeta FC y las WWNs.
Identificar la tarjeta FC (Fibra Optica) y Driver:
remote-host@anubis:~$ lspci|grep -i fibre
02:00.0 Fibre Channel: QLogic Corp. ISP2432-based 4Gb Fibre Channel to PCI Express HBA (rev 03)
02:00.1 Fibre Channel: QLogic Corp. ISP2432-based 4Gb Fibre Channel to PCI Express HBA (rev 03)
remote-host@anubis:/$ dmesg | grep Fibre
[    1.412178] qla2xxx [0000:00:00.0]-0005: : QLogic Fibre Channel HBA Driver: 8.06.00.08-k.
[    1.780209] qla2xxx [0000:02:00.0]-00fb:0: QLogic QLE2462 - PCI-Express Dual Channel 4Gb Fibre Channel HBA.
[    2.147981] qla2xxx [0000:02:00.1]-00fb:17: QLogic QLE2462 - PCI-Express Dual Channel 4Gb Fibre Channel HBA.
servidor-san@SAN:/etc/modprobe.d# dmesg | grep Fibre
[    1.930214] qla2xxx [0000:00:00.0]-0005: : QLogic Fibre Channel HBA Driver: 8.06.00.08-k.
[    2.299150] qla2xxx [0000:07:00.0]-00fb:7: QLogic QLE2464 - PCI-Express Quad Channel 4Gb Fibre Channel HBA.
[    2.670315] qla2xxx [0000:07:00.1]-00fb:8: QLogic QLE2464 - PCI-Express Quad Channel 4Gb Fibre Channel HBA.
[    3.038036] qla2xxx [0000:08:00.0]-00fb:9: QLogic QLE2464 - PCI-Express Quad Channel 4Gb Fibre Channel HBA.
[    3.406173] qla2xxx [0000:08:00.1]-00fb:10: QLogic QLE2464 - PCI-Express Quad Channel 4Gb Fibre Channel HBA.
Identificación de las WWNs: 
| 
SAN | 
[root@localhost fc_host]# cat /sys/class/fc_host/host*/port_name 
0x2103001b32ed0cf3 
0x2100001b328d0cf3 
0x2101001b32ad0cf3 
0x2102001b32cd0cf3 
---- 
21:00:00:1b:32:8d:0c:f3 
21:03:00:1b:32:ed:0c:f3 
21:01:00:1b:32:ad:0c:f3 
21:02:00:1b:32:cd:0c:f3 | 
| 
ANUBIS | 
karim@anubis:~$ cat /sys/class/fc_host/host*/port_name 
0x2100001b3209bd74 
0x2101001b3229bd74 
---- 
21:01:00:1b:32:29:bd:74 
21:00:00:1b:32:09:bd:74  | 
También se puede instalar la herramienta sysfsutils:
apt-get install sysfsutils
host@anubis:/etc$ systool -c fc_host -A port_name
Class = "fc_host"
  Class Device = "host17"
    port_name           = "0x2101001b3229bd74"
    Device = "host17"
  Class Device = "host8"
    port_name           = "0x2100001b3209bd74"
    Device = "host8"
 
