Passer au contenu
  • Home
  • Documentation
  • Contact
  • Home
  • Documentation
  • Contact

1. Introduction

  • Overview of Aralez
  • System Requirements (Windows)
  • System Requirements (Linux)

2. Getting Started

  • Build Instructions (Windows)
  • Build Instructions (Linux)
  • Usage (Windows)
  • Usage (Linux)

3. Core Functionality

  • Supported Data Types
  • Tools Overview

4. Configuration and Customization

  • Configuration Structure
  • Managing Tasks and Priorities
  • Configuring Encryption and Security Options

5. Advanced Usage

  • Optimizing Performance

6. Appendix

  • License
View Categories

Usage (Linux)

his section provides a detailed guide on how to use Aralez, including available options, commands, and example workflows to maximize its utility.

Basic Command #

The tool can be executed with the following syntax:

aralez [OPTIONS]

The OPTIONS parameter allows you to customize the behavior of the tool, such as enabling debug mode, displaying configuration details, or modifying the embedded configuration.

Important: Aralez should be executed by root on Linux.

Options #
--debug #

Description: Activates debug mode to provide detailed logs and verbose output during execution. This option is useful for troubleshooting and monitoring the internal workings of the tool.

Example Usage:

aralez --debug

Behavior: Outputs additional runtime information, including executed tasks, configuration details, and potential issues on the console.

--show_config #

Description: Displays the current embedded configuration file in YAML format without executing any tasks.

Example Usage:

aralez --show_config

Behavior: Loads the embedded configuration and prints it to the console for review or debugging.

--change_config #

Structure: –change_config <CONFIG_FILE> <OUTPUT_FILE>

Description: Updates the embedded configuration in the executable using CONFIG_FILE and saves the updated version to OUTPUT_FILE.

Important: If the new config is not valid, an error will be raised and the config won’t be updated.

Required Parameters:

  • CONFIG_FILE: Path to the new configuration file (in YAML format).

Example Usage:

aralez --change_config new_config.yml new_aralez.exe

Behavior: Creates a new_aralez.exe binary with the updated configuration embedded, leaving the original executable untouched.

--check_config #

Description: Validates the current configuration file for correctness and potential errors.

Example Usage:

aralez --check_config

Behavior: Loads and parses the configuration file, checking for syntax or logical errors. Prints the validation result to the console.

Workflows #

Running a Data Collection Task #

Scenario: You want to collect system and file data with the default configuration.

Steps:

  • Ensure the configuration is correctly set up. Display the config of Aralez and check the content.
aralez --show_config
  • Check the config before executing Aralez
aralez --check_config
  • Run Aralez without additional flags:
aralez

Output:

  • Collected data is saved in the directory specified in the configuration file.
  • The directory is compressed into a ZIP archive for convenience.
Updating and Validating Configuration #

Scenario: You need to modify the configuration for a specific use case.

Steps:

  • Edit or create a new custom_config.yml file.
  • Embed the new configuration into a custom executable:
aralez --change_config custom_config.yml custom_aralez.exe

If the configuration file is valid, custom_aralez.exe will be created.

Output:

  • If the configuration file is valid, custom_aralez.exe will be created with the updated configuration.
Debugging Task Execution #

Scenario: You encounter unexpected behavior during a task and want detailed logs.

Steps:

  • Run the tool in debug mode:
aralez --debug

Output:

  • Detailed information about task progression, including configuration parsing, data collection, and errors are displayed to the console.

Table of Contents
  • Basic Command
    • Options
      • --debug
      • --show_config
      • --change_config
      • --check_config
  • Workflows
    • Running a Data Collection Task
    • Updating and Validating Configuration
    • Debugging Task Execution

Copyright © 2024 - Areg Baghinyan