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
- Simple Local Cluster Migration Dashboard - non-HCIOverview This simple dashboard helps you determine the number of new (planned) ESXi Hosts you will need to migrate all workloads of a selected vSphere cluster according to the demand-driven capacity c ...vRealize Operations Manager vRealize Ops Dashboard
- VM Guest OS uptime in daysValue is rounded down and does not include the unit like the OOTB one.vRealize Operations Manager vRealize Ops Super Metrics
- Host uptime in daysValue is rounded down and does not include the unit like the OOTB one.vRealize Operations Manager vRealize Ops Super Metrics
- Host system - dead storage pathsTakes the OOTB storage device path properties one step further.vRealize Operations Manager vRealize Ops Super Metrics
- Virtual machine - parent host socket countCan be used in views where subject = virtual machine.vRealize Operations Manager vRealize Ops Super Metrics
- Number of Datastores in a Datastore ClusterFeature request submitted to have this metric/property OOTB, but in the meantime..... H/T to Spas for the clue: http://kaloferov.com/blog/skkb1042/vRealize Operations Manager vRealize Ops Super Metrics
- Cluster Compute resource Free Disk TBAs seen in vSphere clientvRealize Operations Manager vRealize Ops Super Metrics
- Host vmnic down Alert and SupermetricUse Case: To be able to get information on which vmnic is down rather than generic vmnic down alert. Solution: We can create super metrics for each vmnic on the host such that if the vmnic ...vRealize Operations Manager vRealize Ops Super Metrics