UNIX Consulting and Expertise
Golden Apple Enterprises Ltd. » Page 'Finding the WWN in Solaris followup – making it easier'

Finding the WWN in Solaris followup – making it easier

Looking for UNIX and IT expertise? Why not get in touch and see how we can help?

In the previous post I listed the ‘long way round’ to find out the WWN from active HBA links in Solaris. The commands I listed before will work on all recent releases of Solaris. If you’re able to migrate to Solaris 10, you can make things easier for yourself.

cfgadm will take a verbose flag, which will print out a listing that includes the full device path. This will definitely work on Solaris 9 and 10 – I’m afraid I don’t have an 8 box to test though.

bash-3.00# cfgadm -lv 
Ap_Id                          Receptacle   Occupant     Condition  Information
When         Type         Busy     Phys_Id
c0                             connected    configured   unknown
unavailable  scsi-bus     n        [email protected][email protected][email protected][email protected][email protected]:scsi
c1                             connected    configured   unknown
unavailable  scsi-bus     n        [email protected][email protected][email protected][email protected],2/LSILogic,[email protected]:scsi
c2                             connected    configured   unknown
unavailable  fc-private   n        [email protected][email protected][email protected]/SUNW,[email protected][email protected],0:fc
c3                             connected    unconfigured unknown
unavailable  fc           n        [email protected][email protected][email protected]/SUNW,[email protected],[email protected],0:fc
c4                             connected    configured   unknown
unavailable  fc-private   n        [email protected][email protected][email protected]/SUNW,[email protected][email protected],0:fc
c5                             connected    unconfigured unknown
unavailable  fc           n        [email protected][email protected][email protected]/SUNW,[email protected],[email protected],0:fc
usb0/1                         empty        unconfigured ok
unavailable  unknown      n        [email protected][email protected][email protected][email protected][email protected]:1
usb0/2                         empty        unconfigured ok
unavailable  unknown      n        [email protected][email protected][email protected][email protected][email protected]:2
usb1/1.1                       empty        unconfigured ok
unavailable  unknown      n        [email protected][email protected][email protected][email protected][email protected][email protected]:1.1
usb1/1.2                       empty        unconfigured ok
unavailable  unknown      n        [email protected][email protected][email protected][email protected][email protected][email protected]:1.2
usb1/1.3                       empty        unconfigured ok
unavailable  unknown      n        [email protected][email protected][email protected][email protected][email protected][email protected]:1.3
usb1/1.4                       empty        unconfigured ok
unavailable  unknown      n        [email protected][email protected][email protected][email protected][email protected][email protected]:1.4
usb1/2                         empty        unconfigured ok
unavailable  unknown      n        [email protected][email protected][email protected][email protected][email protected]:2

If you have Solaris 10 8/07 or later, then you’ll find that the dump_map option to luxadm will take the short notation for an HBA that cfgadm uses.

bash-3.00# luxadm -e dump_map /dev/cfg/c2
Pos AL_PA ID Hard_Addr Port WWN         Node WWN         Type
0     1   7d    0      210000e08b86f840 200000e08b86f840 0x1f (Unknown Type,Host Bus Adapter)
1     ad  23    ad     50060e8014118960 50060e8014118960 0x0  (Disk device)

Again, this all works only if the HBA has a live link – it needs some cable plugged in, and you need to have something listening at the other end. I’ll be exploring how to find the WWN of your HBAs – even if they’re not plugged in – soon, using some other features of Solaris.

Like this post? Spread the word!
delicious digg google
stumbleupon technorati Yahoo!

Comments are closed.

Top of page / Subscribe to new Entries (RSS)