CloudMeasurement is a CLI that create multiple Traceroute experiments in different Cloud infrastructures (for now just AWS, but Google Cloud is planned ).
CloudMeasurement works with Mac OSX and Ubuntu (18.04, 20.04) the installation is straight forward, you have to clone the repository, install the requirements and then the tool.
vagrant@ubuntu-bionic:~$ sudo apt update && sudo apt install awscli git python3-pip -y
vagrant@ubuntu-bionic:~$ git clone https://github.com/Giuseppe1992/CloudMeasurement.git
vagrant@ubuntu-bionic:~$ cd CloudMeasurement/
vagrant@ubuntu-bionic:~/CloudMeasurement$
vagrant@ubuntu-bionic:~/CloudMeasurement$ pip3 install -r requirements.txt
vagrant@ubuntu-bionic:~/CloudMeasurement$ sudo python3 setup.py installvagrant@ubuntu-bionic:~/CloudMeasurement$ cm
No operationIn the configuration the user has to configure the AWS Access key ID and Secret Access Key, if it is using AWS for the first time.
In the last line, the user has to specify the path of the private key that will be used to connect with the virtual instances in the experiments.
Make sure to give a correct path, by default is pointing the default key from ~/.ssh directory
vagrant@ubuntu-bionic:~/CloudMeasurement$ cm --init
AWS Access Key ID [None]: ******************
AWS Secret Access Key [None]: ********************************
Default region name [None]: eu-central-1
Default output format [None]: json
Insert the default private key [default: /home/vagrant/.ssh/id_rsa] :
vagrant@ubuntu-bionic:~/CloudMeasurement$ cm --configuration
+-------------------------------------------------------+---------------------------------+---------------------------+
| DB_PATH | UTILS_PATH | PRIVATE_KEY_PATH |
+=======================================================+=================================+===========================+
| /home/vagrant/.CloudMeasurement/CloudMeasurementDB.db | /home/vagrant/.CloudMeasurement | /home/vagrant/.ssh/id_rsa |
+-------------------------------------------------------+---------------------------------+---------------------------+
vagrant@ubuntu-bionic:~/CloudMeasurement$ cm -h
Usage: cm [options]
(type cm -h for details)
The utility creates experiments from the command line. It can create
experiments, list them, and manage.
Options:
-h, --help show this help message and exit
-c CREATE_EXPERIMENT, --create_experiment=CREATE_EXPERIMENT
possible experiments: multiregionalTrace
--init initialize the environment
--configuration initialize the environment
--purge purge all the active experiments
-e, --ls_experiments list the experiments
...
vagrant@ubuntu-bionic:~/CloudMeasurement$ cm -c multiregional --regions="eu-central-1,eu-west-2"
vagrant@ubuntu-bionic:~/CloudMeasurement$ cm -c regional --regions="eu-central-1"
It is very important to be sure that the public key is already imported in all the regions where the user wants to run the experiments. By default --key_pair_id="id_rsa", this means that in every regions there is a key pair named "id_rsa" that is the public part of the keypair imported in the tool during the initial configuration. To specify another key_pair_id, you have to create the experiment like the next example:
vagrant@ubuntu-bionic:~/CloudMeasurement$ cm -c multiregional --regions="eu-central-1,eu-west-2" --key_pair_id=YOUR_ID
vagrant@ubuntu-bionic:~/CloudMeasurement$ cm -e
vagrant@ubuntu-bionic:~/CloudMeasurement$ cm -i
vagrant@ubuntu-bionic:~/CloudMeasurement$ cm -s EXPERIMENT_ID
vagrant@ubuntu-bionic:~/CloudMeasurement$ cm --retrieve_data EXPERIMENT_ID
vagrant@ubuntu-bionic:~/CloudMeasurement$ cm --save_data EXPERIMENT_ID,LOCAL_PATH
vagrant@ubuntu-bionic:~/CloudMeasurement$ cm -d EXPERIMENT_ID

