One of the greatest things VMware ever did in vSphere was add the Storage Views tab. Storage views let’s you see detailed information on the size of your VMs, how much space each VM takes up in snaps, etc. One question I very often get asked is: “How do I export that information from Storage Views to excel or CSV? The answer is simple, but it’s probably not where you have been looking.
Let’s go thru an example. First things first, before you export, make sure you have all the information you need. In the vSphere client, pick your level to look at the Storage View (the vCenter Server, the datacenter, a cluster, a host, etc) and select the Storage Views tab on the right. Right-click the title bar in the right pane and make sure you have all of the fields you need. The menu will look something like this one here:

Make sure you select all of the columns of data that you want (or don’t want). Once you have that cleaned up, we go for the export. Your instinct would be to go to File and Export like this:

Notice how the Export List option is greyed out? That’s where you would expect to find the export function for the Storage Views. I think there is a bug in the interface as that is not really where it is located in this case. For Storage Views, move the cursor to some white space on the right or the bottom of the right pane and right-click. You should see a popup menu that looks like something like this:

Select “Export List” from the menu and you can save the storage view as Excel, HTML, CSV, etc. There, now you have some great data for graphs or whatever you like.
One more tip: If you export the fields to Excel, the cells will all be text and the data values will have “GB” in the cells with them. If you want to remove the “GB” and convert to numeric so you can work with the values here’s how:
Let’s say Cell C3 has a value of “7.77 GB”. Create a new column and for the value put in =VALUE(LEFT(C3,LEN(C3)-3))
The LEFT() function will cutoff the “GB” and the VALUE() function will convert the TEXT to a numeric value that you can add, subtract, etc.
Now you can add a cell at the bottom and use the AVERAGE() function and find out what your average VM size really is! Or SUM() the Snapshot column and find out how much space your VM snaps are taking up on storage. There are all kinds of options, have fun and enjoy!

Recent Comments