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

SDK / Platform / Tool

  • Automation Tools

  • Cloud Management Platform

  • Cloud Native Applications

  • Data Center & Cloud Infrastructure

  • Desktop & Application Virtualization

  • Developer Tools

  • Enterprise Mobility Management

  • Hybrid Cloud & Data Center Infrastructure

  • Networking & Security

  • Storage & Availability

  • Other Platform

Contributor

Language

1 - 6 of 6 Results Sample Stretched Cluster
  • 2 Node Forced Warm Cache for Hybrid vSAN

    Contributor Jasemccarty

    This 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
    Download

    148 Downloads

    0 Comments

    Updated 7 months ago

  • Configure Stretched Clustering using the vSAN Management SDK for Python

    Contributor storagecode

    This 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
    Download

    1696 Downloads

    0 Comments

    Updated 1 year ago

  • PowerCLI vSAN Witness Deployment

    Contributor Jasemccarty

    This script deploys a vSAN 6.5 Witness Appliance, configures networking, adds it to vCenter, sets static routes, and makes the Witness Host available for use in a vSAN Stretched or 2 Node Cluster Synt ...
    VMware PowerCLI PowerShell
    Download

    291 Downloads

    0 Comments

    Updated 2 years ago

  • PowerCLI vSAN Witness Replacement

    Contributor Jasemccarty

    This script removes a vSAN Witness Host for 2 Node and Stretched Cluster vSAN & replaces it. If the vSAN Witness Host is available, this script removes the vSAN disk group on the vSAN Witness Host (so ...
    VMware PowerCLI PowerShell
    Download

    238 Downloads

    0 Comments

    Updated 4 months ago

  • vSAN 6.x Stretched Cluster and 2 Node PowerCLI Module

    Contributor Jasemccarty

    Module 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
    Download

    208 Downloads

    2 Comments

    Updated 2 months ago

  • Setup vSAN Stretched Cluster DRS Rules

    Contributor Jasemccarty

    This 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
    Download

    227 Downloads

    0 Comments

    Updated 1 year ago