Sample Exchange

 View Only

vSAN 6.2 Capacity - Total and Free from vCenter 

Apr 06, 2016 07:07 PM

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


#Apache2.0
#Python
#Pyvmomi
#vSANManagementSDKforPython
#vSAN
#Capacity

Statistics
0 Favorited
1 Views
1 Files
0 Shares
0 Downloads
Attachment(s)
py file
Virtual-SAN-6-2-Capacity---Total-and-Free-from-vCenter.py   4 KB   1 version
Uploaded - Apr 09, 2024

Tags and Keywords

Comments

Jul 25, 2016 08:56 PM

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.

Jul 21, 2016 09:21 PM

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?

Related Entries and Links

No Related Resource entered.