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 271 Results Sample vSphere
  • Get Supported VMX Versions

    Contributor Alan Renouf

    PowerCLI C:\> $cluster = Get-Cluster CLU1 (Get-View $cluster.ExtensionData.EnvironmentBrowser).QueryConfigOptionDescriptor()     Key                 : vmx-03 Description         : ESX 2.x virtual mach ...
    VMware PowerCLI PowerShell
    Download

    302 Downloads

    0 Comments

    Updated 5 years ago

  • Solution 2- Report on VMs with multi-writer flag enabled

    Contributor VIKAS SHITOLE

    What this script does: This script first downloads all the VMX files (per host/cluster/datacenter/VC)at specified file location and scans each VMX file for "multi-writer" flag and finally prepare a re ...
    VMware PowerCLI vSphere Management SDK PowerShell
    Download

    707 Downloads

    0 Comments

    Updated 5 years ago

  • vRealize Orchestrator Workflow - Set CBT Status

    Contributor Markus Kraus

    vRealize Orchestrator Workflow to enable or disable CBT on vSphere VMs.
    vRealize Orchestrator Plug-in SDK vRO Workflow
    Download

    722 Downloads

    0 Comments

    Updated 5 years ago

  • vSphere HA Cluster Reconfiguration utility

    Contributor Gururaja Hegdal

    vSphere HA Cluster (& ESXi hosts) Reconfiguration utility 1. Details Utility to add vSphere HA Cluster Advanced option and reconfigure HA on all clustered hosts - for changes to take effect. And resto ...
    vSphere Management SDK Java
    Download

    580 Downloads

    0 Comments

    Updated 4 years ago

  • vSphere Fault Tolerance Feature API operations utility

    Contributor Gururaja Hegdal

    vSphere Fault Tolerance Feature API operations utility 1. Details Utility to illustrate vSphere Fault Tolerance operations on provided Cluster and VM. Illustrates how to Enable, Poweron FT VM Disable ...
    vSphere Management SDK Java
    Download

    628 Downloads

    0 Comments

    Updated 5 years ago

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

    Contributor Alan Renouf

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

    629 Downloads

    0 Comments

    Updated 5 years ago

  • The All-in-One Virtual SAN Deployment Script

    Contributor Alan Renouf

    Virtual SAN Deployment Script - The All-in-One Virtual SAN Deployment Script
    VMware PowerCLI PowerShell
    Download

    531 Downloads

    0 Comments

    Updated 5 years ago

  • Add NFS Datastore in ESXi

    Contributor Kiran Kumar P

    ... //:: # Description: Creating/Mounting NFS datastore in ESXi(no connection to vCenter server) using vSphere API.  //::# How to run this sample: http://vthinkbeyondvm.com/getting-started-with-yavi-j ...
    vSphere Management SDK Java
    Download

    790 Downloads

    0 Comments

    Updated 5 years ago

  • ESXi health

    Contributor JJ Asghar

    ESXi health This is a collection of ESXi health checkers for Nagios/Sensu. There are two number exposed by rbvmomi and these check against them. This can be used to look directly at a ESXi host and al ...
    Other Platform Ruby
    Download

    270 Downloads

    0 Comments

    Updated 5 years ago

  • vCenter VM Hardware Adapter SCSI

    Contributor VMware Inc

    vCenter VM Hardware Adapter SCSI Demonstrates how to configure virtual SCSI adapters of a virtual machine. Sample Prerequisites: The sample needs an existing VM. This sample is a part of the VMware ...
    vSphere Automation SDK for Python Python
    Download

    836 Downloads

    0 Comments

    Updated 3 years ago