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

  • App Modernization

  • Cloud Management

  • Compute Virtualization

  • Desktop & App Virtualization

  • Developer Tools

  • Digital Workspace

  • Hybrid Cloud & Data Center Infrastructure

  • Hyperconverged Infrastructure

  • Multi-Cloud Operations

  • Private & Hybrid Cloud

  • Storage & Availability

  • Virtual Cloud Networking

  • Other Platform

Contributor

Language

1 - 10 of 70 Results Sample vSAN
  • Hcibench Api Call Samples implemented in Java

    Contributor Sarah Qiu

    This HcibenchApiCallSample_Java.7z provides Hcibench Api Call Samples implemented in Java. It contains three Java files: 1 Constants.java which stores list of Hcibench REST API constants used by other ...
    vSAN vSphere Java
    Download

    88 Downloads

    0 Comments

    Updated 2 years ago

  • terraform-vsphere-multi-writer

    Contributor Charles Lee

    Sample code showing how to deploy VM on vSAN with shared disks using the multi-writer flag.  terraform-vsphere-multi-writer Sample code to deploy VM with shared disk on vSAN using Terraform. This code ...
    vSphere Other Language
    Download

    153 Downloads

    0 Comments

    Updated 1 year ago

  • print vSAN disk device configuration.

    Contributor go watanabe

    A script that prints a list of devices that make up a vSAN Diskgroup. Refer to the UUID to identify the device. For readability, X_No is automatically numbered and assigned to diskgroups and disks.
    VMware PowerCLI PowerShell
    Download

    185 Downloads

    0 Comments

    Updated 2 years ago

  • Print vSAN objects and components with ESXi Host.

    Contributor go watanabe

    Running this script with a VM name, It will display vSAN objects, components, and the data stored ESXi host.
    VMware PowerCLI PowerShell
    Download

    173 Downloads

    0 Comments

    Updated 2 years ago

  • Microsoft SQL Server AG with Pacemaker

    Contributor Charles Lee

    Microsoft SQL Server AG with Pacemaker This project deploys a Microsoft SQL Server on Linux cluster, using Always On Availability Group, with Pacemaker, Corosync and the STONITH fencing component (vmw ...
    vSphere Shell Script
    Download

    79 Downloads

    0 Comments

    Updated 3 months ago

  • esxi_certtool

    Contributor Charles Lee

    Simple tool faciliate the replacement of ESXi SSL certificates. Can either operate on a cluster in a VCF instance or an individual host.
    vSphere Python
    Download

    436 Downloads

    0 Comments

    Updated 3 years ago

  • VMs not on VSAN Datastores Dashboard for vRealize Operations 7.5 and 8.0

    Contributor Brandon Gordon

    ... - VMs not on VSAN Datastores Dashboard for vRealize Operations 7.5 and 8.0 This dashboard can be used to identify VMs located on non-VSAN datastores. Use the Migrate VM action in the action menu ...
    vRealize Operations Manager vRealize Ops Dashboard
    Download

    313 Downloads

    0 Comments

    Updated 3 years ago

  • Run vSAN Performance Diagnostics

    Contributor Amitabha Banerjee

    You can use vSAN performance diagnostics to improve the performance of your vSAN cluster, and resolve performance issues. The vSAN performance diagnostics tool analyzes previously run benchmarks gathe ...
    Virtual SAN Management SDK for Python Python
    Download

    317 Downloads

    0 Comments

    Updated 3 years ago

  • PowerCLI Port of RVC commands vsan.apply_license_to_cluster

    Contributor Jase McCarty

    This script can be used to: Add a license to vCenter if it hasn't already been added Assign that license to a specified cluster  The script includes a function which can be invoked using the followi ...
    VMware PowerCLI PowerShell
    Download

    514 Downloads

    0 Comments

    Updated 3 years ago

  • PowerCLI Port of RVC command vsan.cluster_info

    Contributor Jase McCarty

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

    436 Downloads

    0 Comments

    Updated 3 years ago