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
- 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
- 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
- VCF on VxRail Stretch Cluster\r\nFor script usage, please refer to the \'VMware Cloud Foundation on Dell EMC VxRail Admin Guide\'.<\/div>\r\n<\/div>\r\nVMware Cloud Foundation VxRail Python
- VCF on VxRail Stretch ClusterStretch cluster automation script to execute Stretching the cluster and Expansion of a stretched cluster workflows for VMware Cloud Foundation on Dell EMC VxRail SKU using Public API.For script usage, ...VMware Cloud Foundation VxRail Python
- 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
- 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
- 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
- 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
- PowerCLI vSAN Witness DeploymentThis script deploys a vSAN 6.0/6.5/6.7/& 6.7 P01 Witness Appliance. It will: Configure networking Add the vSAN Witness to vCenter Allows either Management (vmk0) or vmk1 to have vSAN Traffic tagged ( ...VMware PowerCLI PowerShell