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 41 Results Sample Pyvmomi
  • 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

    585 Downloads

    0 Comments

    Updated 2 years ago

  • Python script to get associated DRS rules for a Virtual Machine

    Contributor VIKAS SHITOLE

    ... # Author: Vikas Shitole   # Website: www.vThinkBeyondVM.com   # Product: vCenter server/vSphere DRS rules   # Description: Python script to get associated DRS rules for a Virtual Machine (fr ...
    vSphere Management SDK Python
    Download

    1029 Downloads

    0 Comments

    Updated 4 years ago

  • 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

    463 Downloads

    0 Comments

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

    692 Downloads

    0 Comments

    Updated 4 years ago

  • Python - Set Network Adapter to be an Opaque Network

    Contributor Kyle Ruddy

    Change a VM's network adaptor to be an NSX-T provisioned opaque network, via KB66907: https://kb.vmware.com/s/article/66907
    NSX-T vSphere Python
    Download

    593 Downloads

    0 Comments

    Updated 9 months 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

  • vCenter VM Hardware Adapter SATA

    Contributor VMware Inc

    vCenter VM Hardware Adapter SATA Demonstrates how to configure virtual SATA 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

    912 Downloads

    0 Comments

    Updated 3 years ago

  • vCenter VM Hardware Parallel

    Contributor VMware Inc

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

    1057 Downloads

    0 Comments

    Updated 3 years ago

  • Script to fetchAuditRecords

    Contributor VMware Inc

    How to use pyVmomi SDK for vSphere 7.0U3 to fetchAuditRecords   OSS pyVmomi is hosted in GitHub: https://github.com/vmware/pyvmomi The project's main page contains pointers to general instructions fo ...
    vSphere Python
    Download

    22 Downloads

    0 Comments

    Updated 2 months ago

  • Docker image to run pyvmomi

    Contributor LINO Telera

    This docker image creates container to test script based on pyvmomi library. Simply run docker build to create a test environment in your photon. Running container could be accessed via ssh or by dock ...
    Other Platform Other Language
    Download

    989 Downloads

    0 Comments

    Updated 6 years ago