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 1686 Results Sample
  • vROps Webhook Payload for PagerDuty Alert Events Example

    Contributor John Dias

    Send vROps alerts to PagerDuty using this sample. The dedup_key is the vROps alert ID, so updates and cancelled alerts will be recorded in the same incident in PagerDuty. To use this sample with Pager ...
    vRealize Operations Manager vRealize Ops Outbound Webhook
    Download

    2 Downloads

    0 Comments

    Updated 3 hours ago

  • VMware Cloud Services Platform Content Pack

    Contributor Julie Roman

    Dashboards: CSP Audit Logs, CSP User Logins, CSP User Logout, CSP Usage by Service, CSP log activity types, CSP Remove User from Org, CSP API Tokens by User, CSP Revoked API Tokens. Queries: CSP Audit ...
    vRealize Log Insight Cloud vRealize Log Insight Content Pack
    Download

    0 Comments

    Updated 5 hours ago

  • Get vCenter Virtual Machines by tag

    Contributor Christophe Decanini

    There are quite a few tag samples available but as I found none providing this functionality I have quickly implemented it and thought this could be useful  if shared.   Pre-requisite: Get the vCente ...
    vRealize Orchestrator vRO Package
    Download

    0 Comments

    Updated 7 hours ago

  • Logoff-Horizon-Sessions-Disconnected-Longer-Than

    Contributor Chris Halstead

    Manage Horizon Disconnected Sessions.  Show all disconnected sessions and show all sessions that have been disconnected longer than specified hours.  You can then logoff those sessions. Sesssion Start ...
    Horizon PowerShell
    Download

    9 Downloads

    0 Comments

    Updated 2 days ago

  • Configure SMP-FT for a Virtual Machine

    Contributor William Lam

    .SYNOPSIS Configure SMP-FT for a Virtual Machine .DESCRIPTION The function will allow you to enable/disable SMP-FT for a Virtual Machine .NOTES Author: William Lam .NOTES Site: www.virtuallyghetto.com ...
    VMware PowerCLI PowerShell
    Download

    340 Downloads

    0 Comments

    Updated 2 days ago

  • Get VMM Overhead

    Contributor William Lam

    The function will return VM memory overhead for a given Virtual Machine Example: Get-VM "vcenter60-2" | Get-VMMemOverhead
    VMware PowerCLI PowerShell
    Download

    588 Downloads

    0 Comments

    Updated 2 days ago

  • Add VM Adv Param Option

    Contributor William Lam

    How to extract host information from within a VM? | virtuallyGhettohttp://www.virtuallyghetto.com/2011/01/how-to-extract-host-information-from.html vGhetto Script Repository This repository contain ...
    vSphere Perl SDK Perl
    Download

    654 Downloads

    0 Comments

    Updated 2 days ago

  • Add Host Custom Field

    Contributor William Lam

    Add Host Custom Field vGhetto Script Repository This repository contains a collection of sample scripts across various programming/scripting languages for VMware based solutions. Categories: batc ...
    vSphere Perl SDK Perl
    Download

    606 Downloads

    0 Comments

    Updated 2 days ago

  • Retrieving useful VMC SDDC information using cURL

    Contributor William Lam

    More details can be found at https://www.virtuallyghetto.com/2018/09/using-vmc-api-to-answer-commonly-asked-questions-about-your-sddc.html Usage: ./vmc_sddc_summary.sh $TOKEN $ORGID $SDDCID  
    VMware Cloud on AWS API VMware Cloud on AWS VMware Cloud Services Platform (CSP) Shell Script
    Download

    560 Downloads

    0 Comments

    Updated 2 days ago

  • Retrieving detailed per-VM space utilization on VSAN

    Contributor William Lam

    For more details, please see https://www.virtuallyghetto.com/2018/06/retrieving-detailed-per-vm-space-utilization-on-vsan.html Get-VSANVMDetailedUsage -Cluster "VSAN-Cluster" VM File Type physical ...
    vSAN PowerShell
    Download

    335 Downloads

    0 Comments

    Updated 2 days ago