Need to know wwid for luns

We have lotz of Luns allocated and we need to chk all of their wwid's . can anybody help me with some commands/scripts to find the wwids of all luns present on our system?
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Jan SpringerCommented:
Are you using multipathd?

multipath -l
apunkabollywoodAuthor Commented:
hi jesper,

yes we are using ...multipath .... is it safe to run this command ..

Jan SpringerCommented:
Yes.  The "-l" (ell) is a request for list of paths and the data.  I use this to verify that all paths are present.
Protecting & Securing Your Critical Data

Considering 93 percent of companies file for bankruptcy within 12 months of a disaster that blocked access to their data for 10 days or more, planning for the worst is just smart business. Learn how Acronis Backup integrates security at every stage

apunkabollywoodAuthor Commented:
Hi jesper ,

but this command is only listing the id of block disks ( like /dev/sdbg ) ....

wat i need ....the wwid of the mounted LVM .....

for example ......

/usr   is mounted at /dev/mapper/ASD-xyz-abclv    .

are you able to wat am sayin....

plzz ahelp me ..!!!!

thanx jesper
Use INQ( This is free tool from EMC) to list LUN details or you can use HBA utility to list LUNs

1) Qlogic - SANSurfer/SANSurferCLI
2) Emulex - HBAAnywhere/LPUTIL

There is separate qlogic lun script for LINUX. Search on qlogic site.,.

Jan SpringerCommented:
Have you tried running 'lvdisplay'?  Is this what you mean?
apunkabollywoodAuthor Commented:

Actually i knows LVM's but i need to find their wwid,s ..for exaple... i know the lv name and i can run lvdisply ,so i have uuid and path but i want to know the wwid of that lvm.please help

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
apunkabollywoodAuthor Commented:
thanx buddy
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Linux Distributions

From novice to tech pro — start learning today.