There are many of python modules which control LANforge. These allow the user to automate tasks. This cookbook will introduce inital to scripts to start LANforge automation, the libraries that need to be import to run Candela's python scripts, and how to create objects in python. Before starting any scripting in LANforge, please clone the git repository locally. In the Candela device should come with a lanforge-scripts directory. However, if it doesn't, please paste git clone https://github.com/greearb/lanforge-scripts into your terminal in the directory to which the folder should be in. |
|
update_deps.py
. This program runs in both Linux and Windows and can be run with the following command python3 update_deps.py
. This program installs the python dependencies which are used in this library on your system.
python3 your_script_here.py --your_flag
./create_station.py --radio wiphy0 --ssid lanforge --passwd password --security wpa2
sudo iw dev wlan0 scan | grep SSID
into your command line
--ap
to the end of the command line argument you are running followed by the router's MAC Address.
./create_bridge.py --target_device wlan0 --radio wiphy1
./create_vap.py --radio wiphy0 --security wpa2 --ssid lanforge --passwd password
./create_l3.py --radio wiphy0 --num_stations 0
./create_l4.py --radio wiphy0 --ssid lanforge --passwd password --security wpa2
./test_ipv4_variable_time.py --radio wiphy0 --security wpa2 --ssid lanforge --password password --output_format csv