mirror of
				https://github.com/Telecominfraproject/wlan-lanforge-scripts.git
				synced 2025-11-03 20:27:54 +00:00 
			
		
		
		
	Rename wifi_cap_to_grafana and create dataplane_to_grafana
Signed-off-by: Matthew Stidham <stidmatt@gmail.com>
This commit is contained in:
		@@ -1,19 +0,0 @@
 | 
			
		||||
#!/bin/bash
 | 
			
		||||
##########################
 | 
			
		||||
# Help
 | 
			
		||||
##########################
 | 
			
		||||
Help()
 | 
			
		||||
{
 | 
			
		||||
  echo "This bash script creates a DUT, loads a scenario, runs a WiFi Capacity test, and saves it to Influx"
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
#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 192.168.1.7 --dut_name DUT_TO_GRAFANA_DUT --ssid "ssid_idx=0 ssid=lanforge security=WPA2 password=password bssid=04:f0:21:2c:41:84 traffic=wiphy1"
 | 
			
		||||
 | 
			
		||||
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 192.168.1.7 --create_scenario DUT_TO_GRAFANA_SCENARIO --line "Resource=1.1 Profile=default Amount=32 Uses-1=wiphy1 DUT=DUT_TO_GRAFANA_DUT Traffic=wiphy1 Freq=-1" --line "Resource=1.1 Profile=upstream Amount=1 Uses-1=eth1 DUT=DUT_TO_GRAFANA_DUT Traffic=eth1 Freq=-1"
 | 
			
		||||
 | 
			
		||||
#config_name doesn't matter, change the influx_host to your LANforge device,
 | 
			
		||||
echo "run wifi capacity test"
 | 
			
		||||
./lf_wifi_capacity_test.py --config_name Custom --create_stations --radio wiphy1 --pull_report --influx_host 192.168.1.7 --influx_port 8086 --influx_org Candela --influx_token Tdxwq5KRbj1oNbZ_ErPL5tw_HUH2wJ1VR4dwZNugJ-APz__mEFIwnqHZdoobmQpt2fa1VdWMlHQClR8XNotwbg== --influx_bucket lanforge --mgr 192.168.1.7 --instance_name testing --upstream eth1
 | 
			
		||||
@@ -245,7 +245,9 @@ def main():
 | 
			
		||||
        Command example:
 | 
			
		||||
        ./grafana_profile.py
 | 
			
		||||
            --grafana_token 
 | 
			
		||||
            --''')
 | 
			
		||||
            --dashbaord_name
 | 
			
		||||
            --scripts "Wifi Capacity"
 | 
			
		||||
            ''')
 | 
			
		||||
    required = parser.add_argument_group('required arguments')
 | 
			
		||||
    required.add_argument('--grafana_token', help='token to access your Grafana database', required=True)
 | 
			
		||||
 | 
			
		||||
@@ -263,7 +265,7 @@ def main():
 | 
			
		||||
    optional.add_argument('--dashboard_title', help='Titles of dashboards', default=None, action='append')
 | 
			
		||||
    optional.add_argument('--scripts', help='Scripts to graph in Grafana', default=None, action='append')
 | 
			
		||||
    optional.add_argument('--title', help='title of your Grafana Dashboard', default=None)
 | 
			
		||||
    optional.add_argument('--grafana_bucket', help='Name of your Grafana Bucket', default=None)
 | 
			
		||||
    optional.add_argument('--influx_bucket', help='Name of your Influx Bucket', default=None)
 | 
			
		||||
    args = parser.parse_args()
 | 
			
		||||
 | 
			
		||||
    Grafana = UseGrafana(args.grafana_token,
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										20
									
								
								py-scripts/wifi_cap_to_grafana.sh
									
									
									
									
									
										Executable file
									
								
							
							
						
						
									
										20
									
								
								py-scripts/wifi_cap_to_grafana.sh
									
									
									
									
									
										Executable file
									
								
							@@ -0,0 +1,20 @@
 | 
			
		||||
#!/bin/bash
 | 
			
		||||
##########################
 | 
			
		||||
# Help
 | 
			
		||||
##########################
 | 
			
		||||
Help()
 | 
			
		||||
{
 | 
			
		||||
  echo "This bash script creates a DUT, loads a scenario, runs a WiFi Capacity test, and saves it to Influx"
 | 
			
		||||
}
 | 
			
		||||
MGR=192.168.1.7
 | 
			
		||||
INFLUXTOKEN=Tdxwq5KRbj1oNbZ_ErPL5tw_HUH2wJ1VR4dwZNugJ-APz__mEFIwnqHZdoobmQpt2fa1VdWMlHQClR8XNotwbg==
 | 
			
		||||
#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_TO_GRAFANA_DUT --ssid "ssid_idx=0 ssid=lanforge security=WPA2 password=password bssid=04:f0:21:2c:41:84 traffic=wiphy1"
 | 
			
		||||
 | 
			
		||||
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 DUT_TO_GRAFANA_SCENARIO --line "Resource=1.1 Profile=default Amount=32 Uses-1=wiphy1 DUT=DUT_TO_GRAFANA_DUT Traffic=wiphy1 Freq=-1" --line "Resource=1.1 Profile=upstream Amount=1 Uses-1=eth1 DUT=DUT_TO_GRAFANA_DUT Traffic=eth1 Freq=-1"
 | 
			
		||||
 | 
			
		||||
#config_name doesn't matter, change the influx_host to your LANforge device,
 | 
			
		||||
echo "run wifi capacity test"
 | 
			
		||||
./lf_wifi_capacity_test.py --config_name Custom --create_stations --radio wiphy1 --pull_report --influx_host ${MGR} --influx_port 8086 --influx_org Candela --influx_token  ${INFLUXTOKEN} --influx_bucket lanforge --mgr ${MGR} --instance_name testing --upstream eth1 --test_rig Testbed-02
 | 
			
		||||
		Reference in New Issue
	
	Block a user