Operating System - HP-UX
1819931 Members
3038 Online
109607 Solutions
New Discussion юеВ

How to get disk serial number

 
Ming Zhao
Advisor

How to get disk serial number

Hi,

Is someone can tell me which command I can use to get disk/LUN serial number or identifier?

Thanks in advance

Ming
10 REPLIES 10
Paul Sperry
Honored Contributor

Re: How to get disk serial number

try
ioscan -fn -C disk
Robert-Jan Goossens
Honored Contributor

Re: How to get disk serial number

Hi Ming

# diskinfo -v /dev/rdsk/c?t?d?

Kind regards,

Robert-Jan.
Mladen Despic
Honored Contributor

Re: How to get disk serial number

Try:

diskinfo -v /dev/rdsk/c#t#d#

(just replace #'s with the correct numbers)
Jean-Louis Phelix
Honored Contributor

Re: How to get disk serial number

Hi,
Have a look at this post to know how to get it either using mstm or programmatically.

I don't think ioscan or diskinfo would give you the information.

Regards.
It works for me (┬й Bill McNAMARA ...)
steven Burgess_2
Honored Contributor

Re: How to get disk serial number

Hi

Please find attached script that will give the device file , hardware path and diskinfo

HTH

Steve
take your time and think things through
Pete Randall
Outstanding Contributor

Re: How to get disk serial number

Jean-Louis Phelix
Honored Contributor

Re: How to get disk serial number

Once again with the missing post ...

Have a look at this post to know how to get it either using mstm or programmatically.

I don't think ioscan or diskinfo would give you the information.

Regards.

http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0xfc9e85079106d71190050090279cd0f9,00.html
It works for me (┬й Bill McNAMARA ...)
Byron Myers
Trusted Contributor

Re: How to get disk serial number

Ming, I posted a question a while back and receive a resonse that answers your question. Look at Terry Blevin's response in this thread: http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0xa2aae7613948d5118fef0090279cd0f9,00.html
If you can focus your eyes far and straight enough ahead of yourself, you can see the back of your head.
Ming Zhao
Advisor

Re: How to get disk serial number

Thanks everyone.

Actually I know the answer you posted before I post this question. The Problem is here:

1. cstm can't show the serial# of XP LUNs.
2. "diskinfo -v" or other program only can give you serial number of local attached disk. They can't give the serial number of XP LUNs(I'm not sure what will be happened on EMC), becuase all XP LUNs will show the same serial number, which is not I want.
3. You can't use LVM commands to help you on this question, becuase LVM commands don't work on scratch disk/LUNs.

Thanks,

Ming
Eugeny Brychkov
Honored Contributor

Re: How to get disk serial number

You need to dig into CommandView XP to see these serial numbers. In CommandView VA there's serial number (WWN) for each LUN, so I guess for XP is the same story.
Why do you need these serial numbers? I believe they are only used by XP management software. And you can not attach them to your contract because they are not reflecting real hardware
Eugeny