# 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:

./siemens-s7 --help

# Version

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

./siemens-s7 --version

# Default

The basic command for running your agent is as follows:

./siemens-s7 --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:

./siemens-s7 --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:

./siemens-s7 --config-file /path/to/config.yml
Last Updated: 1/14/2022, 12:53:58 PM