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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- Deploy vRNI using OVFTOOLThis script will Deploy vRNI using the OVFTOOL CommandvRealize Network Insight Python