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 14 Results Sample vThinkBeyondVM.com
  • vMotion a VM from a vCenter to another vCenter with different SSO domain

    Contributor VIKAS SHITOLE

    ... //:: # Author: Vikas Shitole //:: # Website: www.vThinkBeyondVM.com //:: # Product/Feature: vCenter Server/DRS/vMotion //:: # Description: Extended Cross VC vMotion using RelocateVM_Task() API. vM ...
    vSphere Management SDK Java
    Download

    744 Downloads

    1 Comment

    Updated 6 years ago

  • Create NFS Datastore using vSphere API

    Contributor VIKAS SHITOLE

    ... //:: # Author: Vikas Shitole //:: # Website: www.vThinkBeyondVM.com //:: # Product/Feature: vCenter Server/NFS //:: # Description: Creating/Mounting NFS datastore using vSphere API.  //::# How to ...
    vSphere Management SDK Java
    Download

    817 Downloads

    0 Comments

    Updated 6 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

    792 Downloads

    0 Comments

    Updated 6 years ago

  • Get vFlash Read Cache Run Time Info For VMDKs of the VM

    Contributor VIKAS SHITOLE

    ... //:: # Author: Vikas Shitole //:: # Website: www.vThinkBeyondVM.com //:: # Product/Feature: vCenter Server/ESXi/Storage/vFlash //:: # Description: Script to get vFlash Cache read read info for eac ...
    vSphere Management SDK Java
    Download

    666 Downloads

    1 Comment

    Updated 6 years ago

  • Get vFlash Resource Info On Host

    Contributor VIKAS SHITOLE

    ... //:: # Author: Vikas Shitole //:: # Website: www.vThinkBeyondVM.com //:: # Product/Feature: vCenter Server/ESXi/Storage/vFlash/VFFS //:: # Description: Script to get vFlash Volume capacity, usage. ...
    vSphere Management SDK Java
    Download

    599 Downloads

    1 Comment

    Updated 6 years ago

  • Create DRS VMHOST Rules

    Contributor VIKAS SHITOLE

    ... //:: # Author: Vikas Shitole //:: # Website: www.vThinkBeyondVM.com //:: # Product/Feature: vCenter Server/DRS //:: # Reference: http://vthinkbeyondvm.com/drs-rules-part-i-how-to-create-vm-host-dr ...
    vSphere Management SDK Java
    Download

    1058 Downloads

    0 Comments

    Updated 6 years ago

  • Tutorial on how to access and navigate all the vSphere objects

    Contributor VIKAS SHITOLE

    ... //:: # Author: Vikas Shitole//:: # Author: Vikas Shitole //:: # Website: www.vThinkBeyondVM.com //:: # Product/Feature: vCenter Server/VMware ESXi //:: # Reference: http://vthinkbeyondvm.com/tutor ...
    vSphere Management SDK Java
    Download

    2044 Downloads

    0 Comments

    Updated 6 years ago

  • How to get DRS Rules associated with each VM in the DRS cluster

    Contributor VIKAS SHITOLE

    ... //:: # Author: Vikas Shitoleff//:: # Author: Vikas Shitole //:: # Website: www.vThinkBeyondVM.com //:: # Product/Feature: vCenter Server/DRS //:: # Description: Script to find all the rules associ ...
    vSphere Management SDK Java
    Download

    675 Downloads

    2 Comments

    Updated 6 years ago

  • Java SDK API sample script to Edit VM VM Drs Rules

    Contributor VIKAS SHITOLE

    ...   //:: # Author: Vikas Shitole //:: # Product/Feature: vCenter Server/DRS //:: # Description: Script to edit VM VM DRS affinity rules //:# Reference: http://vthinkbeyondvm.com/how-to-edit-drs-vm-v ...
    vSphere Management SDK Java
    Download

    955 Downloads

    0 Comments

    Updated 6 years ago

  • Create DRS VMVM Rules

    Contributor VIKAS SHITOLE

    ... //:: # Author: Vikas Shitole //:: # Website: www.vThinkBeyondVM.com //:: # Product/Feature: vCenter Server/DRS //:: # Reference: http://vthinkbeyondvm.com/drs-rules-part-ii-how-to-create-vm-vm-aff ...
    vSphere Management SDK Java
    Download

    995 Downloads

    0 Comments

    Updated 6 years ago