GenericPolling

Use this playbook as a sub-playbook to block execution of the master playbook until a remote action is complete. This playbook implements polling by continuously running the command in Step \#2 until the operation completes. The remote action should have the following structure: 1. Initiate the operation. 2. Poll to check if the operation completed. 3. (optional) Get the results of the operation. NOTE: This playbook should be run only when the playbook's context is using the "Private to sub-playbook" option.

Common Playbooks · 6 tasks · 9 inputs · 0 outputs

Inputs

  • Ids — List of IDs to poll
  • PollingCommandName — Name of the polling command to run
  • PollingCommandArgName — Argument name of the polling command.
  • Interval — Frequency that the polling command will run (minutes).
  • Timeout — Amount of time to poll before declaring a timeout and resuming the playbook (in minutes).
  • dt — DT filter for polling IDs. Polling will stop when no results are returned. Use single quotes, for example: WildFire.Report(val.Status!=='Success').SHA256.
  • AdditionalPollingCommandArgNames — Names of additional arguments for the polling command, for example: (arg1,arg2,...).
  • AdditionalPollingCommandArgValues — Values of the additional arguments for the polling command, for example: (value1,value2,...).
  • ExtractMode — Indicator Extraction mode for the command sequence. (In XSOAR 8 and above, for first run command set manually the RunPollingCommand task in the playbook, Advanced -> Indicator Extraction mode).

Flowchart

YES Start Start Schedule Polling Task - ScheduleGenericPolling Schedule Polling Task ScheduleGenericPolling Waiting for polling to complete (Automated Task) Waiting for polling to co... RunPollingCommand - RunPollingCommand RunPollingCommand RunPollingCommand Done Done Scheduled Task Failed - PrintErrorEntry Scheduled Task Failed PrintErrorEntry