Find the fiber channel hosts
# ls /sys/class/fc_host
# systool -c fc_host -v
Find the name of the card
# more /sys/class/fc_host/host12/symbolic_name
Find the WWNN of a fiber host
# more /sys/class/fc_host/host12/node_name
Find the WWPN of a fiber host
# more /sys/class/fc_host/host12/port_name
Reset the HBA
echo 1 > /sys/class/fc_host/host8/issue_lip
# more /sys/class/fc_host/host12/fabric_name
# more /sys/class/fc_host/host12/port_id
Fibre Channel (FC) Host Bus Adapters(HBA) are interface cards that connects the host system to a fibre channel network or devices.
WWN, WWNN, WWPN !?
A World Wide Name (WWN) or World Wide Identifier (WWID) is a unique identifier used in storage technologies including Fibre Channel, Parallel ATA, Serial ATA, NVM Express, SCSI and Serial Attached SCSI (SAS).
A World Wide Node Name, WWNN, or WWnN, is a World Wide Name assigned to a node (an endpoint, a device) in a Fibre Channel fabric. It is valid for the same WWNN to be seen on many different ports (different addresses) on the network, identifying the ports as multiple network interfaces of a single network node. A WWNN can have multiple WWPNs.
World Wide Port Name, WWPN, or WWpN, is a World Wide Name assigned to a port in a Fibre Channel fabric. Used on storage area networks, it performs a function equivalent to the MAC address in Ethernet protocol, as it is supposed to be a unique identifier in the network.