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
| Argument | Description |
|---|---|
NAME | Experiment name, positional. Default: your username. |
--name, -n | Experiment name, as a flag instead of NAME. |
--project, -p | Project name. Default: neuiot if you can use it, otherwise the first project you belong to. |
--devices, -d | Required. Device names, space- or comma-separated (-d d1 d2 or -d d1,d2). Duplicates are dropped. |
--realization, -r | Realization name. Default: realiot. |
--xdc, -x | XDC 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.

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.

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
exp undeploy: the inverseexp status: where each step stands