HPE EVA Storage
1753701 Members
4905 Online
108799 Solutions
New Discussion юеВ

How to List WWID's of all SAN Attached devices (tapes/disks)

 
Alzhy
Honored Contributor

How to List WWID's of all SAN Attached devices (tapes/disks)

Servers using Tachyon XL2's (td0, td1)

I could list disk WWID's using spmgr (as I am running SecurePath..)... Is there a command, trick, tool to list all SAN devices with their WWID's? I could not find the man pages for tdlist and tdutil out of the fcms package..
Hakuna Matata.
5 REPLIES 5
Steven E. Protter
Exalted Contributor

Re: How to List WWID's of all SAN Attached devices (tapes/disks)

My understanding is that world wide names are associated with the fiber cards, not the devices hung off of them.

That is simply done with the following command:

fcmsutil /dev/td0
fcmsutil /dev/td1

You can grep for

| grep -i World

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Con O'Kelly
Honored Contributor

Re: How to List WWID's of all SAN Attached devices (tapes/disks)

Hi Nelson

I agree with SEP, WWID's are associated with HBA's as opposed to the devices that are connected to them. So each HBA will have its own unique WWID.

As well as the 'fcmsutil' command you can also logon to the switch & run a command:
For example on Brocade switches:
> switchShow

This will show all WWID's of any device (HBA) connected to that switch.

Cheers
Con
James A. Donovan
Honored Contributor

Re: How to List WWID's of all SAN Attached devices (tapes/disks)

You may want to take a look at

"fcmsutil /dev/td0 get remote all"

It will show you the WWID's of the connected target device(s?)

|morpheus|jdonovan|>/opt/fcms/bin/fcmsutil /dev/td0 get remote all

Target N_Port_id is = 0x011c00
Target state = DVS_READY
Symbolic Name = HP A6189A HP18
Port Type = N_PORT
Target Port World Wide Name = 0x50060b00001966e4
Target Node World Wide Name = 0x50060b000009266b

Common Service parameters (all values shown in hex):
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Version_Hi: 20 Version_Low: 9
BB_Credit: 0 Ciro: 1
Alt_BBcred: 1 Rxsz: 800
Conseq: ff RO_Bitmap: 2
Resolution: 0 EDTOV(ms): 7d0

Vendor version (in hex) 0 0 0 0
-------------------------------------------------------------
Remember, wherever you go, there you are...
Rajeev  Shukla
Honored Contributor

Re: How to List WWID's of all SAN Attached devices (tapes/disks)

Yes the best and clean way to get the Node WWW name and Port WWW name would be from switch side.
Login to the switch and use "nsshow" or switchshow and that will give you
Alzhy
Honored Contributor

Re: How to List WWID's of all SAN Attached devices (tapes/disks)

Thanks for your insights .. I am aware and I've been actually using all the tools in /opt/fcms. What worked for me are the bundled sources of SNIA. What I did was compiled the /opt/snia/demos. I compiled the sample SNIA application an dit indeed showed me the information that I wanted:

- Install aCC
- cd /opt/snia/demos
- make -f makefile.demo
r
and run the resulting executable "snia_demo"
Hakuna Matata.