This might be a more universal command and may work in other distro’s..I’m not sure. Please note: this is the WWN of the card only, for this particular box I ran the command on, the fiber wasn’t even ran yet and this is showing the card only.
After fiber is ran etc..and SAN has been presented, you can install multipath; multipathing tools. /etc/init.d/multipath start; multipath -ll or -l should show the WWN.
# systool -av -c fc_host
(Node_Name = WWN)
Class = “fc_host”
Class Device = “host0”
Class Device path = “/sys/devices/pci0000:00/0000:00:04.0/0000:13:00.0/host0/fc_host/host0”
active_fc4s        = “0x00 0x00 0x01 0x00 0x00 0x00 0x00 0x01 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 ”
fabric_name        = “0x0”
issue_lip          = <store method only>
max_npiv_vports    = “16”
maxframe_size      = “2048 bytes”
node_name          = “0x20000000c953b3bd”
npiv_vports_inuse  = “0”
port_id            = “0x000000”
port_name          = “0x10000000c953b3bd”
port_state         = “Linkdown”
port_type          = “Unknown”
speed              = “unknown”
supported_classes  = “Class 3”
supported_fc4s     = “0x00 0x00 0x01 0x00 0x00 0x00 0x00 0x01 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 ”
supported_speeds   = “1 Gbit, 2 Gbit, 4 Gbit”
symbolic_name      = “Emulex A8002A FV2.82A4 DV8.3.5.8.2p”
tgtid_bind_type    = “wwpn (World Wide Port Name)”
uevent             =
vport_create       = <store method only>
vport_delete       = <store method only>
Device = “host0”
Device path = “/sys/devices/pci0000:00/0000:00:04.0/0000:13:00.0/host0”
uevent             = “DEVTYPE=scsi_host”
Class Device = “host1”
Class Device path = “/sys/devices/pci0000:00/0000:00:06.0/0000:17:00.0/host1/fc_host/host1”
active_fc4s        = “0x00 0x00 0x01 0x00 0x00 0x00 0x00 0x01 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 ”
fabric_name        = “0x0”
issue_lip          = <store method only>
max_npiv_vports    = “16”
maxframe_size      = “2048 bytes”
node_name          = “0x20000000c953b1ec”
npiv_vports_inuse  = “0”
port_id            = “0x000000”
port_name          = “0x10000000c953b1ec”
port_state         = “Linkdown”
port_type          = “Unknown”
speed              = “unknown”
supported_classes  = “Class 3”
supported_fc4s     = “0x00 0x00 0x01 0x00 0x00 0x00 0x00 0x01 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 ”
supported_speeds   = “1 Gbit, 2 Gbit, 4 Gbit”
symbolic_name      = “Emulex A8002A FV2.82A4 DV8.3.5.8.2p”
tgtid_bind_type    = “wwpn (World Wide Port Name)”
uevent             =
vport_create       = <store method only>
vport_delete       = <store method only>
Device = “host1”
Device path = “/sys/devices/pci0000:00/0000:00:06.0/0000:17:00.0/host1”
uevent             = “DEVTYPE=scsi_host”
Hey there! Do you use Twitter? I’d like to follow you if that would be okay. I’m undoubtedly enjoying your blog and look forward to new posts.
great man, thx 😉
Thanks for this 🙂
Cool, that command is new to me. I have been looking in
/sys/class/scsi_host/hostN/device/fc_host/hostN/port_name
(which seems to work universally amongst the different linuxes)