Hello,
I work for a service provider, and we have an internally developed reporting system that retrieves VM information from our vCenter SQL databases for billing purposes. The problem is that, for storage numbers, the report pulls the "Provisioned Storage" number as the total amount of allocated storage for each VM, which in turn is billed to the customer. The is an issue because, if there happens to be a snapshot present on the VM at the time the report is run (we use CommVault for backups, which takes snapshots throughout the environment,) the number gets artificially inflated. It's also a problem for our new MCS/linked-clone environment, because this number reports the total size of the base disk + the linked-clone disk, which makes it look like it is twice it's "actual" size.
What I want to do is put together a PowerCLI script that I can run against our vCenter that will output a report with the following info:
Name, Folder, vCPUs, Mem, DiskSize (this being the total allocated size of the vDisks + the vswp, NOT the "Provisioned Storage" number.)
I've looked around and haven't found anything that does this. Anyone have anything they can point me to? I'm going to try and figure it out on my own, but figured I ask here in case someone already has something like this.
Thanks!!