/cmr/device/run-script

当前显示英文原文,切换到「中文」可查看译文。

run-script

Runs a script on the selected devices.


cmr/device/run-script

Package: cmr Type: Command

Runs a script on the selected devices.

ArgumentTypeDescription
scriptalt { script: string }The script to run on the selected devices.
labelsobjectSelect the devices to run the script on using labels. Supports + and - signs as AND and AND NOT operators, respectively; if no sign is provided, the OR operator is used.
orderobjectExecution order (by labels).
strategyenum ()How devices are processed: parallel or sequential.
fail-policyenum ()Behaviour if a device fails: continue, stop, or continue-order.
timeouttimeScript execution timeout.
Read-only ArgumentTypeDescription
deviceenumDevice the script is running on.
statusstringExecution status.
outputstringScript output.