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
- VCF on VxRail Stretch ClusterFor script usage, please refer to the 'VMware Cloud Foundation on Dell EMC VxRail Admin Guide'.VMware Cloud Foundation VxRail Python
- 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.health.cluster_repair_immediatelyThis script will invoke the process to repair any vSAN Objects that need to be repaired. This is typically used when the 60 minute (default) Repair Timer has not expired, but an administrator would li ...VMware PowerCLI PowerShell
- PowerCLI Port of RVC command vsan.stretchedcluster.witness_infoThis script includes a function that reports the vSAN Witness information for a 2 Node or Stretched vSAN Cluster. Information included is: Cluster Name Witness Host Name Witness Uuid Witness IP Addre ...VMware PowerCLI PowerShell
- VCF on VxRail Stretch ClusterFor script usage, please refer to the 'VMware Cloud Foundation on Dell EMC VxRail Admin Guide'.VxRail VMware Cloud Foundation Python
- VCF on VxRail Stretch ClusterFor script usage, please refer to the 'VMware Cloud Foundation on Dell EMC VxRail Admin Guide'.VMware Cloud Foundation VxRail Python
- Enable Stretched Cluster AZ LocalityConfigure a VMConAWS Stretched Cluster for reduced availability by creating the necessary tags, compute, and storage policies to pin a workload in one AZ or the other. See Managing AZ Locality withi ...VMware Cloud on AWS PowerShell
- Setup vSAN Stretched Cluster DRS RulesThis script can be run against a vSAN Stretched Cluster to create Host Groups and VM Groups. The script requires PowerCLI 6.5.1, released 4/20/2017 and has been tested against vSAN 6.6. Using PowerCLI ...VMware PowerCLI PowerShell
- vSAN 6.x Stretched Cluster and 2 Node PowerCLI ModuleModule for vSAN Stretched Cluster & 2 Node I took some of my existing scripts and combined them into a module Setup requires the psd1/psm1 files to be put in a VSANSC2N directory under Powershell Modu ...VMware PowerCLI PowerShell
- 2 Node Forced Warm Cache for Hybrid vSANThis script forces reads to occur across both hosts in a 2 Node vSAN configuration. More information on the how and why, can be found here: https://blogs.vmware.com/virtualblocks/2016/04/18/2node-read ...VMware PowerCLI PowerShell