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
- 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 cod ...vSphere Other Language
- 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
- PowerCLI Port of RVC commands vsan.health.cluster_proxy_configure and vsan.health.cluster_proxy_statusThis script contains 2 Functions that can get or set the vSAN Proxy Configuration. These align with the following RVC commands: vsan.health.cluster_proxy_configure vsan.health.cluster_proxy_statusVMware 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
- List vSAN Components Per Host By VMThis is a simple script that will return the number of associated vSAN Components per host, sorted by VM This requires PowerCLI 11.2 or higher and vSAN 6.2 or higher. The syntax is: VsanComponentsPerH ...vSAN VMware PowerCLI PowerShell
- DockerVolumeMover - A script to move the docker files to a different location on the hostDescription: The purpose of this script is to move the docker files from the operating system disk to another location and avoid using up the storage space of the OS. This script is especially codded ...vSAN Shell Script
- 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
- PowerCLI Port of RVC command vsan.disks_infoThis PowerCLI script will return a list of local disks on a vSAN host as the vsan.disks_info RVC command does. Disk information includes the name, model, revision, whether an SSD or not, use by vSAN ...VMware PowerCLI PowerShell