This is an old revision of the document!


some useful commands around fibre channel

WWN & Co

get the wwn from the adapers

SLES

# for i in $(ls -d /sys/class/scsi_host/host*/device/fc_host/host*/port_name); do echo $i $(cat $i);done

e.g.

# for i in $(ls -d /sys/class/scsi_host/host*/device/fc_host/host*/port_name); do echo $i $(cat $i);done
/sys/class/scsi_host/host15/device/fc_host/host15/port_name 0x2100f4e9d455702c
/sys/class/scsi_host/host16/device/fc_host/host16/port_name 0x2100f4e9d455702d
/sys/class/scsi_host/host17/device/fc_host/host17/port_name 0x2100f4e9d45573c8
/sys/class/scsi_host/host18/device/fc_host/host18/port_name 0x2100f4e9d45573c9