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
Type
SDK / Platform / Tool
Contributor
Language
- vCollect All VMs details with Hosts Info for All vCenter... 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 f ...vSphere PowerCLI PowerShell
- vROpsTOPThe vROpsTOP dashboard is meant to be like using ESXTOP to look at host and VM stats. This is not a 1:1 mapping but more of a similar group of metrics found in ESXTOP. One advantage to this dashboard ...vRealize Operations Manager vRealize Ops Dashboard
- vCollect Hardware Information By ESXi for each vCenterOverview: Many of the customer projects I work on involve collecting an inventory of basic information about the #VMware #ESXi in the environment, such as CPU/memory specs, OS versions, Power State, a ...vSphere PowerShell
- vCollect Storage PATH per ESXi for each vCenterOverview: 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 ...vSphere PowerShell
- VMware-Community-Orchestration-Tool-VMCOT-VMware Community Orchestration Tool (aka VMCOT) is an open-source project that has been created for all those VMware infrastructure administrators which happen to need to query & bulk configure multip ...VMware PowerCLI PowerShell
- vCollect Products for each vCenterOverview: 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 ...vSphere PowerCLI PowerShell
- ESXi Physical Disk Report including Controller and Physical LocationThis script provides a report of all of the physical disks in a vSphere cluster, sorted by ESXi host, provided that the Physical Location attribute is available for the disk. The storage controller, s ...VMware PowerCLI PowerShell
- Importing VM annotation and notes from CSV file into vCenterAs 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
- SetGuestInfo and GetGuestInfo scriptStarting 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
- VSAN DIsk Decommission ScriptAfter disable vsan in vsphere, executing this script within each ESXi host can decommission all disk groups.vSphere CLI Shell Script