Schedule Task and Poll
Schedule Task and Poll Pack.#
This Playbook is part of theSupported versions
Supported Cortex XSOAR versions: 6.0.0 and later.
This playbook will schedule a specified command and monitor for completion by looking for output in context. Make the playbook context shared globally if you have a command that returns to Context automatically, and you have a specific key to monitor. The key monitored must be a single field value and not an array.
#
DependenciesThis playbook uses the following sub-playbooks, integrations, and scripts.
#
Sub-playbooks- Context Polling - Generic - Single Output
- Context Polling - Generic - Array Output
#
IntegrationsThis playbook does not use any integrations.
#
Scripts- ScheduleCommand
#
CommandsThis playbook does not use any commands.
#
Playbook InputsName | Description | Default Value | Required |
---|---|---|---|
Command | Command to Schedule | !Print value="The command has executed" | Required |
Cron | In the format * * * * * Min Hour Day(Month) Month Day(Week) i.e. 1 9 * * * 9:01 AM - (server time) run !GetTime to see server time | Required | |
Number of Times to Run | How many times to run before stopping (based on cron as well) | Required | |
OutputContextValue | Provide the Key of the value that will be output from the command to poll for completion. If specifying a context value of a command that already outputs to Context set context for sub-playbook to be shared globally. | Optional | |
FrequencyToPoll | Frequency to run polling command to check context (in minutes) | 1 | Required |
RegExVal | The regex to check the field for. By default the regex contains .+, which matches anything other than None. | .+ | Required |
#
Playbook OutputsPath | Description | Type |
---|---|---|
SchedulingTask.schedResults | Results from command executed | unknown |