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 - 10 of 50 Results Sample vSAN
  • vSAN Storage Policy Example Creation

    Contributor jaredlutgen

    ... spbm-policy V1.0 Purpose: This script was built to help demonstrate the power of Storage policy based management. The script creates the following policies: vSAN No Protect - FTT-0 vSAN Basic Pro ...
    VMware PowerCLI PowerShell
    Download

    113 Downloads

    0 Comments

    Updated 1 year ago

  • vSAN 6.6 Encryption Rekey

    Contributor Jasemccarty

    This script will initiate a Rekey of a vSAN Cluster. Shallow Rekeying (KEK Only) or Deep Rekeying (DEK Also) are supported, as well as Reduced Redundancy if necessary. This requires PowerCLI 6.5.1 a ...
    VMware PowerCLI PowerShell
    Download

    171 Downloads

    0 Comments

    Updated 1 year ago

  • Sample vSAN Encryption Report

    Contributor Jasemccarty

    This script shows a basic enumeration of vSAN Encryption reporting using the Get-VsanView cmdlet.   It shows overall health as well as some detailed reporting.   Requires PowerCLI 6.5.1 (or higher) an ...
    VMware PowerCLI PowerShell
    Download

    267 Downloads

    3 Comments

    Updated 1 month ago

  • vSAN Cluster Maintenance

    Contributor tifosi1988

    In a cluster without DRS enabled, user should manually migrate the virtual machines off a host to let the host enter Maintenance Mode. This sample script can automate this process and let the hosts en ...
    VMware PowerCLI PowerShell
    Download

    152 Downloads

    0 Comments

    Updated 1 year 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

    194 Downloads

    0 Comments

    Updated 1 year ago

  • vSAN Config Maximum Check

    Contributor lamw

    VSAN Configuration Maximum Query Script | virtuallyGhettohttp://www.virtuallyghetto.com/2014/03/vsan-configuration-maximum-query-script.html vGhetto Script Repository This repository contains a col ...
    vSphere Perl SDK Perl
    Download

    161 Downloads

    0 Comments

    Updated 2 years ago

  • vSAN Cluster Management

    Contributor lamw

    Exploring VSAN APIs Part 1 - Enable VSAN Cluster | virtuallyGhettohttp://www.virtuallyghetto.com/2014/03/exploring-vsan-apis-part-1-enable-vsan-cluster.html vGhetto Script Repository This repositor ...
    vSphere Perl SDK Perl
    Download

    147 Downloads

    0 Comments

    Updated 2 years ago

  • vSAN Host Disk Mapping

    Contributor lamw

    Exploring VSAN APIs Part 4 - VSAN Disk Mappings | virtuallyGhettohttp://www.virtuallyghetto.com/2014/03/exploring-vsan-apis-part-4-vsan-disk-mappings.html vGhetto Script Repository This repository ...
    vSphere Perl SDK Perl
    Download

    178 Downloads

    0 Comments

    Updated 2 years ago

  • vSAN Host Maintenance Mode

    Contributor lamw

    Exploring VSAN APIs Part 8 - Maintenance Mode | virtuallyGhettohttp://www.virtuallyghetto.com/2014/04/exploring-vsan-apis-part-8-maintenance-mode.html vGhetto Script Repository This repository cont ...
    vSphere Perl SDK Perl
    Download

    146 Downloads

    0 Comments

    Updated 2 years ago

  • vSAN Disk Health

    Contributor lamw

    Exploring VSAN APIs Part 10 - VSAN Disk Health | virtuallyGhettohttp://www.virtuallyghetto.com/2014/06/exploring-vsan-apis-part-10-vsan-disk-health.html vGhetto Script Repository This repository co ...
    vSphere Perl SDK Perl
    Download

    145 Downloads

    0 Comments

    Updated 2 years ago