Skip to main content

mrg-iot exp

The exp group owns the whole experiment lifecycle in two verbs: deploy brings an experiment up, and undeploy takes it down. list and status show what you have.

mrg-iot exp --help showing the list, status, deploy, and undeploy subcommands

The lifecycle​

exp deploy does everything in one command: it creates the experiment and its network model, allocates the hardware, brings it online, creates an XDC, and attaches the two. exp status shows the deployment and where each of those steps stands. exp undeploy is the inverse: it releases the hardware and, unless you ask to keep them, deletes the experiment and the XDC as well.

Naming the experiment​

The exp verbs take the experiment name as a positional NAME or as --name/-n; every other group takes --experiment/-e. Either way it defaults to your username.

--devices is greedy, so give NAME before it: exp deploy myexp -d d1 d2, not exp deploy -d d1 d2 myexp.

Defaults​

ArgumentDefault
--project, -pneuiot if you can use it, otherwise the first project you belong to.
NAME / --name, -nYour username.
--devices, -dNo default. Required by exp deploy.
--xdc, -x<experiment>xdc
--realization, -rrealiot
Naming rules

Names you choose (experiment, realization, XDC) must match ^[a-z][a-z0-9]*$: a lowercase letter first, then lowercase letters and digits only, max 32 characters. Device names like s-echodot-1 are exempt.

Commands​

CommandWhat it does
exp listList deployments.
exp statusShow one deployment and where each of its steps stands.
exp deployDeploy devices as an experiment, up to an attached XDC.
exp undeployRelease the hardware, and delete the experiment and XDC.

Back to the full walkthrough: Using mrg-iot.