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

  • Enterprise Mobility Management

  • Hybrid Cloud & Data Center Infrastructure

  • Networking & Security

  • Storage & Availability

  • Other Platform

Contributor

Language

1 - 10 of 52 Results Sample vSAN
  • Enable 16 Plus vSAN Node Support

    Contributor lamw

    Required ESXi advanced setting to support 16+ node VSAN Cluster | virtuallyGhettohttp://www.virtuallyghetto.com/2014/03/required-esxi-advanced-setting-to-support-16-node-vsan-cluster.html vGhetto S ...
    vSphere Perl SDK Perl
    Download

    1165 Downloads

    0 Comments

    Updated 2 years ago

  • vSAN Disk Stats Queries

    Contributor lamw

    Exploring VSAN APIs Part 9 - VSAN Component count | virtuallyGhettohttp://www.virtuallyghetto.com/2014/04/exploring-vsan-apis-part-9-vsan-component-count.html vGhetto Script Repository This reposit ...
    vSphere Perl SDK Perl
    Download

    183 Downloads

    0 Comments

    Updated 2 years ago

  • Find vSAN Storage Ctrl Queue Depth

    Contributor lamw

    This script extracts the queue depth of a VSAN Storage Controller if found in the VSAN HCL (offline list) vGhetto Script Repository This repository contains a collection of sample scripts across va ...
    vSphere Management SDK Python
    Download

    1241 Downloads

    0 Comments

    Updated 2 years ago

  • Set the VSAN Disk Autoclaim Mode for VSAN Hosts.

    Contributor gbanger35

    There occasions this needs to be done on a per host basis using ESXCLI. For this purpose I wrote a small script.
    VMware PowerCLI PowerShell
    Download

    140 Downloads

    0 Comments

    Updated 2 years ago

  • VMware Virtual SAN -- All Flash Automated Deployment for Stretched Cluster

    Contributor alanrenouf

    vSAN All Flash Automated Deployment For Stretched ClusterVMware Virtual SAN -- All Flash Automated Deployment for Stretched Cluster
    VMware PowerCLI PowerShell
    Download

    269 Downloads

    0 Comments

    Updated 2 years ago

  • Set the VSAN.DefaultHostDecommissionMode on all hosts in a cluster

    Contributor gbanger35

    This script allows a user to set the VSAN.DefaultHostDecommissionMode on all hosts in a cluster. On ocassions there may be a need to change the setting to something other than the default. Whilst this ...
    VMware PowerCLI PowerShell
    Download

    146 Downloads

    0 Comments

    Updated 2 years ago

  • Home Lab Deployment

    Contributor alanrenouf

    Script to automate the build of a home lab to vSphere 6.5, this script starts from ESX and configures VSAN, deploys vCenter and configures it and adds William Lams Content Library
    VMware PowerCLI PowerShell
    Download

    1164 Downloads

    1 Favorite

    0 Comments

    Updated 2 years ago

  • Home Lab Delete Settings

    Contributor alanrenouf

    Used to delete the home lab as configured by the Home Lab Script here: https://developercenter.vmware.com/samples/1463/home-lab-deployment?h=Sample
    VMware PowerCLI PowerShell
    Download

    254 Downloads

    0 Comments

    Updated 2 years ago

  • VSAN DIsk Decommission Script

    Contributor chenwei621

    After disable vsan in vsphere, executing this script within each ESXi host can decommission all disk groups.
    vSphere CLI Shell Script
    Download

    1235 Downloads

    0 Comments

    Updated 3 years 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

    226 Downloads

    2 Comments

    Updated 3 months ago