Skip to main content


This Script is part of the Common Scripts Pack.#

Allows you to run commands against a local Docker container. A command such as wc with word count, or other types of commands that you want on the docker container.

We recommend for tools that you want to use that are not part of the default Docker container, to cope this Automation script and then create a customer docker container with /docker_image_create with a custom docker container to add any command level tool to Cortex XSOAR and output the results directly to the context.

Script Data#

Script Typepython


Argument NameDescription
cmdThe command to enter.
sysargsThe sysargs to enter.


CommandResults.CommandContains the command line tool name and arguments that were run.Unknown
CommandResults.ResultsReturns the results as a single string of the results. The results of the command will need to be parsed into the preferred format. Use commands such as ExtractRegex or create your own follow on automation script that will parse the results into your preferred format.Unknown