Skip to main content

TroubleshootGetCommandandArgs

This Script is part of the Troubleshoot Pack.#

Gets a command with its arguments, validates the command and the arguments, and then parses it to use in the Cortex XSOAR context.

Script Data#


NameDescription
Script Typepython3
Tagstroubleshoot
Cortex XSOAR Version5.0.0

Used In#


This script is used in the following playbooks and scripts.

  • Integration Troubleshooting

Inputs#


Argument NameDescription
instance_nameInstance on which to check the command.
command_lineCommand line to process.

Outputs#


PathDescriptionType
CommandArgs.instance_nameThe instance name.String
CommandArgs.commandThe command.String
CommandArgs.ArgumentsThe arguments in the command.String
CommandArgs.Arguments.usingThe instance name. All other arguments are dynamically provided.String