Basic Installation¶
This section covers some key steps to get you started.
Prerequisites¶
There are some software components that need to be installed prior to starting.
- Install the prerequisite packages for the
easysnmppython pip package. Instructions can be found here. pattooonly runs on Python 3.6 or higher
Let’s install the software.
Installation¶
Follow these steps.
Install
giton your system.Select and create the parent directory in which you want to install
pattoo-agent-opcua.$ mkdir -p /installation/parent/directory $ cd /installation/parent/directoryClone the repository to the parent directory using the
git clonecommand. You can also choose to downloading and unzip the file in the parent directory. The repository can be found at: https://github.com/PalisadoesFoundation/pattoo-agent-opcua$ cd /installation/parent/directory $ git clone https://github.com/PalisadoesFoundation/pattoo-agent-opcua.gitEnter the
/installation/parent/directory/pattoo-agent-opcuadirectory with thepattoo-agent-opcuafiles.Install the required packages using the
pip_requirementsdocument in thepattoo-agent-opcuaroot directory$ pip3 install --user --requirement pip_requirements.txt
Use the Configuration Guide to create a working configuration.
Follow the configuration steps for each daemon as explained in the Agent Documentation.
Configuring systemd Daemons¶
You can also setup all the pattoo-agent-opcua agents as system daemons by executing the setup/systemd/bin/install_systemd.py script.
You have to specify a --config_dir defining the configuration file directory.
Note The daemons are not enabled or started by default. You will have to do this separately using the systemctl command after running the script.
$ sudo setup/systemd/bin/install_systemd.py --config_dir ~/GitHub/pattoo-agent-opcua/etc
SUCCESS! You are now able to start/stop and enable/disable the following systemd services:
pattoo_agent_os_spoked.service
pattoo_agent_snmpd.service
pattoo_agent_os_autonomousd.service
pattoo_agent_os_hubd.service
$