At this point you need to pick a free tap number and a [free subnet](https://www.iot-lab.info/legacy/tutorials/understand-ipv6-subnetting-on-the-fit-iot-lab-testbed/index.html)
Make sure you've run the one time setup for your environment (e.g one time setup for https://labs.iot-lab.info)
</div>
%% Cell type:markdown id:f9f007ba tags:
## Monitoring options
Experimenters rely on monitoring to get insight on their deployments.
Fit and G5k provide their own job monitoring infrastructure. An thus an experimenter have different choices:
- Get metrics from the infrastructure (G5K REST API / FIT oml files). This is especially interesting for environnemental metrics (power ...)
- Deploy their own monitoring tool
%% Cell type:markdown id:f2541874 tags:
### On Grid'5000
There are also different options to interact with the REST API (see https://www.grid5000.fr/w/Grid5000:Software#Experiment_management_tools) and of course `curl`. REST API specification is available here: https://api.grid5000.fr/doc/3.0/
From python you can use [`python-grid5000`](https://pypi.org/project/python-grid5000/).
%% Cell type:code id:064c1ed1 tags:
``` python
fromgrid5000importGrid5000
frompathlibimportPath
conf=Path.home()/".python-grid5000.yaml"
gk=Grid5000.from_yaml(conf)
```
%% Cell type:code id:508cc5e1 tags:
``` python
# get the list of the available metrics for a given cluster
We need two kind of accesses to the Grid'5000 platform:
- REST API Access to interact with Grid'5000 exposed resources (jobs, nodes, networks, firewall ....)
- SSH Access to control the remote machine once acquired
---
#### REST API Access
The REST API access is performed using HTTP request using BasicAuth Authentication mecanism through the [`python-grid5000`](https://pypi.org/project/python-grid5000/) wrapper.
This requires to store the username/password in a file located in your home directory.
Note that you don't own the corresponding private key, so that's probably better to remove it from <a href="https://api.grid5000.fr/stable/users/">your Grid'5000 account</a> as soon as possible.