This 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 the vRNI Python SDK, which is available here: https://github.com/vmware/network-insight-sdk-python
Support vRNI version: vRNI-5.2.0 and above
#python user_defined_events_backups.py --help
usage: user_defined_events_backups.py [-h] [--deployment_type DEPLOYMENT_TYPE]
[--platform_ip PLATFORM_IP]
[--username USERNAME]
[--password PASSWORD]
[--domain_type DOMAIN_TYPE]
[--domain_value DOMAIN_VALUE]
[--get_vidm_client_id]
[--vidm_token VIDM_TOKEN]
[--api_token API_TOKEN]
[--event_backup_yaml EVENT_BACKUP_YAML]
[--event_backup_action EVENT_BACKUP_ACTION]
[--update_snmp_destinations UPDATE_SNMP_DESTINATIONS]
Run Public APIs on vRNI Platform
optional arguments:
-h, --help show this help message and exit
--deployment_type DEPLOYMENT_TYPE
Setup deployment type: onprem or niaas
--platform_ip PLATFORM_IP
IP address of vRNI platform. In case of cluster IP
address of Platform-1
--username USERNAME user name for authentication
--password PASSWORD password for authentication
--domain_type DOMAIN_TYPE
domain type for authentication: LOCAL or LDAP or VIDM
--domain_value DOMAIN_VALUE
domain value for LDAP user: example.com
--get_vidm_client_id Get client-id for making user access-token request to
vIDM
--vidm_token VIDM_TOKEN
Provide vidm_token
--api_token API_TOKEN
Provide niaas api token
--event_backup_yaml EVENT_BACKUP_YAML
User defined events are saved in this csv
--event_backup_action EVENT_BACKUP_ACTION
Action can be 'save' or 'restore'
--update_snmp_destinations UPDATE_SNMP_DESTINATIONS
Update snmp in user defined events
#vRealizeNetworkInsight#UserDefinedEvents#Apache2.0#vRealizeNetworkInsight#Python