VMware Cloud Community
DooMRunneR
Contributor
Contributor

Automatic listing and identifying of vmdks on different storages

Hi,

i have a larger problem with the identificaton of different vmdk files that are scattered on a bunch of storagedevices.

Sometimes its not possible to create a new vmdk for a second or third harddrive in the same directory than the installationfolder of the basesystem, so we have nearly 50 additional vmdk files which are spread on 6 different SANs.

to the point:

is it possible to build something like an index which vmdk from which vm is stored on which SAN just by using some shellscripts?

thanx

0 Kudos
1 Reply
shamim-a
Enthusiast
Enthusiast

Hi DooMRunneR

It is possible with VMWare VI Toolkit

Download VMWare VI Toolkit for Windows from http://www.vmware.com/download/sdk/

Install it on a Windows XP or any Windows OS.

Open VMware VI Toolkit (for Windows) and run the following commands

get-viserver <name/IP of ESX Host> - this command connect VI toolkit to ur host, enter root user ID and password when it prompts.

get-vm | get-harddisk - this command will answer your question

If u need t output to a file u can use

get-vm | get-harddisk > c:\details.txt

Regards

Shamim

0 Kudos