VMware Sample Exchange
Browse and download code samples from VMware as well as code samples contributed by the VMware community. Log in to Sample Exchange using your MyVMware credentials to submit requests for new samples, contribute your own samples, as well as propose a sample as a solution for open requests.
Disclaimer: All sample content and code in Sample Exchange is licensed to you by the sample's author. VMware does not guarantee the samples; they are provided "AS IS". Use of this site is subject to the VMware Community Terms of Use.
Browse the list below for code samples from VMware and the community. You can filter the list of samples by selecting a platform or language, or enter other search keywords above.
Filters
Type
SDK / Platform / Tool
Contributor
Language
- Home Lab DeploymentScript to automate the build of a home lab to vSphere 6.5, this script starts from ESX and configures VSAN, deploys vCenter and configures it and adds William Lams Content LibraryVMware PowerCLI PowerShell
- Home Lab Delete SettingsUsed to delete the home lab as configured by the Home Lab Script here: https://developercenter.vmware.com/samples/1463/home-lab-deployment?h=SampleVMware PowerCLI PowerShell
- The All-in-One Virtual SAN Deployment ScriptVirtual SAN Deployment Script - The All-in-One Virtual SAN Deployment ScriptVMware PowerCLI PowerShell
- Check vSAN HCLAutomate the checking of host HBAs against the VSAN HCL Requires PowerCLI 6.0 R2 or newerVMware PowerCLI PowerShell
- vSAN 6.2 Capacity - Total and Free from vCenterThis 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 'v ...Pyvmomi vSAN Management SDK for Python Python
- Deploy vSAN 6.2 using the vSAN Management SDK for PythonThis file includes sample code to configure a vSAN cluster. Before running this script, please make sure you have a vCenter Server, Cluster, and a proper vSAN license. The code has been tested with th ...vSAN Management SDK for Python Python
- Configure Stretched Clustering using the vSAN Management SDK for PythonThis file includes sample code to configure a vSAN cluster as a Stretched Cluster or 2 Node configuration. The code has been tested with the following cases Testbed: One cluster with four hosts. Each ...vSAN Management SDK for Python Python
- vSAN 6.2 On-Disk Upgrade using the vSAN Management SDK for PythonThis file includes sample code to upgrade the On-Disk Format from V2 to V3 for vSAN 6.2. The code has been tested with the following configuration Testbed: One cluster with four hosts. Each host has o ...Pyvmomi vSAN Management SDK for Python Python