For Solaris 8 ,9 and 10, to find the link status of the HBA's run the following command.
[10:20:39] root@ecpdb[2]# luxadm -e port
Found path to 3 HBA ports
/devices/pci@8,600000/SUNW,qlc@1/fp@0,0:devctl CONNECTED
/devices/pci@8,600000/SUNW,qlc@2/fp@0,0:devctl CONNECTED
/devices/pci@9,600000/SUNW,qlc@2/fp@0,0:devctl CONNECTED
note down the connected HBA device files
To find the WWN associated with CONNECTED HBA's run the following command.
[10:20:39] root@ecpdb[4]# luxadm -e dump_map /devices/pci@8,600000/SUNW,qlc@1/fp@0,0:devctl
Pos Port_ID Hard_Addr Port WWN Node WWN Type
0 320400 0 50060e8003ec2d02 50060e8003ec2d02 0x0 (Disk device)
1 1a0200 0 210000e08b81b4ce 200000e08b81b4ce 0x1f (Unknown Type,Host Bus Adapter)
[10:20:39] root@ecpdb[6]# luxadm -e dump_map /devices/pci@8,600000/SUNW,qlc@2/fp@0,0:devctl
Pos Port_ID Hard_Addr Port WWN Node WWN Type
0 960400 0 50060e8003ec2d12 50060e8003ec2d12 0x0 (Disk device)
1 7e0200 0 210000e08b81c6f2 200000e08b81c6f2 0x1f (Unknown Type,Host Bus Adapter)
[10:20:39] root@ecpdb[7]# luxadm -e dump_map /devices/pci@9,600000/SUNW,qlc@2/fp@0,0:devctl
Pos AL_PA ID Hard_Addr Port WWN Node WWN Type
0 1 7d 0 21000003bace8a69 20000003bace8a69 0x1f (Unknown Type,Host Bus Adapter)
1 ef 0 ef 21000014c31767e3 20000014c31767e3 0x0 (Disk device)
2 e8 1 e8 21000014c31772b2 20000014c31772b2 0x0 (Disk device)
The WWN's which are mentioned by type "Host Bus Adapter" represents WWN of connected HBA's.
prtconf will also display WWN of the connected HBAs
[10:20:39] root@ecpdb[10]# prtconf -vp | grep wwn
port-wwn: 210000e0.8b81b4ce
node-wwn: 200000e0.8b81b4ce
port-wwn: 210000e0.8b81c6f2
node-wwn: 200000e0.8b81c6f2
port-wwn: 21000003.bace8a69
node-wwn: 20000003.bace8a69
We can use "fcinfo" tool also to find the WWN.
ReplyDelete# fcinfo hba-port
HBA Port WWN: 2100001b3289d8ce
OS Device Name: /dev/cfg/c2
Manufacturer: QLogic Corp.
Model: 375-3355-02
Firmware Version: 4.04.01
FCode/BIOS Version: BIOS: 2.2; fcode: 2.1; EFI: 2.0;
Serial Number: 0402R00-0925716711
Driver Name: qlc
Driver Version: 20090415-2.30
Type: N-port
State: online
Supported Speeds: 1Gb 2Gb 4Gb
Current Speed: 4Gb
Node WWN: 2000001b3289d8ce
Thanks for great tips to find the WWN
ReplyDeleteWelcome to the blog , Golf Driver.
DeleteI am hoping to find the name of the actual file that holds that info, the WWN's, it is somewhat cryptic , the name escapes me , i have work on it in the past , Can anyone assist?
ReplyDelete