# Executing this version

Check the following examples for executing your agent.

# Input parameters

You can obtain a complete list of the available input parameters by executing:

./elco-edgebox --help

# Version

You can easily check the version, the target operating system, architecture, and extra information about this agent by executing:

./elco-edgebox --version

# Default

The basic command for running your agent is as follows:

./elco-edgebox --id 2 \
  --gateway 127.0.0.1:9090 \
  --token 44049908-de2d-4811-add7-0608b9f18538

This command will set your agent as follows:

  • It will identify the agent with id 2 and token 44049908-de2d-4811-add7-0608b9f18538 when connecting to the IoTHub
  • It will connect the agent with the IoTHub Gateway module running at the address 127.0.0.1 port 9090
  • It will disable the internal debug mode by logging only info, warnings, and error messages

# Enable debug

For enabling the internal debug mode and log also debug messages you can execute your agent as follows:

./elco-edgebox --id 2 \
  --gateway 127.0.0.1:9090 \
  --token 44049908-de2d-4811-add7-0608b9f18538 \
  --debug true

# Config file

You can also specify a YAML file with your input settings.

id: 2
token: 44049908-de2d-4811-add7-0608b9f18538
gateway: 127.0.0.1:9090
debug: true

Then, you can input this configuration file into your agent as follows:

./elco-edgebox --config-file /path/to/config.yml
Last Updated: 1/14/2022, 2:07:20 PM