Para ver el WWN de una HBA:

systool -av -c fc_host        # systool pertenece al paquete sysfsutils. Sacar la línea port_name

Misc:

multipath -ll
sg3-utils package:
	sg_map
	sg_scan -i

cat /proc/scsi/scsi

You can get the Fiber Channel addresses of the HBAs by typing the following commands:
# systool -c fc_host -v

Type the following command to determine the fibre channel target WWN:
# systool -c fc_transport -v

You will get node name (FC WWN) and port name of the storage processor port. Type the following command, to determine the mapping between SCSI HBTL addresses and the disks:
# sg_map -x

Para sacar los wwn de tarjetas qlogic y emulex:

[bash]
if [ -d "/sys/class/fc_host" ] ; then
cd /sys/class/fc_host
ls -w1 | while read i ; do
if [ -f "$i/port_name" ] ; then
echo -n "wwn: "
cat $i/port_name
fi
done
elif [ -d "/proc/scsi/qla2xxx" ] ; then
cd /proc/scsi/qla2xxx
ls -w1 | while read i ; do
if [ -f "$i" ] ; then
echo -n "wwn: "
grep -E "scsi-qla.-adapter-port" $i|cut -d= -f2|cut -d\; -f1
fi
done
fi
[/bash]

Fibre channel – apuntes
Etiquetado en:    

Deja una respuesta

Tu dirección de correo electrónico no será publicada. Los campos obligatorios están marcados con *