TroubleshootExecuteCommand

Executes a command in Cortex XSOAR in debug mode and pulls logs from the command execution.

python · Troubleshoot

Details

IDTroubleshootExecuteCommand
Languagepython
From Version5.0.0
Docker Imagedemisto/python3:3.12.13.10116658
Tagstroubleshoot

README

Executes a command in Cortex XSOAR in debug mode and pulls logs from the command execution.

Script Data


Name Description
Script Type python3
Tags troubleshoot
Cortex XSOAR Version 5.0.0

Used In


This script is used in the following playbooks and scripts.

  • Integration Troubleshooting

Inputs


Argument Name Description
command The command to run.
arguments The arguments of the command.
instance_name The instance name.

Outputs


Path Description Type
TroubleshootExecuteCommand.command The command executed. String
TroubleshootExecuteCommand.instance_name On which instance of the integration the command executed. String
TroubleshootExecuteCommand.Error The errors from the command. String
File.Name The full file name (including file extension). String
File.EntryID The ID for locating the file in the War Room. String
File.Size The size of the file in bytes. Number
File.MD5 The MD5 hash of the file. String
File.SHA1 The SHA1 hash of the file. String
File.SHA256 The SHA1 hash of the file. String
File.SHA512 The SHA512 hash of the file. String
File.SSDeep The ssdeep hash of the file (same as displayed in file entries). String
File.Extension The file extension, for example: ‘xls’. String
File.Type The file type, as determined by libmagic (same as displayed in the file entries). String
args:
- description: The command to run.
  name: command
  required: true
- description: The arguments of the command.
  name: arguments
- description: The instance name.
  name: instance_name
  required: true
comment: Executes a command in Cortex XSOAR in debug mode and pulls logs from the command execution.
commonfields:
  id: TroubleshootExecuteCommand
  version: -1
name: TroubleshootExecuteCommand
outputs:
- contextPath: TroubleshootExecuteCommand.command
  description: The command executed.
  type: String
- contextPath: TroubleshootExecuteCommand.instance_name
  description: On which instance of the integration the command executed.
  type: String
- contextPath: TroubleshootExecuteCommand.Error
  description: The errors from the command.
  type: String
- contextPath: File.Name
  description: The full file name (including file extension).
  type: String
- contextPath: File.EntryID
  description: The ID for locating the file in the War Room.
  type: String
- contextPath: File.Size
  description: The size of the file in bytes.
  type: Number
- contextPath: File.MD5
  description: The MD5 hash of the file.
  type: String
- contextPath: File.SHA1
  description: The SHA1 hash of the file.
  type: String
- contextPath: File.SHA256
  description: The SHA1 hash of the file.
  type: String
- contextPath: File.SHA512
  description: The SHA512 hash of the file.
  type: String
- contextPath: File.SSDeep
  description: The ssdeep hash of the file (same as displayed in file entries).
  type: String
- contextPath: File.Extension
  description: "The file extension, for example: 'xls'."
  type: String
- contextPath: File.Type
  description: The file type, as determined by libmagic (same as displayed in the file entries).
  type: String
script: '-'
subtype: python3
tags:
- troubleshoot
timeout: '0'
type: python
dockerimage: demisto/python3:3.12.13.10116658
fromversion: 5.0.0
tests:
- No tests (auto formatted)