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 ESXi
  • Get ESXi Hosts

    Contributor lamw

    Get ESXi Hosts vGhetto Script Repository This repository contains a collection of sample scripts across various programming/scripting languages for VMware based solutions. Categories: batch other ...
    vSphere Perl SDK Perl
    Download

    420 Downloads

    0 Comments

    Updated 3 years ago

  • Host Cache Management

    Contributor lamw

    How to Automate Host Cache Configuration in ESXi 5 | virtuallyGhettohttp://www.virtuallyghetto.com/2011/07/how-to-automate-host-cache.html vGhetto Script Repository This repository contains a colle ...
    vSphere Perl SDK Perl
    Download

    261 Downloads

    0 Comments

    Updated 3 years ago

  • vSphere Automation connection and service initialization callflow

    Contributor VMware

    vSphere Automation Ruby sample that demonstrates initial connection and service initialization. This sample is a part of the VMware vSphere Automation SDK for Ruby To build and run this sample, pleas ...
    vSphere Automation SDK for Ruby Ruby
    Download

    182 Downloads

    0 Comments

    Updated 4 months ago

  • Test ESXi Network

    Contributor chs1

    test-ESXi-Network Test network connectivity on a new ESXi host- Are the physical NICs patched correctly? This quick PowerCLI/PowerShell program was written to test connectivity on some new hosts befor ...
    VMware PowerCLI PowerShell
    Download

    216 Downloads

    0 Comments

    Updated 1 year ago

  • Set OVF Env

    Contributor lamw

    An alternate way to inject OVF properties when deploying virtual appliances directly onto ESXi | virtuallyGhettohttp://www.virtuallyghetto.com/2014/06/an-alternate-way-to-inject-ovf-properties-when-de ...
    vSphere Perl SDK Perl
    Download

    960 Downloads

    0 Comments

    Updated 3 years ago

  • Configure ESXi Power Policy

    Contributor lamw

    Python script to configure power management policy on ESXi host vGhetto Script Repository This repository contains a collection of sample scripts across various programming/scripting languages for ...
    vSphere Management SDK Python
    Download

    433 Downloads

    0 Comments

    Updated 3 years ago

  • Change Path Policy ESXi RR V 01

    Contributor szemmali

    Overview: vCollect provides a PowerCLI scripts that produce infrastructure audit and reports of VMware SDDC (vSphere, NSX, vCloud DIrector, vRealize Automation) environments in CSV or Excel file forma ...
    VMware PowerCLI PowerShell
    Download

    136 Downloads

    2 Favorites

    0 Comments

    Updated 21 days ago

  • Get Shared Datastore for given ESXi Host Pool and VM

    Contributor sjaganat16

    Get shared datastored for given esxi host, virtual machine and resource pool. This code can also be used for vRA Change Reservation for a VM process.
    vSphere vRealize Automation vRealize Orchestrator Plug-in SDK JavaScript
    Download

    201 Downloads

    0 Comments

    Updated 6 months ago

  • Get ESXi Host to Place the VM - DRS Placement.

    Contributor sjaganat16

    Get the ESXi host to place a vm when moving VM to different to cluster via API.  This is part of changing VM's vRA Reservation when VMs moved/migrated to different cluster.
    vRealize Automation vRealize Orchestrator Plug-in SDK JavaScript
    Download

    181 Downloads

    1 Favorite

    0 Comments

    Updated 6 months ago

  • SetGuestInfo and GetGuestInfo script

    Contributor m.daneri

    Starting from version 5.5  vmware-cmd is not anymore part of ESXI command tools.   Almost any function has been migrated to new tools, like esxcli.    Almost but not all. The most notable absence is t ...
    vSphere Management SDK Python
    Download

    1090 Downloads

    0 Comments

    Updated 3 years ago