Find WWN and WWPN in Solaris

How do you find out WWN and WWPN of HBA in Solaris server?

Here is the quick way to get wwnn and wwpn in Solaris:
testuser@testsunsrv # /usr/sbin/prtconf -vp | grep -i wwn
            port-wwn:  210000e0.4m1e143f
            node-wwn:  200000e0.4m1e143f
            port-wwn:  210100e0.4m3e143f
            node-wwn:  200000e0.4m3e143f
            port-wwn:  21000003.fc2f1c36
            node-wwn:  20000003.fc2f1c36
            port-wwn:  210000e0.4m103794
            node-wwn:  200000e0.4m103794
            port-wwn:  210100e0.4m303794
            node-wwn:  200000e0.4m303794
            port-wwn:  210000e0.4m0a575b
            node-wwn:  200000e0.4m0a575b
            port-wwn:  210100e0.4m2a575b
            node-wwn:  200000e0.4m2a575b
            port-wwn:  210000e0.4m0a55ab
            node-wwn:  200000e0.4m0a55ab
            port-wwn:  210100e0.4m2a55ab
            node-wwn:  200000e0.4m2a55ab

testuser@testsunsrv #  prtpicl -v -c scsi-fcp | grep -i wwn
  :node-wwn      20  00  00  e0  4m  1e  14  3f
  :port-wwn      21  00  00  e0  4m  1e  14  3f
  :node-wwn      20  00  00  e0  4m  3e  14  3f
  :port-wwn      21  01  00  e0  4m  3e  14  3f
  :node-wwn      20  00  00  03  fc  2f  1c  36
  :port-wwn      21  00  00  03  fc  2f  1c  36
  :node-wwn      20  00  00  e0  4m  10  37  94
  :port-wwn      21  00  00  e0  4m  10  37  94
  :node-wwn      20  00  00  e0  4m  30  37  94
  :port-wwn      21  01  00  e0  4m  30  37  94
  :node-wwn      20  00  00  e0  4m  0a  57  5b
  :port-wwn      21  00  00  e0  4m  0a  57  5b
  :node-wwn      20  00  00  e0  4m  2a  57  5b
  :port-wwn      21  01  00  e0  4m  2a  57  5b
  :node-wwn      20  00  00  e0  4m  0a  55  ab
  :port-wwn      21  00  00  e0  4m  0a  55  ab
  :node-wwn      20  00  00  e0  4m  2a  55  ab
  :port-wwn      21  01  00  e0  4m  2a  55  ab
testuser@testsunsrv #

Just grep for "port-wwn" in the above command to see only WWPN. In most of the cases, WWPN is the required information for storage zoning.

testuser@testsunsrv #  prtpicl -v -c scsi-fcp | grep -i port-wwn
 Hope this helps..!

Share this

Related Posts

Previous
Next Post »

3 comments

Write comments
May 21, 2012 at 5:31 PM delete

Easy and straight forward command to find wwn in Solaris 10 servers:.

fcinfo hba-port

cfgadm -al -o show_FCP_dev

Reply
avatar
June 6, 2012 at 7:27 PM delete

Hey Thanks for your visit and your quick info

Reply
avatar
June 5, 2013 at 3:21 AM delete

I don't recall cfgadm ever working for me. prtpicl and fcinfo for sure.

Reply
avatar

What do you think about this Article? Add your Opinion..! EmoticonEmoticon