To check what is the HBA (firmware) version.
root@server:/root# for host in `ls /sys/class/scsi_host/`; do cat /sys/class/scsi_host/${host}/fw_version 2>/dev/null; done 5.06.03 (90d5) 5.06.03 (90d5)
For WWN.
root@server:/root# for host in `ls /sys/class/scsi_host/`; do cat /sys/class/scsi_host/${host}/device/fc_host\:${host}/port_name 2>/dev/null; done 0x2100001b32898bbd 0x2100001b3289b3bf
To rescan looking for new disks
# for host in `ls /sys/class/scsi_host/`;do echo "- - -" \ >/sys/class/scsi_host/${host}/scan; done
in echo “- – -” each “-” has a meaning. All together are “controller, target, disk”