Replies: 6 comments 1 reply
|
Good ask, and worth splitting into its two halves, because one already exists: Ad-hoc one-time runs exist today. "Run on onboarding" does not exist yet — and that's the actual feature here. There's currently no trigger point that fires a script exactly once when a device first enrolls. The execution primitive is already shared ( Your AnyDesk example ("runs once and reports the id back") is a two-parter, and the second half is tracked separately: #2698 covers letting a script write values (like that AnyDesk id) back into device custom fields, and most of its plumbing exists too. The pair together gives you the full Tactical-style workflow. Keeping this open as the tracker for the onboarding trigger. |
|
Different ask than the last round — and it turned out to be worth digging into, because it's not just a missing UI column. Manual runs already show what you're describing: script execution history and the device history tab both surface stdout, because those paths write a Automation-triggered script actions don't — and the output is actually being dropped, not just hidden. The automation runtime queues the command with a synthetic execution id ( Filed as #3162 with the full file:line trail — the fix is to persist the real stdout for automation runs and render it in the run-history expanded panel, which lands exactly the inline latest-run output view you're pointing at. It's distinct from both the onboarding trigger tracked here and the custom-field feature in #2698. Status: gap confirmed and tracked in #3162; this discussion stays the tracker for the run-on-onboarding feature. |
|
There is also no way to stop the script from the interface when it is running |
|
Both of those are real, and neither is the onboarding feature this thread tracks — so I've split them out rather than let them sit here. The automation that never finishes is a known regression, already filed as #3445. Your screenshot matches it exactly: manual runs of the same script complete in seconds, the automation-triggered one hangs. The cause is that at v0.103.0 the automation runtime never created a Being straight about status: the mechanism is understood, the root cause of why the automation path misses the result is not yet. Two earlier explanations on #3445 were wrong and have been corrected in-thread. Follow #3445 for the fix. No way to stop a running script is a genuine gap, and it was not filed. Now #3525. I checked before answering — backup jobs, restores and contracts all have a cancel endpoint, and scripts have none on any surface. So today the only exits from a dispatched script are the agent returning a result or the deadline expiring, which is the 65 minutes you are watching. There is deliberately no button rather than a broken one. Worth flagging one thing from that issue, because it affects what you get first: cancel is not really a UI task. Stopping the tracking without also killing the process on the endpoint gives you a button that reports something untrue. The agent-side kill is the part that needs checking, and it decides whether this is small or medium. This discussion stays the tracker for run-on-onboarding, which is still the original ask and still not built. #2698 covers the write-values-back half of your AnyDesk workflow. Thanks for keeping at this one — the cancel gap only surfaced because you mentioned it in passing. |


Uh oh!
There was an error while loading. Please reload this page.
At the moment we are using another RMM and we use Run on onboarding a lot
What it does is when a client gets onboarded into the rmm it runs a script one time (in our instance a custom anydesk client and reports the id back)
All reactions