mirror of
				https://github.com/Telecominfraproject/wlan-lanforge-scripts.git
				synced 2025-10-31 02:38:03 +00:00 
			
		
		
		
	cv-test: Add influx debugging, update ferndale-ucentral sh script
Allow sourcing local shell variable script in order to not have to commit tokens into the code repo. Fix a few calls to the helper python code that does the real work. Signed-off-by: Ben Greear <greearb@candelatech.com>
This commit is contained in:
		| @@ -392,7 +392,8 @@ class cv_test(Realm): | ||||
|             print("Not submitting to influx, influx_host not configured.\n") | ||||
|             return | ||||
|  | ||||
|         print("Creating influxdb connection.\n") | ||||
|         print("Creating influxdb connection, host: %s:%s org: %s  token: %s  bucket: %s\n"% | ||||
|               (args.influx_host, args.influx_port, args.influx_org, args.influx_token, args.influx_bucket)) | ||||
|         # lfjson_host would be if we are reading out of LANforge or some other REST | ||||
|         # source, which we are not.  So dummy those out. | ||||
|         influxdb = RecordInflux(_lfjson_host="", | ||||
|   | ||||
| @@ -10,21 +10,33 @@ set -x | ||||
| # MGR is LANforge GUI machine | ||||
| #MGR=192.168.100.209 | ||||
| MGR=localhost | ||||
|  | ||||
| # Candela internal influx | ||||
| INFLUXTOKEN=-u_Wd-L8o992701QF0c5UmqEp7w7Z7YOMaWLxOMgmHfATJGnQbbmYyNxHBR9PgD6taM_tcxqJl6U8DjU1xINFQ== | ||||
| INFLUX_HOST=192.168.100.201 | ||||
| INFLUX_BUCKET=ben | ||||
| INFLUX_ORG=Candela | ||||
|  | ||||
| GRAFANATOKEN=eyJrIjoiVXVyZ0dQSXlNdGlQNGQ1R282S2p6SE1PZXJVOVpvM1UiLCJuIjoiYmVuLWdyYWZhbmEiLCJpZCI6MX0= | ||||
| GRAFANA_HOST=192.168.100.201 | ||||
| GROUPS=/tmp/lf_cv_rpt_filelocation.txt | ||||
| GROUP_FILE=/tmp/lf_cv_rpt_filelocation.txt | ||||
| TESTBED=Ferndale-01 | ||||
| DUT=linksys-8450 | ||||
| UPSTREAM=eth2 | ||||
| LF_WAN_PORT=eth3 | ||||
| MGR_PORT=8080 | ||||
|  | ||||
| if [ -f $HOME/influx_vars.sh ] | ||||
| then | ||||
|     # Put private keys and other variable overrides in here. | ||||
|     . $HOME/influx_vars.sh | ||||
| fi | ||||
|  | ||||
|  | ||||
| # Create/update new DUT. | ||||
| #Replace my arguments with your setup.  Separate your ssid arguments with spaces and ensure the names are lowercase | ||||
| echo "Make new DUT" | ||||
| ./create_chamberview_dut.py --lfmgr ${MGR} --dut_name ${DUT} \ | ||||
| ./create_chamberview_dut.py --lfmgr ${MGR} --port ${MGR_PORT} --dut_name ${DUT} \ | ||||
|   --ssid "ssid_idx=0 ssid=Default-SSID-2g security=WPA2 password=12345678 bssid=c4:41:1e:f5:3f:24" \ | ||||
|   --ssid "ssid_idx=1 ssid=Default-SSID-5gl security=WPA2 password=12345678 bssid=c4:41:1e:f5:3f:25" \ | ||||
|   --sw_version "ucentral-01" --hw_version ea8450 --serial_num 1001 --model_num 8450 | ||||
| @@ -35,7 +47,9 @@ echo "Make new DUT" | ||||
| # the scenario. | ||||
| echo "Build Chamber View Scenario" | ||||
| #change the lfmgr to your system, set the radio to a working radio on your LANforge system, same with the ethernet port. | ||||
| ./create_chamberview.py --lfmgr ${MGR} --create_scenario ucentral-scenario \ | ||||
|  | ||||
| ./create_chamberview.py --lfmgr ${MGR} --port ${MGR_PORT} --delete_scenario \ | ||||
|   --create_scenario ucentral-scenario \ | ||||
|   --raw_line "profile_link 1.1 STA-AC 50 'DUT: $DUT Radio-1' NA wiphy0,AUTO -1 NA" \ | ||||
|   --raw_line "profile_link 1.1 STA-AC 50 'DUT: $DUT Radio-1' NA wiphy2,AUTO -1 NA" \ | ||||
|   --raw_line "profile_link 1.1 STA-AC 50 'DUT: $DUT Radio-2' NA wiphy1,AUTO -1 NA" \ | ||||
| @@ -51,13 +65,14 @@ echo "Build Chamber View Scenario" | ||||
| # with '=' right after the argument keyword works as hoped. | ||||
| echo "run wifi capacity test" | ||||
| ./lf_wifi_capacity_test.py --config_name Custom --pull_report --influx_host ${INFLUX_HOST} \ | ||||
|   --influx_port 8086 --influx_org Candela --influx_token=${INFLUXTOKEN} --influx_bucket ${INFLUX_BUCKET} --mgr ${MGR} \ | ||||
|   --instance_name testing --upstream 1.1.$UPSTREAM --test_rig ${TESTBED} --graphgroups ${GROUPS} \ | ||||
|   --batch_size "1,5,25,50,100" --protocol "TCP-IPv4" --duration 20000 | ||||
|   --influx_port 8086 --influx_org ${INFLUX_ORG} --influx_token=${INFLUXTOKEN} --influx_bucket ${INFLUX_BUCKET} --mgr ${MGR} \ | ||||
|   --port ${MGR_PORT} \ | ||||
|   --instance_name testing --upstream 1.1.$UPSTREAM --test_rig ${TESTBED} --graph_groups ${GROUP_FILE} \ | ||||
|   --batch_size "100" --protocol "TCP-IPv4" --duration 20000 | ||||
|  | ||||
| # Build grafana dashboard and graphs view for the KPI in the capacity test. | ||||
| echo "Adding grafana dashboard" | ||||
| ./grafana_profile.py --create_custom --title ${TESTBED} --influx_bucket ${INFLUX_BUCKET} --grafana_token ${GRAFANATOKEN} \ | ||||
|   --grafana_host ${GRAFANA_HOST} --testbed ${TESTBED} --graph-groups ${GROUPS} --scripts Dataplane --scripts 'WiFi Capacity' | ||||
| #echo "Adding grafana dashboard" | ||||
| #./grafana_profile.py --create_custom --title ${TESTBED} --influx_bucket ${INFLUX_BUCKET} --grafana_token ${GRAFANATOKEN} \ | ||||
| #  --grafana_host ${GRAFANA_HOST} --testbed ${TESTBED} --graph-groups ${GROUPS} --scripts Dataplane --scripts 'WiFi Capacity' | ||||
|  | ||||
| rm ${GROUPS} | ||||
| rm ${GROUP_FILE} | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Ben Greear
					Ben Greear