Skip to main content

mrg-iot exp deploy

Deploy devices as an experiment, up to an attached XDC.

Usage​

mrg-iot exp deploy [NAME] --devices DEVICE [DEVICE ...] [--project P] [--realization R] [--xdc X]

Arguments​

ArgumentDescription
NAMEExperiment name, positional. Default: your username.
--name, -nExperiment name, as a flag instead of NAME.
--project, -pProject name. Default: neuiot if you can use it, otherwise the first project you belong to.
--devices, -dRequired. Device names, space- or comma-separated (-d d1 d2 or -d d1,d2). Duplicates are dropped.
--realization, -rRealization name. Default: realiot.
--xdc, -xXDC name. Default: <experiment>xdc.

Details​

One command does the whole sequence: it creates the experiment and its network model from --devices, realizes it (allocates the hardware), materializes it (brings the hardware online), creates an XDC, and attaches the two. It waits up to 15 minutes for all of that to finish, and reports success only once the XDC is attached.

Give NAME before --devices, since --devices takes every word after it.

mrg-iot exp deploy myexp reporting the project, experiment, realization, and XDC it deployed

If it fails​

A failed deploy exits 1 and says why, for example a device name that can't be placed. If there was no deployment under that name before, it removes what it created. That includes the experiment, unless the experiment already existed.

Deploying over an existing deployment re-runs it. If that fails, the old deployment is already gone, so the command does not roll back; instead it prints the exp undeploy ... --keep-experiment command that clears what is left.

mrg-iot exp deploy --help listing NAME, --project, --name, --devices, --realization, and --xdc

Examples​

mrg-iot exp deploy --devices s-echodot-1 # everything defaulted
mrg-iot exp deploy myexp --devices s-echodot-1 s-googlenest-1
mrg-iot exp deploy myexp -p neuiot -d s-echodot-1,s-googlenest-1

See also​