Link to home
Start Free TrialLog in
Avatar of hongedit
hongeditFlag for United Kingdom of Great Britain and Northern Ireland

asked on

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?
ASKER CERTIFIED SOLUTION
Avatar of Andrew Hancock (VMware vExpert PRO / EE Fellow/British Beekeeper)
Andrew Hancock (VMware vExpert PRO / EE Fellow/British Beekeeper)
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Also the same with make and model of hard drive.
Avatar of hongedit

ASKER

Its a HP Server but a non-HP disk, RAIDED using a P400i.

Ah well.
See screenshot

 User generated image
that is the model of the disk, attached to the SATA storage controller
Mine just says this User generated image
- 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

UnSpawn

Where do I run those???
Sorry, disregard the above.
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.
No probs :)