User Tools

Site Tools



Auditorium Scripts

The auditorium-scripts can be used as standalone scripts or included as a Python module.

Please refer to the Introduction to OpenBACH-extra and OpenBACH API page to see how to install and set up your platform to use the API described in this page.

Available scripts

The available scripts are listed below:
You can import the classes of auditorium-scripts from any directory, but the file “controller” (with the controller IP/login/password) should be in the directory from which you launch your scripts in order to correctly access the controller.

How to launch the scripts in your terminal shell

The following example shows how to launch the fping job with different arguments:

python3 **admin_ip** fping -a destination_ip **dest_ip** -a count 2 -a interval 10

For more complex scenarios, sub commands may be needed. The following example shows how to set up an iperf3 server and iperf3 client.

On the server:

python3 **srv_admin_ip** iperf3 -a num_flows 2 -s server

On the client:

python3 **clt_admin_ip** iperf3 -a num_flows 2 -s client server_ip **srv_data_ip** -s client duration_time 60 --sub-sub-command client udp bandwidth 20M

Importing the scripts in your Python files

Alternatively, they each host a class that you can import for scripting purposes. _e.g._:

# This script installs the job iperf3 in the agent ''
from auditorium_scripts.install_jobs import InstallJobs
def main():
    install_jobs = InstallJobs()
    install_jobs.parse('-j iperf3 -a'.split())
if __name__ == '__main__':
openbach/manuals/2.x/developer_manual/openbach_api/auditorium_scripts/index.txt · Last modified: 2020/12/07 07:29 by kuhnn