list disk serial number in AIX

is there way to display disk serial number using lspv in AIX 7.1 ?
aixstarAsked:
Who is Participating?
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.

serialbandCommented:
Try one of these.
udevadm info --query=all --name=/dev/sda | grep ID_SERIAL
hdparm -I /dev/sd? | grep 'Serial\ Number'
lshw -class disk
smartctl -i /dev/sda

(from https://unix.stackexchange.com/questions/121757/harddisk-serial-number-from-terminal#121763 )
0
dfkeCommented:
Hi,

Those commands won't work in AIX.

In short the answer to your question is no as 'lspv' just lists the available Physical Volumes HDISK0, HDISK1 etc..

Physical Volumes constist of 1 or more harddisks referred to as Physical Disks which are labeled as PDISK0, PDISK1 etc..

For example to see the full hardware details of harddisk pdisk0 issue the following command at the root prompt:

# lscfg -vl pdisk0

Open in new window


Please note that when you need to replace or add disks to a Physical Volume you will need the FRU (Field Replaceable Unit) number instead of the serial number to make sure you will get the right disks. The FRU is also listed with the 'lscfg' command.

Cheers
0

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
dfkeCommented:
Hi,

this is the correct way  of displaying hardware details.

Cheers
0
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
AIX

From novice to tech pro — start learning today.