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.


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



1 - 3 of 3 Results Sample DFW
  • vRO Workflow - NSX DFW Rule Hit Count

    Contributor Gary Flynn

    ... { RETIRED } vRO Workflow - NSX DFW Rule Hit Count Export the NSX DFW Rule Hit Counts for all layer 3 DFW firewall rules to a CSV and email this to the user. Full details of the workflows can be fo ...
    NSX for vSphere vRealize Orchestrator vRO Package


    1 Favorite


    Updated 2 years ago

  • NSX Get Rules Count V 1 . 2

    Contributor Steve Ottavi

    This script uses PowerCLI and Posh-ssh ti retrieve the list of nsx rules applied ti VMs on ESXi hosts and counts the total of rules.  This mainly helps identifiy any hosts that are reaching the 10 000 ...
    VMware PowerCLI PowerShell



    Updated 2 years ago

  • NSX-T DFW Monitoring with vRLI and vROps

    Contributor Kai Schwender

    Purpose of this scrips are to monitor NSX-T DFW VM and Host metrics, in essence applied DFW rules per vNIC, applied DFW rules per Host and heap usage of each NSX-T module per host, in vRLI and vROps. ...
    PowerCLI PowerShell


    Updated 8 days ago