r2lab-sidecar
To be written.
sidecar client¶
in the web folder of the r2lab-sidecar repo you will find a simple client that connects to the sidecar server and listens to the websocket
# open this file in your browser
open web/sidecar-client.htmlwith that tool one can
select another server to connect to
connect/disconnect
ask for a refresh of the status
see the resulting messages
addressing¶
for better firewall traversal, the sidecar server is running on port 443 on a dedicated IP address, r2lab-sidecar.inria.fr
devel notes¶
on r2lab.inria.fr, we have a conda environment r2lab-dev-314 (change name when
moving to future Pythons)
that is used to run the sidecar code in a debug/development mode
so to test before packaging:
cd r2lab-sidecar
# push on r2lab.inria.fr
make r2lab
# follow instructions on the remote
ssh root@r2lab.inria.fr
conda activate r2lab-dev-314
pip install -e /tmp/r2lab-dev-sidecar
r2lab-sidecar --debugdevel / local tools¶
see also the r2lab-python repository, and its examples folder, for a tool
animate.py that can send the sidecar server random events
JSON files¶
the sidecar server maintains 3 files in /var/lib/r2lab-sidecar
nodes.jsonphones.jsonpdus.json
as far as the content of each file, it is pretty straightforward, use the web client (sidecar-client.html) for details on the various structures