How to get WWN on solaris

World Wide Name (WWN) are unique 8 byte (64-bit) identifiers in SCSI or fibre channel similar to that of MAC Addresses on a Network Interface Card (NIC).
Talking about the WWN names, there are also
World Wide port Name (WWpN), a WWN assigned to a port on a Fabric which is what you would be looking for most of the time.
World Wide node Name (WWnN), a WWN assigned to a node/device on a Fibre Channel fabric.

To find the WWN numbers of your HBA card in Sun Solaris, you can use one the following procedures

For Solaris 10 :Below all commnads will provide you WWN #'s

# fcinfo hba-port      {OR}

# prtconf -vp | grep -i wwn    {OR}

# scli -i   {OR}
# prtpicl -v | grep wwn
# luxadm -e port  ( get the full device_path)

   #luxadm -e dump_map /devices/pci@6000/pci@0/pci@7/SUNW,qlc@0/fp@0,0:devctl
# If its third party card, use to install the driver and run the commands, (ex: lpfc tool)

 For Solaris 8/9
All commands as above except fcinfo,


Kindly post if anyone has different ways to get.

Thanks

No comments: