Display Hard Drive Model # within VMWare

Hi

Quick one - I need to display the hard drive make/model number on my VMWare host, but I dont want to have to turn it off.

Had a look around the client but can't see this information anywhere.

Possible?
LVL 1
hongeditAsked:
Who is Participating?

Improve company productivity with a Business Account.Sign Up

x
 
Andrew Hancock (VMware vExpert / EE MVE^2)Connect With a Mentor VMware and Virtualization ConsultantCommented:
If the hard disk is presented independantly to a storage controller within ESXi/ESX server the serial number may be available when looking at the Storage Controllers.

If you have a RAID card, and have RAIDED the disk, then the serial number will not be available.

If this is a HP or Dell server, you may be able to check hardware status for that information, otherwise, you'll have to shutdown the server.
0
 
Andrew Hancock (VMware vExpert / EE MVE^2)VMware and Virtualization ConsultantCommented:
Also the same with make and model of hard drive.
0
 
hongeditAuthor Commented:
Its a HP Server but a non-HP disk, RAIDED using a P400i.

Ah well.
0
Upgrade your Question Security!

Your question, your audience. Choose who sees your identity—and your question—with question security.

 
Andrew Hancock (VMware vExpert / EE MVE^2)VMware and Virtualization ConsultantCommented:
See screenshot

 storage controller
that is the model of the disk, attached to the SATA storage controller
0
 
hongeditAuthor Commented:
Mine just says this vm
0
 
unSpawnCommented:
- hdparm:
for DISK in `eval echo /dev/[h,s]d?`; do hdparm -i $DISK; done

Open in new window


- HAL:
hal-device | awk '/block.storage_device/ {print $3}' |sort -u|while read UDI; do
 for KEY in info.product storage.firmware_version storage.serial storage.vendor storage.model; do
 echo "${KEY}: $(hal-get-property --udi ${UDI//\'/} --key $KEY)"; done; echo; done

Open in new window


- plain listing /dev/disk/by-id:
ls /dev/disk/by-id/|grep -v part

Open in new window


- listing /sys/block:
for DEVICE in `eval echo /sys/block/[h,s]d?/`; do
 INFOS=($(cat ${DEVICE}/device/{vendor,model} 2>/dev/null)); INFOS="${INFOS[*]}"
 echo "${DEVICE} ${INFOS:=(none)}"; done #  (doesn't work always)

Open in new window

0
 
hongeditAuthor Commented:
UnSpawn

Where do I run those???
0
 
unSpawnCommented:
Sorry, disregard the above.
0
 
unSpawnCommented:
hongedit: I didn't read the "within VMWare" part of your question. My apologies. The commands I posted can only be run in the host itself and will only work for (E)IDE and SATA drives, not other attached storage.
0
 
hongeditAuthor Commented:
No probs :)
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.