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 51 Results Sample ESXi
  • List Datastore Info

    Contributor lamw

    vSphere Python SDK program for listing all ESXi datastores and theirassociated devices pyvmomi-community-samples Community contributed samples for the pyVmomi library. The pyVmomi library itsel ...
    vSphere Management SDK Python
    Download

    2938 Downloads

    1 Favorite

    0 Comments

    Updated 2 years ago

  • ESXi Perf Sample

    Contributor hartsocks

    vSphere Python SDK program for demonstrating vSphere perfManager API based onRbvmomi sample https://gist.github.com/toobulkeh/6124975 pyvmomi-community-samples Community contributed samples for ...
    vSphere Management SDK Python
    Download

    2013 Downloads

    0 Comments

    Updated 2 years ago

  • Upgrade ESXi Hosts

    Contributor streaks6

    Automatic-ESXi-Host-Upgrade Host upgrade performs configuration backups and uses VUM to upgrade hosts which are backed up and "NonCompliant" serially. Clusters can be upgraded one at a time and the sc ...
    VMware PowerCLI PowerShell
    Download

    325 Downloads

    0 Comments

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

  • Importing VM annotation and notes from CSV file into vCenter

    Contributor kunaludapi

    As in the earlier blog after exporting VM annotations, notes and other useful information to CSV/excel file, It was time to Import those information on new vCenter, This new vCenter has new Esxi Serve ...
    VMware PowerCLI PowerShell
    Download

    527 Downloads

    0 Comments

    Updated 3 years ago

  • Manage security profile services of an ESXi Host in vCenter

    Contributor tnavarro1

    Start, stop, restart, or uninstall security profile services of an ESXi Host in vCenter. Optionally, specify whether a service policy is to start automatically when ports are open (automatic), start w ...
    vRealize Orchestrator Plug-in SDK JavaScript
    Download

    418 Downloads

    1 Favorite

    0 Comments

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

    134 Downloads

    0 Comments

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

    343 Downloads

    0 Comments

    Updated 2 years ago

  • Change Passwords

    Contributor CAJason

    Changes ESXi Host root passwords for all specified ESXi Servers
    VMware PowerCLI PowerShell
    Download

    255 Downloads

    1 Comment

    Updated 3 years ago

  • Rename Local Datastores

    Contributor CAJason

    Renames local datastores on ESXi hosts to use the hostname plus a specified suffix.
    VMware PowerCLI PowerShell
    Download

    218 Downloads

    1 Comment

    Updated 3 years ago