Fleet Operations
A fleet operation runs the same steps on many devices of a project, stage by stage, and records the progress of each device. Use it for work that happens once, such as collecting diagnostics with a device command or changing a property on a selection of devices. For configuration that devices should keep, such as an update channel, use device profiles and roll out their revisions with a profile rollout instead.
Run a Fleet Operation walks through an example, and the Operations Reference lists all fields.
Targets
An operation selects its devices with group conditions, an expression over their properties, and optionally a list of device IDs. Each selected device is a target and runs the operation’s steps once.
A snapshot operation selects its targets when it starts. A dynamic operation also selects devices that start to match later, until you close it. A device that stops matching keeps its target, so that a change of its properties or groups does not abandon work in progress.
A device for which the expression produces an error, for example because it has not reported a property that the expression reads, is not selected. The operation records a selection error for it instead, so that you can tell an incomplete selection from a device that does not match.
Stages
Stages release the targets gradually, like the stages of a profile rollout. Each stage selects targets by group conditions and a percentage, can spread its targets over time, and is released once a guard over the targets of earlier stages passes. A target counts as completed once it succeeded and as failed once it failed or timed out.
Steps
Every target runs the same ordered steps:
- Property steps set, patch, or remove the device’s own value of a property. Nexigon Hub carries them out without the device.
- A wait step waits until the device’s properties satisfy an expression, for example until the device reports that it applied a change.
- A command step asks the device to run a command. The device must run Nexigon Agent with commands and operation polling enabled.
A step can have a condition, so that it runs only on devices that need it. An optional deadline limits the time that each target has to finish after its release, for example while its device is offline.
Lifecycle
A new operation is a draft. Starting it selects its targets and releases the first stage. While it runs, you can release the next stage early, halt it, and resume it. A halted operation selects no devices, releases no stages, and hands out no work, and its spreads, soak times, timeouts, and deadlines do not advance.
The operation finishes once it selects no further targets, all of its stages are released, and all targets have finished. It is then completed, or failed if a target failed or timed out or selection errors remain. Cancelling an operation also cancels its unfinished targets.