On Solaris, you can use fcinfo.
root@testhost ~$ fcinfo hba-port
HBA Port WWN: 10000000c9722f6a
OS Device Name: /dev/cfg/c5
Manufacturer: Emulex
Model: LPe11002-S
Firmware Version: 2.80a4 (Z3F2.80A4)
FCode/BIOS Version: 1.50a9
Serial Number: 0999BG0-07510003DZ
Driver Name: emlxs
Driver Version: 2.31o (2008.10.20.14.00)
Type: unknown
State: offline
Supported Speeds: 1Gb 2Gb 4Gb
Current Speed: not established
Node WWN: 20000000c9722f6a
HBA Port WWN: 10000000c9722f69
OS Device Name: /dev/cfg/c3
Manufacturer: Emulex
Model: LPe11002-S
Firmware Version: 2.80a4 (Z3F2.80A4)
FCode/BIOS Version: 1.50a9
Serial Number: 0999BG0-07510003DZ
Driver Name: emlxs
Driver Version: 2.31o (2008.10.20.14.00)
Type: N-port
State: online
Supported Speeds: 1Gb 2Gb 4Gb
Current Speed: 4Gb
Node WWN: 20000000c9722f69
So there you have it, all needed informations. As you can see one is online and one is offline. The offline can mean that it has been unconfigured trough cfgadm or there is no link. See cfgadm link on how to unconfigure and configure a disk.
You can also do prtconf -vp or prtpicl -v and search for the need information by looking for wwn.
On Linux you can just use systool. As you can see below, Linux stores alot of useful information in /sys/class/ that can all be viewed with systool -av -c [class]
root@testhost# systool -av -c fc_host
Class = "fc_host"
Class Device = "host3"
Class Device path = "/sys/class/fc_host/host3"
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 = "0x1000080088a04a7f"
issue_lip =
maxframe_size = "2048 bytes"
node_name = "0x20000000c9775d9c"
port_id = "0x651813"
port_name = "0x10000000c9775d9c"
port_state = "Online"
port_type = "NPort (fabric via point-to-point)"
speed = "2 Gbit"
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"
tgtid_bind_type = "wwpn (World Wide Port Name)"
uevent =
Device = "host3"
Device path = "/sys/devices/pci0000:00/0000:00:02.0/0000:01:00.0/0000:02:00.0/0000:03:00.0/host3"
uevent = store method only