hongedit
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?
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
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Also the same with make and model of hard drive.
ASKER
Its a HP Server but a non-HP disk, RAIDED using a P400i.
Ah well.
Ah well.
- hdparm:
- HAL:
- plain listing /dev/disk/by-id:
- listing /sys/block:
for DISK in `eval echo /dev/[h,s]d?`; do hdparm -i $DISK; done
- 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
- plain listing /dev/disk/by-id:
ls /dev/disk/by-id/|grep -v part
- 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)
ASKER
UnSpawn
Where do I run those???
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.
ASKER
No probs :)