How to discover WWN on Linux

For QLogic HBAs  
# cat /proc/scsi/qla2xxx/* | grep adapter-port
scsi-qla0-adapter-port=500110a000160c12;
scsi-qla1-adapter-port=500110a000160c2e;


For Emulex HBAs
# cat /sys/class/scsi_host/host*/port_name
0x10000000c98c76c7
0x10000000c98c9e9c


If I know of any other variants of kernel version, HBA types, I'll update this post to add them. Please feel free to comment, I'll add your comments to the main post.

No comments:

Post a Comment

Help a friend, share your knowledge