Advanced Nutanix – PowerShell Edition: Produce vDisk Report


In this post I provide a sample script on how you can use the Nutanix Powershell CMDlets to produce a report for every VM and vDisk on the Nutanix platform.

The script will report the following for each VM/vDisk:

VM_Name, vDisk_Name, Container, Replication_Factor, Used_Capacity_in_GB, Container_Compression, Container_Fingerprinting, vDisk_Fingerprinting,vDisk_On_Disk_Dedup, Container_On_Disk_Dedup, PD_Name, CG_Name, Snapshots

Here’s how to use the script:

Here’s an example function to produce a vDisk report:

If you have any requests or questions feel free to reach out!

  • Steven G

    First off, I really enjoyed your Nutanix Bible content and videos. Amazing work. So I was attempting to use this script to report on VM storage usage for a VMware 5.5 environment running on a 3060. Most of the data points populated with the exception of Used_Capacity_In_GB. I’ve noticed that several of the Nutanix powershell cmdlets are returning a “Hypervisor vmware not supported” message. So two questions: What type of limitations should be expected in this particular script while running against a VMware environment? And more generally, will the Nutanix cmdlets eventually provide more support for the VMware stack or perhaps this is by design or a result of architecture limitation?

Legal Mumbo Jumbo

Copyright © Steven Poitras, The Nutanix Bible and, 2014. Unauthorized use and/or duplication of this material without express and written permission from this blog’s author and/or owner is strictly prohibited. Excerpts and links may be used, provided that full and clear credit is given to Steven Poitras and with appropriate and specific direction to the original content.