confine.client

confw

Gateway scripts

list-nodes

A Python script using confine.client to create a list of the management addresses of the nodes in a CONFINE testbed group that match certain restrictions. For instance, to get the management addresses of nodes having direct interfaces with names starting with wlan in Community-Lab's Pangea group one could run:

Together with some parallel SSH client like PSSH, this can ease running maintenance tasks for non-superuser technicians. For instance, the following example provides similar results to the ConfineCatPlugin hack in Community-Lab, i.e. adding some /etc/hosts entries for nodes in certain islands (the sed invocation to append a :22 port number is a workaround for pssh bad handling of IPv6 addresses, see Debian bug #741537):