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
- Archiving Network Flows from vRealize Network Insight to Log InsightThis script will fetch the network flows from vRealize Network Insight according to a defined filter (in the script) and send them to vRealize Log Insight for archival purposes. As vRNI only keeps 1 m ...vRealize Network Insight Python
- Query for Four Metrics at once in vRNIPlease change hostname or metrics according to your needs.vRealize Network Insight vRealize Network Insight Search
- Guidebook for Monitoring VMware Tanzu Kubernetes Grid Integrated EnvironmentAuthored by Sajal Debnath With the ever-increasing use of containerized applications, we see a significant proliferation of related technologies in modern datacenters. These latest technologies have ...NSX-T Data Center Enterprise PKS vRealize Log Insight vRealize Network Insight vRealize Operations Manager Other Language
- Python Script to import Distributed Firewall Rules recommended by vRNI to NSX-T on-prem or VMC on AWS SDDCvRealize Network Insight - Guide to importing recommended DFW rules to NSX-T or VMC SDDC using Python Script. Pre-requisites: Python 3.7 or above Requests, json, argparse, sys, requests, glob, os, xm ...vRealize Network Insight NSX-T Data Center VMware Cloud on AWS Python
- Backup and Restore User Defined Events - vRealize Network InsightThis vRealize Network Insight Python SDK example script saves all available user defined events in vRNI to a YAML file, and can restore this backup file to another vRNI instance. This script requires ...vRealize Network Insight Python
- Bulk Adding Applications - PowervRNIThis PowervRNI example script adds all the applications listed in a CSV file, for quick and bulk adding a lot of applications at once. This example needs PowervRNI, on which more info can be found her ...vRealize Network Insight vRealize Network Insight API PowerShell
- Bandwidth Usage per IP Address - PowervRNIThis PowervRNI example script gets a list of IPs with their respective bandwidth usage. This can be useful for billing purposes, where bandwidth utilization needs to be charged. This example needs Pow ...vRealize Network Insight API vRealize Network Insight PowerShell
- Export Network Flows from vRealize Network InsightThis vRealize Network Insight Python SDK example script saves all network flows that match the search query used in the code. Make sure to update the filter_string variable into a search that's valid ...vRealize Network Insight API vRealize Network Insight Python
- Adding multiple Data Sources with PythonThis vRealize Network Insight Python SDK example script adds all data sources that are listed in the CSV you specify. This script requires the vRNI Python SDK, which is available here: https://github. ...vRealize Network Insight API vRealize Network Insight Python
- Backup and Restore Applications - vRealize Network InsightThis vRealize Network Insight Python SDK example script saves all available applications in vRNI to a YAML file, and can restore this backup file to another vRNI instance. This script requires the vRN ...vRealize Network Insight API vRealize Network Insight Python