VM storage information

In a data center migration project the storage teams as well as the target VMware team were constantly requesting information for the VMs in each migration group. Along with the basic VM info such as vCPUs, memory, provisioned space, guest OS, they required more details for the VMDKs – datastore, LUN ID of the datastore (since the migration is performed on storage level), SCSI controller and unit number where the disk is attached, etc.

At first sight, RVtools seems like a reasonable choice. It provides plenty of information and is easy to use. However there are a few caveats:

  • Manual work to sort out only the VMs needed
  • Does not show the SCSI controller number
  • Does not show the LUN IDs of all extents, composing single datastore

I wanted to minimize the time spent on generating the reports, so I decided to build custom PowerCLI script specific for my needs. Here is the result:

The script will export .csv on your Desktop with the following information: VM, vCPUs, Memory MB, HardDisk, Size GB, Path, Controller, Unit Number, Controller Type, Datastore, LunID, OS, Path to VMX.

Now the manual work is minimized only to put the VM names which I need.

Your ideas and comments are welcome!

The following two tabs change content below.

Ivaylo Ivanov

Ivaylo has 5 years of professional IT experience. Most of it in server administration area, network and virtualization technologies. From 2014 he specializes in VMware products family. He holds VCIX6-DCV and VCP7-CMA certifications. vExpert 2016/2017

Latest posts by Ivaylo Ivanov (see all)

About Ivaylo Ivanov

Ivaylo has 5 years of professional IT experience. Most of it in server administration area, network and virtualization technologies. From 2014 he specializes in VMware products family. He holds VCIX6-DCV and VCP7-CMA certifications. vExpert 2016/2017
Bookmark the permalink.

Comments are closed