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 257 Results Sample Python
  • Initiate vCenter HA graceful failover using vSphere python SDK i.e. pyVmomi

    Contributor VIKAS SHITOLE

    ...   # Website: www.vThinkBeyondVM.com   # Product: vCenter server/vCenter Server High Availability (VCHA)   # Description: Script to initiate vCenter Server High Availability failover   # Refe ...
    vSphere Management SDK Python
    Download

    462 Downloads

    0 Comments

    Updated 3 years ago

  • Get vCenter server HA health information using vSphere Python SDK i.e. pyVmomi

    Contributor VIKAS SHITOLE

    ...   # Product: vCenter server/vCenter Server High Availability (VCHA)   # Description: Python script to Get vCenter server HA health information   # Reference: http://vthinkbeyondvm.com/how-to-m ...
    vSphere Management SDK Python
    Download

    690 Downloads

    0 Comments

    Updated 3 years ago

  • vSAN Health

    Contributor saju chengat

    Python SDK based script which provides vsan health information about controller and driver. Python <scriptname> -i <VC-IP>  -c <vsan_cluster_name> -u <VC_username> -p <VC_Password> To run this script, ...
    vSAN Management SDK for Python Python
    Download

    723 Downloads

    0 Comments

    Updated 3 years ago

  • Sending Data from your Weather Station to Wavefront

    Contributor Bill Roth

    I recently bought a Weather station, Based on Durren Shen's blog, here: https://www.wavefront.com/weather-metrics/ I took his code, cleaned it up and put it in a repo. Check it out. If you have quest ...
    Wavefront by VMware Python
    Download

    399 Downloads

    1 Comment

    Updated 2 years ago

  • vsanmetrics

    Contributor Erwan Quélin

    Export VMware vSAN metrics to InfluxDB vsanmetrics vsanmetrics is a tool written in Python for collecting usage and performance metrics and health status from a VMware vSAN cluster and translating t ...
    Other Platform vSphere Automation SDK for Python Python
    Download

    579 Downloads

    0 Comments

    Updated 2 years ago

  • Manage a Service Mesh in Cloud PKS

    Contributor Boskey Savla

    Learn Service Mesh using Planespotter app in Cloud PKS The following instructions walk through some of the use cases of managing micro-services using a Service Mesh via Istio. The labs are self-explan ...
    VMware Cloud PKS Python
    Download

    196 Downloads

    1 Favorite

    0 Comments

    Updated 2 years ago

  • Sample stateful application deployment for Cloud PKS

    Contributor Boskey Savla

    Follow instructions in the Wiki page to get started with Kubernetes Environment on Cloud PKS If your Kubernetes Environment is already setup take a look at some of the Excercies to understand Kubernet ...
    VMware Cloud PKS Python
    Download

    223 Downloads

    0 Comments

    Updated 2 years ago

  • Create Random Marvel VMs

    Contributor Shawn Hartsock

    vSphere SDK for Python program for creating tiny VMs (1vCPU/128MB) with randomnames using the Marvel Comics API pyvmomi-community-samples Community contributed samples for the pyVmomi library. ...
    vSphere Management SDK Python
    Download

    1999 Downloads

    0 Comments

    Updated 7 months ago

  • VeloCloud Orchestrator Generic Client - Getting Information Easily from VCO

    Contributor Iddo Cohen

    ... --------------------------------------------------------------------------------------------------------------------- Please use https://github.com/iddocohen/vcoclient/ to get up-to-date updates. ...
    VeloCloud Orchestrator Python
    Download

    1587 Downloads

    0 Comments

    Updated 7 months ago

  • inventory_mysql_pull.py

    Contributor Vaishnavi Prabakar

    Python based Business Intelligence script to pull customer information and dump in database.  Tested with Python 2.7.  Python SDK Installed or velocloud in the script folder. MySQL database should be ...
    VeloCloud Orchestrator Python
    Download

    1706 Downloads

    1 Comment

    Updated 1 year ago