Skip to main content

IoT-Lab Aggregation tools

CI codecov

Tools that allow aggregating data results from many nodes at a time. It connects to several tcp connections and handle the received data.

IoT-LAB aggregation-tools, including all examples, code snippets and attached documentation is covered by the CeCILL v2.1 free software licence.

Serial aggregator

Aggregate all the serial links of an experiment and print it to stdout.

Usage

$ serial_aggregator [-i <exp_id>] [-l nodes_list|-l ...]
1395240359.168975;Aggregator started
1395240359.286712;m3-46; Type Enter to stop printing this help
1395240359.286853;m3-46;
1395240359.292523;m3-9;
1395240359.292675;m3-9;IoT-Lab Simple Demo program
1395240359.292820;m3-9;Type command
1395240359.293094;m3-9;    h:  print this help
1395240359.293241;m3-9;    t:  temperature measure
1395240359.293612;m3-9;    l:  luminosity measure
1395240359.293760;m3-9;    s:  send a radio packet
1395240359.294044;m3-9;
1395240359.294212;m3-9; Type Enter to stop printing this help
...

From your computer

Outside the SSH frontends, serial_aggregator reaches the nodes of every site of the experiment through the frontends: it starts one ssh -N -D SOCKS proxy per site (your IoT-LAB login, from iotlab-auth, and the SSH key of your IoT-LAB profile, which must work without a prompt), connects to the nodes through them, and stops them at the end. The nodes are then named <node>.<site>:

you@yourpc $ serial_aggregator -i <exp_id>
1795632001.112233;SOCKS proxy to grenoble on port 45227
1795632001.554433;SOCKS proxy to saclay on port 53819
1795632001.554500;Aggregator started
1795632003.120000;m3-6.grenoble;> version
1795632003.120100;m3-6.grenoble;2026.10
1795632005.330000;m3-5.saclay;> version

--socks <site>=<host>:<port> uses a SOCKS5 proxy you already have for that site (for example ssh -f -N -D 1080 <login>@grenoble.iot-lab.info) instead of starting one. On a frontend of the experiment, nothing changes: the nodes of that site, named without their site.

Sending messages

Standard input is parsed to allow sending messages to the nodes. It's read using 'readline' and so you get a shell-like feeling.

Parsing is done using the function extract_nodes_and_message(line) see the docstring for all allowed values.

Examples

''    -> does not send anything to anyone, allows 'blanking' lines

' '   -> sends   ' \n' to all nodes
'msg' -> sends 'msg\n' to all nodes

'm3,1-3+5;message'  -> sends 'message\n' to nodes 'm3-[1, 2, 3, 5]'
'm3-1;message'      -> sends 'message\n' to nodes 'm3-1'

# from your computer, nodes named <node>.<site>
'm3-1.grenoble;message' -> sends 'message\n' to 'm3-1.grenoble'
'm3,1-2.saclay;message' -> sends 'message\n' to 'm3-1.saclay', 'm3-2.saclay'
'm3-1;message'          -> sends 'message\n' to the 'm3-1' of every site

'csv;message;with;semicolons' -> sends 'csv;message;with;semicolons' to all
                                 nodes as 'csv;' is not a valid
                                 node identifier

Sniffer aggregator

Aggregate all the gateways sniffer into a pcap formatted file.

The gateways sniffer generate 'ZEP' encapsulated data: https://www.wireshark.org/docs/dfref/z/zep.html

ZEP packets are saved in a pcap file encapsulated as a Ethernet-IP-UDP packet send to port 17754 http://wiki.wireshark.org/IEEE_802.15.4.

Usage

From the ssh frontend

Basic usage from the ssh fronted

$ sniffer_aggregator [-i <exp_id>] [-l nodes_list|-l ...] <-o pcap_file>

# save current experiment output to a file
$ sniffer_aggregator -o radio_experiment.pcap
1420464895.805985;Aggregator started

From your computer

Run it on your computer, it reaches the nodes of every site through the frontends as the serial aggregator does (see "From your computer" above):

you@yourpc $ sniffer_aggregator -i <exp_id> -o - | wireshark -k -i -

Or run it on the frontend and pipe its output:

# Connect the output to your PC wireshark
you@yourpc $ ssh <user>@<site> 'sniffer_aggregator -o -' | wireshark -k -i -

Metadata

Release files for iotlabaggregator 2.3.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for iotlabaggregator 2.3.1
File Size Uploaded Provenance Actions
iotlabaggregator-2.3.1.tar.gz 33.7 kB Without provenance Details for iotlabaggregator-2.3.1.tar.gz

Release files / iotlabaggregator-2.3.1.tar.gz

Download URL iotlabaggregator-2.3.1.tar.gz
Size 33.7 kB
Tags Source
SHA-256 checksum
How to use checksums
1b473c3ce62f040a98b6f58513437ca8df5321d4746313f5f659ce479e808299
BLAKE2b-256 checksum
How to use checksums
007c767d9a0b861dd0b4b5d2813257111c49f4ebd9348b4f87baa600f6b20243
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.4

Security for iotlabaggregator 2.3.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

2.3.1 This release

1 release file No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page