Difference between revisions of "Provisioning Using Other Tools"

From Observer GigaFlow Support | VIAVI Solutions Inc.
Jump to: navigation, search
(Created page with "Inserting new traffic groups in bulk To send data from 3rd party apps you either need to setup a portalUser or supply the login credentials in the query. Function to bulk load...")
 
Line 1: Line 1:
 
Inserting new traffic groups in bulk
 
Inserting new traffic groups in bulk
 +
 
To send data from 3rd party apps you either need to setup a portalUser or supply the login credentials in the query.
 
To send data from 3rd party apps you either need to setup a portalUser or supply the login credentials in the query.
Function to bulk load traffic groups, each line separated by a carracge return "\n"
+
 
Ip address can be in the format of start,endip or ip/prefix_length
+
Function to bulk load traffic groups, each line separated by a carriage return "\n"
 +
IP address can be in the format of start,endip or ip/prefix_length
  
 
curl -H "Content-Type: application/x-www-form-urlencoded" -X POST -d $'userName=admin&userPass=admin&id=tgbulk&action=Add Traffic Group Bulk&tgbulk=test1_name,test1_desc,192.168.1.1/24\ntest2_name,test2_desc,192.168.2.1/24\ntest3_name,test3_desc,192.168.3.1,192.168.3.102' "http://172.21.21.21:7902/"
 
curl -H "Content-Type: application/x-www-form-urlencoded" -X POST -d $'userName=admin&userPass=admin&id=tgbulk&action=Add Traffic Group Bulk&tgbulk=test1_name,test1_desc,192.168.1.1/24\ntest2_name,test2_desc,192.168.2.1/24\ntest3_name,test3_desc,192.168.3.1,192.168.3.102' "http://172.21.21.21:7902/"

Revision as of 11:49, 11 January 2019

Inserting new traffic groups in bulk

To send data from 3rd party apps you either need to setup a portalUser or supply the login credentials in the query.

Function to bulk load traffic groups, each line separated by a carriage return "\n" IP address can be in the format of start,endip or ip/prefix_length

curl -H "Content-Type: application/x-www-form-urlencoded" -X POST -d $'userName=admin&userPass=admin&id=tgbulk&action=Add Traffic Group Bulk&tgbulk=test1_name,test1_desc,192.168.1.1/24\ntest2_name,test2_desc,192.168.2.1/24\ntest3_name,test3_desc,192.168.3.1,192.168.3.102' "http://172.21.21.21:7902/"