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
- Hcibench Api Call Samples implemented in JavaThis HcibenchApiCallSample_Java.7z provides Hcibench Api Call Samples implemented in Java. It contains three Java files: 1 Constants.java which stores list of Hcibench REST API constants used by other ...vSAN vSphere Java
- terraform-vsphere-multi-writerSample code showing how to deploy VM on vSAN with shared disks using the multi-writer flag. terraform-vsphere-multi-writer Sample code to deploy VM with shared disk on vSAN using Terraform. This code ...vSphere Other Language
- print vSAN disk device configuration.A script that prints a list of devices that make up a vSAN Diskgroup. Refer to the UUID to identify the device. For readability, X_No is automatically numbered and assigned to diskgroups and disks.VMware PowerCLI PowerShell
- Print vSAN objects and components with ESXi Host.Running this script with a VM name, It will display vSAN objects, components, and the data stored ESXi host.VMware PowerCLI PowerShell
- Microsoft SQL Server AG with PacemakerMicrosoft SQL Server AG with Pacemaker This project deploys a Microsoft SQL Server on Linux cluster, using Always On Availability Group, with Pacemaker, Corosync and the STONITH fencing component (vmw ...vSphere Shell Script
- esxi_certtoolSimple tool faciliate the replacement of ESXi SSL certificates. Can either operate on a cluster in a VCF instance or an individual host.vSphere Python
- VMs not on VSAN Datastores Dashboard for vRealize Operations 7.5 and 8.0... - VMs not on VSAN Datastores Dashboard for vRealize Operations 7.5 and 8.0 This dashboard can be used to identify VMs located on non-VSAN datastores. Use the Migrate VM action in the action menu ...vRealize Operations Manager vRealize Ops Dashboard
- Run vSAN Performance DiagnosticsYou can use vSAN performance diagnostics to improve the performance of your vSAN cluster, and resolve performance issues. The vSAN performance diagnostics tool analyzes previously run benchmarks gathe ...Virtual SAN Management SDK for Python Python
- PowerCLI Port of RVC commands vsan.apply_license_to_clusterThis script can be used to: Add a license to vCenter if it hasn't already been added Assign that license to a specified cluster The script includes a function which can be invoked using the followi ...VMware PowerCLI PowerShell
- PowerCLI Port of RVC command vsan.cluster_infoThis script includes a function that reports the vSAN Cluster information for a vSAN Cluster. Information included is: Host configurations vSAN Witness Host configuration (if Stretched Cluster or 2 N ...VMware PowerCLI PowerShell