Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Current »

This script ensures that MQTT, eACM, and Priority Forward are started or restarted

Contents of Package

This scripts is composed of 2 python files:

  • ApiClient.py

  • startScript.py

ApiClient.py can be used to interface with the Edge Node’s API but will do nothing if run directly.

startScript.py must be run in the same folder with ApiClient.

Usage

This script will connect to specified devices and start or restart the core apps MQTT, eACM, and Priority Forward

python startScript.py

Or, if on a system with both python 2 and 3 installed:

python3 startScript.py

It will create a subfolder “Start” when first run. If a csv list of devices is placed in that folder, along with the MQTT or eACM folders containing binary updates (including a bin and lib folder), the next time the script is run it will apply those binaries to the listed devices.

CSV Formatting

The CSV file’s top row must include the following headers:

Site Name,Edge Device IP,eACM username,eACM password

Each column's meaning is detailed below

Site Name

A name for the site, primarily used for logging

Edge Device IP

The IP address or url the edge device; this is the IP we will attempt to contact. Unless otherwise specified, it will be assumped an IP or url is of the format, Eg “192.168.0.10” will be read as “http://192.168.0.10:8080”. If a different port is expected, or the node is configured for https, that must be included, eg “https://192.168.0.10:8181”. Each Edge Device IP must be unique within the CSV.

eACM username

The app manager username

eACM password

The app manager password

Output

The script will log the progresss of starting/restarting apps on the end device(s)

Logs

This script will generate its logs in startScript.log. It can be checked for further details if an error appears in the Complete report.

  • No labels