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
- Deploy vRNI Proxy using OVFTOOLThis script will Deploy vRNI Proxy using the OVFTOOL Command. This script needs multiple inputs, vrni_proxy_name datastore_name network_name vrni_proxy_ip platform_secret_key vrni_proxy_subnet vrni_pr ...vRealize Network Insight Python
- Deploy vRNI using OVFTOOLThis script will Deploy vRNI using the OVFTOOL CommandvRealize Network Insight Python
- datasource-bulk-set-snmp.ps1This PowervRNI example script configures SNMP communities for all network devices listed in a CSV file. This example needs PowervRNI, on which more info can be found here: https://powervrni.github.io/ ...vRealize Network Insight PowerShell
- Query for Four Metrics at once in vRNIPlease change hostname or metrics according to your needs.vRealize Network Insight vRealize Network Insight Search
- 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
- 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. 4/27/21 - NOTE** Updated to handle paginated results for services and security groups. Upd ...vRealize Network Insight VMware Cloud on AWS NSX-T Data Center Python
- 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
- 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
- PowervRNI - Bulk import of data sourcesThis script uses an input CSV (example: datasource-bulk-import.csv) to add multiple vRealize Network Insight Data Sources. Modify datasource-bulk-import.csv to contain your own data sources (vCenters, ...vRealize Network Insight vRealize Network Insight API Network Insight PowerShell
- PowervRNI - Import Network Insight Applications from iTop CMDBThis sample requests the CMDB items from iTop and imports the applications that are created inside iTop, into Network Insight application constructs. It requires the PowervRNI module to be installed, ...vRealize Network Insight API vRealize Network Insight Network Insight PowerShell