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

  • Automation Tools

  • 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 23 Results Sample vROPS
  • Total CPU Allocated to Windows VMs

    Contributor RickVerstegen

    Super Metric that displays the total allocated CPU to Windows VMs in a vSphere cluster. This super metric uses the new string operations for where conditions in vROps 7.x and later.
    vRealize Operations Manager vRealize Ops Super Metrics
    Download

    414 Downloads

    0 Comments

    Updated 1 year ago

  • VM Uptime

    Contributor Iwan Rahabok

    ... 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
    Download

    719 Downloads

    0 Comments

    Updated 1 year ago

  • vSAN Cache Disk Encryption Status

    Contributor vm_spot

    Returns 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
    Download

    311 Downloads

    0 Comments

    Updated 1 year ago

  • vSAN Capacity Disk Encryption Status

    Contributor vm_spot

    Returns 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
    Download

    304 Downloads

    0 Comments

    Updated 1 year ago

  • vSAN Host Encryption Status

    Contributor vm_spot

    Returns 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
    Download

    199 Downloads

    0 Comments

    Updated 1 year ago

  • ESXi Host down

    Contributor RickVerstegen

    Displays the number of ESXi Host(s) that are down.
    vRealize Operations Manager vRealize Ops Super Metrics
    Download

    534 Downloads

    0 Comments

    Updated 1 year ago

  • Cluster Total VM RAM Allocated

    Contributor RickVerstegen

    Provides you total allocated memory of all VMs in a cluster based on GB or TB.
    vRealize Operations Manager vRealize Ops Super Metrics
    Download

    278 Downloads

    0 Comments

    Updated 1 year ago

  • Super Metric - Monthly Cluster Total Storage Cost

    Contributor vMarkusK1985

    The Monthly Compute Cluster Total Storage Cost. Summary of all Parent Datastore Cost
    vRealize Operations Manager vRealize Ops Super Metrics
    Download

    71 Downloads

    0 Comments

    Updated 1 month ago

  • VRealize Operations Maintenance Mode

    Contributor alanrenouf

    vRealize 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
    Download

    906 Downloads

    1 Comment

    Updated 3 years ago

  • MB Config Max Logical CPUs Remaining per host

    Contributor jddias

    Displays 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
    Download

    255 Downloads

    0 Comments

    Updated 1 year ago