weeve Documentation
Search…
⌃K

Installing the weeve agent

A step-by-step guide to installing the weeve agent.
The weeve Agent is the edge software that is responsible for executing the deployed Edge Applications. It can be installed on edge hardware like gateways, industrial computers or smart machines and turns them into weeve Edge—Nodes, a manageable asset in the weeve Manager. The minimal requirements for hardware and operating system to run the weeve agent are the following and include a working connection to the internet.
Before starting with the installation process it is recommended to get to know the hardware and software requirements for the weeve Agent.

Quick-start

Registering a new node

Log into your account in the weeve Manager web UI and navigate to Nodes. Then click on "+ Register Node" and input all the necessary information. After clicking "Submit" you will be shown the ID of the newly registered node and offered the option to download the configuration file. If you want to create the file manually fill the following json schema:
{
"Password": "",
"Broker": "tls://mapi-prod.weeve.network:8883",
"NodeId": "<NodeID shown on the screen>",
"NodeName": "<name you chose for the node>"
}

Pre-installation process tweaks for RedHat based distributions

  • binary and dependencies should go in this specific path /usr/local/bin
  • enable docker on start-up systemctl enable docker
  • Following commands are to add rule to SELinux, allowing the binary to be executed: sudo ausearch -c '(ux_amd64)' --raw | audit2allow -M my-uxamd64 sudo semodule -X 300 -i my-uxamd64.pp
  • Following command is to change permissions of the specific directory: /sbin/restorecon -v /usr/local/bin/<name-of-the-binary>

Installing & uninstalling weeve agent

Curl and run the installer:
curl -sO http://weeve-agent.s3.amazonaws.com/weeve-agent-installer.sh
sh weeve-agent-installer.sh --configpath=<path-to-config-file> --release=prod
Answer the questions in the following prompt. Voila, the weeve agent is installed and you can check it's status with systemctl status weeve-agent.service.
To remove the agent installation execute this one-liner:
curl -sO http://weeve-agent.s3.amazonaws.com/weeve-agent-uninstaller.sh && sh weeve-agent-uninstaller.sh

weeve installer CLI arguments

The installer script can take the following optional parameters:
Parameter
Required
Description
Possible Values
Default
configpath
true
Path to the JSON file with node configuration
release
true
Name of platform the node should be registered with
prod, dev
test
false
If specified, build the agent from local sources
false
broker
false
URL of the MQTT broker to connect
loglevel
false
Level of log verbosity
debug, info, warning, error
info
heartbeat
false
Time period between heartbeat messages (sec)
10