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
- Custom Data Center Costs with OPEX and CAPEX breakdown.***Custom Datacenters should be made with clusters, I do provide metrics to use different vCenters but I still working out few bugs where depth calculations do not always compute. ******* There are 1 ...vRealize Operations Manager vRealize Ops Dashboard
- MB Config Max Logical CPUs Remaining per hostDisplays the number of LUNs that can be added to an ESXi host based on the vSphere 6.7 Configuration Maximums. Assumes 1:1 LUN to Datastore Ratio.vRealize Operations Manager vRealize Ops Super Metrics
- MB Config Max ESXi LUNs RemainingDisplays the number of LUNs that can be added to an ESXi host based on the vSphere 6.7 Configuration Maximums. Assumes 1:1 LUN to Datastore Ratio.vRealize Operations Manager vRealize Ops Super Metrics
- vSAN Cache Disk Encryption StatusReturns a value of 0 or 1 depending on whether or not the selected vSAN cache disk is encrypted. This can then be consumed in heatmaps.vRealize Operations Manager vRealize Ops Super Metrics
- vSAN Capacity Disk Encryption StatusReturns a value of 0 or 1 depending on whether or not the selected vSAN ca disk is encrypted. This can then be consumed in heatmaps.vRealize Operations Manager vRealize Ops Super Metrics
- vSAN Host Encryption StatusReturns a value of 0 or 1 depending on whether or not the selected vSAN host has encryption enabled. This can then be consumed in heatmaps.vRealize Operations Manager vRealize Ops Super Metrics
- ESXi Host downDisplays the number of ESXi Host(s) that are down.vRealize Operations Manager vRealize Ops Super Metrics
- VM Uptime... http://virtual-red-dot.info/vm-availability-monitoring/ The up time of a VM is more complex than that of a physical machine. Just because the VM is powered on, does not mean the Guest OS is up and ...vRealize Operations Manager vRealize Ops Super Metrics
- Cluster Total VM RAM AllocatedProvides you total allocated memory of all VMs in a cluster based on GB or TB.vRealize Operations Manager vRealize Ops Super Metrics
- VRealize Operations Maintenance ModevRealize Operations Maintenance Mode Places a vSphere Inventory object into maintenance mode in vRealize Operations Example Set All VMs with a name as backup as being in maintenance mode for 20 mi ...VMware PowerCLI PowerShell