Running Scripts on Host Groups with more than 30 Seconds Timeout? #249
Replies: 1 comment
-
There are two timeout values--one for the command, and one for the script. Try this: $runScriptParams = @{
Command = 'runscript'
Arguments = '-CloudFile="' + $CloudScript + '" -CommandLine="" -Timeout="550"'
Timeout = 600
BatchID = $Batch.batch_id
} You'll notice that I put If you have a script that could potentially run for as long as five minutes, I recommend re-writing it so that it's fully self-contained and can be launched as a secondary process. That way Real-time Response can be used to start the script, return that the script was started, and you can collect results after the fact (or send them to a third-party destination for review, like a log collector). You could also use my find_file script instead, which seems to be serving the same purpose. It will send results to Humio if you configure it to do so, or create a Json file in |
Beta Was this translation helpful? Give feedback.
-
Description of your question
I'm trying to deploy a potentially long running script against a group of hosts using PSFalcon
To Reproduce
The cloudfile reffered to is just this powershell command,
Expected behavior
I expected that the script would only cutoff after 600 seconds, but a majority of responses indicate 30s.
Environment (please complete the following information):
The Question is:
Am i doing this correctly? How can i make it work?
Beta Was this translation helpful? Give feedback.
All reactions