Skip to article frontmatterSkip to article content
Site not loading correctly?

This may be due to an incorrect BASE_URL configuration. See the MyST Documentation for reference.

Shell tools in the gateway

LOG IN
SELECT NODES
IMAGES
PHONES

Logging in the gateway

Once you have obtained a slice account on R2lab, you can reach the R2lab gateway using ssh

ssh your_slicename@faraday.inria.fr

If by any chance your public key is not at its standard location, add the -i option to the command line, with the path to it.

Listing commands

From your bash account on the gateway, you have a few very simple but handy tools at your disposal for the early steps of your experiment, like seeing the nodes status, turning them on or off, and loading images.

help

Addressing

From the gateway, you can use the following hostnames to refer to nodes:

fit08
refers to the control wired interface on node 8; the control interface is configured in all our images to start up automatically at boot-time so the nodes can be reached;
data08
refers to the data wired interface; this one is not automatically turned on, it is up to you to use it or not, you can use DHCP for that purpose;
reboot08
refers to the ethernet interface of the CMC device on the node, that allows for remote management of the motherboard (i.e. turning nodes on and off).

Here’s an example of how these names resolve. Beware that the IP address of the reboot interface might occasionally not be directly bound to the node index.

your_slicename@faraday:~$ host fit08
fit08 has address 192.168.3.8
your_slicename@faraday:~$ host data08
data08 has address 192.168.2.8
your_slicename@faraday:~$ host reboot08
reboot08 has address 192.168.1.8

Checking leases

In case you’re unsure about the current status of reservation, you can list reserved timeslots - known as leases - with

rleases

or check that you currently hold a reservation with

rleases --check

This is a poor man’s tool, as of course the scheduler will give you that same information in a much nicer way.

Note also that this is in fact equivalent to

rhubarbe leases

rhubarbe (see it on github) being the set of tools that help us run the testbed. Indeed many of the convenience functions starting with r are in fact aliases to a rhubarbe subcommand.

Switch off the testbed when you’re done

One very frequently used command, that requires that you have a valid lease - or at least that no lease is currently active - is the one that turns off the nodes when you are done:

all-off

which is an alias for either

rhubarbe bye

or simply

rbye

Please try to make sure to use it, especially when you have many nodes running.

In the next tab, SELECT NODES, we will see how we can focus on a specific set of nodes, and easily control them.