vSAN 6.2 Capacity - Total and Free from vCenter

This script is a modification of the vsanapisamples.py script that is included with the vSAN Management SDK for python. The syntax for the script is: 
python  vsanapicapacity.py -s vCenterServer -u 'vsphere username' -p 'password' --cluster ClusterName

*Humanize is required to properly format the capacity reporting: https://pypi.python.org/pypi/humanize


Sign in to be able to add comments.

Comments 2


Pinball 1 year ago
Jase thank you for this great little script. The values used in the web client for the VSAN Health Check showing the capacity after 1 node failure, can this also be retrieved via the same api?
Jasemccarty 1 year ago
Pinball: I'm just getting started with coding against Virtual SAN. I'm sure there we can pull that information. Let me see what I can come up with.