Getting Started

Minimum System Requirements

The following are the minimum system requirements to run EII:

System Requirement

Details

Processor

8th generation Intel® CoreTM processor onwards with Intel® HD Graphics or Intel® Xeon® processor

RAM

Minimum 16 GB

Hard drive

Minimum 128 GB and Recommended 256 GB

Operating system Test

Ubuntu 20.04

Note

  • To use EII, ensure that you are connected to the internet.

  • The recommended RAM capacity for the Video Analytics pipeline is 16 GB. The recommended RAM for the Time Series Analytics pipeline is 4 GB with Intel® Atom processors.

  • EII is validated on Ubuntu 20.04. You can install EII stack on other Linux distributions with support for docker-ce and docker-compose tools.

Install Edge Insights for Industrial

This section provides information for the following:

  1. Prepare your target system.

  2. Copy the EII package.

  3. Complete the installation steps.

Note

  • During the installation, you will be prompted to enter your product key. This key is in the email that you received from the Intel® Registration Center. Contact the Support Forum if you do not have this email message.

  • Be aware that screenshots may show a package version number that is

different from the current release. For information on the current release, see the Release Notes.

Step 1: Prepare the Target System

Ensure that the target system has a fresh installation of Ubuntu* Linux. The Ubuntu* Linux version should correspond to the version of EII that you downloaded.

If you need help with installing Ubuntu* Linux, follow these steps:

  1. Download Ubuntu* Linux* Desktop ISO file to your developer workstation.

  2. Use an imaging application to create a bootable flash drive.

  3. Turn off the target system, insert the USB flash drive, and power on the system.

  4. If the target system doesn’t boot from the USB flash drive, change the boot priority in the system BIOS.

  5. Follow the prompts to install Ubuntu* Linux with the default configurations. For detailed instructions, see the Ubuntu guide.

  6. Power down your target system and remove the USB drive.

  7. Power up the target system. You will see Ubuntu* Linux is successfully installed.

Step 2: Download and Copy the Edge Insights for Industrial .zip File to the Target System

In this step, you download the EII package and copy EII to your target system.

  1. Download the Edge Insights for Industrial package.

  2. Copy edge_insights_industrial.zip from the developer workstation to the Home directory on your target system. You can use a USB flash drive to copy the file. The icon looks like this:

    ../_images/GUID-B0D1AFD9-8679-4614-A3CB-1FCBF04FA87A-low.png

Step 3: Extract the Edge Insights for Industrial Software

In this step you extract the edge_insights_industrial.zip file. You need to be on the target system to complete the following steps:

  1. Ensure that you have a working internet connection.

  2. Open a new terminal.

  3. Extract the package:

    unzip edge_insights_industrial.zip
    

    Note

    If you download the file more than once, each download beyond the first is appended by a number.

    After extracting the package, you can view the following files:

    ../_images/GUID-A88FA8C0-8733-46D7-9CEA-6A9023C32493-low.png
  4. (Optional) Use the link in the readme file to open this Get Started Guide on the target system for an easy way to copy and paste commands.

Step 4: Configure your Installation

The config_install.yml contains information about the modules to install.You can modify this file and configure the installation behavior of the components in your target system.

Note

  • This is step is mandatory for EII installation.

  • Ensure that you update the etcd root_password, influxdb_username, influxdb_password, minio_access_key and minio_secret_key as this is required for the EII installation.

  1. Based on your requirements, modify the config_install.yml file. For more information, refer to the following table:

Key

Value and Description

dev_mode

This key is used to set the installation mode. You can set the key value as follows:

  • true: This value enables the Production mode, which is the default mode. In this mode, security and encryption are enabled. This mode is commonly used for deployment.

  • false: This value enables the Development mode. In this mode, security and encryption are disabled. This mode is commonly used during evaluation and development as it eases the integration and testing of User Defined Applications.

remove_previous_eii

Set this key value as true to remove any existing containers of EII from the previous installation.

etcd root_password

This key’s value updates the etcdroot password credential.

influxdb_username

If the downloaded edgesoftware_configuration.xml file contains the DataStore module, then you must set the username credential value. Do not use the following special characters in the influxdb_username "~:'+[/@^{%(-"*|,&<`}._=}!>;?#$)\"

influxdb_password

If the downloaded edgesoftware_configuration.xml file contains the DataStore module, then you must set the password credential value. Do not use the following special characters in the influxdb_password "~:'+[/@^{%(-"*|,&<`}._=}!>;?#$)\"

minio_access_key

If the downloaded edgesoftware_configuration.xml file contains the DataStore module, then you must set the value for the access key credential. Note that the minio_access_key length must be a minimum of 8 characters.

minio_secret_key

If the downloaded edgesoftware_configuration.xml file contains the DataStore module, then you must set the value for the secret key credential. Note that the minio_secret_key length must be a minimum of 8 characters.

  1. Based on your requirement, configure EII in any of the following mode:

    • Development mode (DEV mode)—this mode eases the development phase for System Integrators (SI).

    • Production mode (PROD mode)—this mode allows you to perform production programming tasks.

    • Profiling mode—this mode allows you to collect the performance statistics in EII.

To configure EII, you can customize the working environment variables in the .env file. The .env file is in the [WORK_DIR]/$HOME/edge_insights_industrial/Edge_Insights_for_Industrial_<version>/IEdgeInsights/build folder.

Step 5: Install the Edge Insights for Industrial Software

Note

  • If you are using a proxy server, then ensure that the proxy settings are configured correctly. The edgesoftware tool uses the proxy settings to download and install the modules.

  • The software installation can take 1 to 3 hours depending on the package you chose. The completion time depends on your target system configuration and the speed of the Internet connection.

  • If you encounter any Docker* pull-related issues during the installation process, refer to the Troubleshooting section.

You will now run a script to download components and install Edge Insights for Industrial on your target system. Complete the following:

  1. Run the following commands:

    cd edge_insights_industrial/
    chmod 775 edgesoftware
    ./edgesoftware install
    

Note

  • For more details about edgesoftware refer to the Introduction to the edgesoftware CLI section.

  • If ./edgesoftware install command failures happens because of not being able to pull the container image, please retry by re-running the command again.

  • Please perform following steps for “Universal Wellpad Conrtoller” Usecase:
    1. Go to the [WORK_DIR]/edge_insights_industrial/Edge_Insights_for_Industrial_<version>/IEdgeInsights/build folder and run sudo ./pre_requisites.sh on non-proxy environment machines; if the machine is in a proxy environment, run the command below:

    sudo ./pre_requisites.sh --proxy=<proxy-address>:<port-number>
    
    1. For more details regarding use case selection, please refer Universal Wellpad Conrtoller section.

  1. At the command prompt, enter the Product Key.

    ../_images/GUID-5C11C087-C987-439F-804F-ED78A80774D7-low.png

Note

See the Edge Insights for Industrial-based Reference Implementation (RI) tutorial requirements in the following table.

S.No

RI Tutorial

Applicable Use Case

Requirement

1

Defect Detection Demo

Video Analytics or Video Analytics and Time series

Download the installer package through the Download Recommended Configuration option by choosing one of the use cases (see Applicable Use Case column) in the Edge Insights for Industrial package.

Based on components selected and system configuration, you might be prompted for additional actions if you have not configured the config_install.yml file correctly.

When the installation is complete, you see the Installation of package complete message and the installation status for each module. Refer to the following screenshot:

../_images/GUID-938FA8AD-9D93-43D5-8439-7383DCC61D5D-low.png

Note

  • For Video Analytics and Time Series or Video Analytics or Time Series use cases, the demo does not start automatically. Do the following steps to see the demonstration:

  • Launch Grafana to see the video and time series visualization. For details, refer to Edge Insights Visualizer Readme from $HOME/edge_insights_industrial/Edge_Insights_for_Industrial_<version>/IEdgeInsights/Visualizer/README_EII.md.

To confirm your installation was successful and for a quick look at how it works, use the Introduction to the Command Line Interface.

Manually Install the Manageability Module

The Manageability module offers over-the-air system updates and management through a cloud-based management front end. This module requires an account with a cloud services provider.

The Manageability is downloaded by default, but not auto installed. To manually install the Manageability module:

  1. Go to edge_insights_industrial/Edge_Insights_for_Industrial_<version>/manageability/

    where <version> indicates the downloaded version of Edge Insights for Industrial.

  2. Refer to steps for the manual installation of the Manageability component in README.md.

Troubleshooting

This section provides information about troubleshooting and resolving installation-related issues.

  • Ensure that you have an active internet connection during the full installation. If you lose Internet connectivity at any time, the installation might fail.

  • If the EII installer component fails to install after running the ./edgesoftware install command, then do the following:

  1. Check the list of the running containers using the following command:

    docker ps
    
  2. Check the logs of the failing containers to find the reason for the issue.

Note

Services such as DataStore and Visualizer will fail, if the port is already used by other processes on the host machine as EII uses docker host network. Ensure to free up that port and rerun the ./edgesoftware install command or do the following:

  1. Go to edge_insights_industrial/Edge_Insights_for_Industrial_<version>/IEdgeInsights/build

    where <version> indicates the downloaded version of Edge Insights for Industrial.

  2. Run the following command to relaunch services:

    sudo sg docker -c docker-compose up -d
    

Restart Mode

The following services may be in restart mode after successful installation. Refer to the respective README.md files to troubleshoot, where <version> indicates the downloaded version of Edge Insights for Industrial:

  • FactoryControlApp: edge_insights_industrial/Edge_Insights_for_Industrial_<version>/IEdgeInsights/FactoryControlApp/README.md

Docker Image Pull Issue

This issue cccurs due to the latest pull rate limitations introduced by Docker Hub.

  • Check this Docker site article to help determine the exact pull limit that’s applicable on the system where you are trying to pull the publicly available Docker Hub images, such as Docker, Python, etc.

    Note

    This limit is only applicable for the 6-hour window.

  • If this issue occurs for an anonymous user (without Docker login and with pull limit of 100), you can create an account and try to do the build after running the following command:

    docker login -u <username> -p <password>
    

    The alternative is to use a paid subscription.

If you’re unable to resolve your issues, go to the Support Forum.

Introduction to the edgesoftware CLI

edgesoftware is a command-line interface (CLI) that helps you manage packages on the Intel® Developer Catalog.

This guide describes the CLI commands and their usage. In this guide, you will:

  • Try out commands and get familiar with the CLI and the package you installed.

  • Learn to update modules.

  • Learn to install custom components.

  • Learn to export the package you installed, including custom modules, so you can install it on other edge nodes.

Get Started with the edgesoftware CLI

Use the information in this section to try out the edgesoftware CLI commands.

Note

Be aware that screenshots may show a package version number that is different from the current release. For information on the current release, See the Release Notes.

To begin:

  1. Open a terminal window.

  2. Go to the edge_insights_industrial/ directory.

  3. Try out the following commands.

Get Help or List the Available Commands

  • Command:

    ./edgesoftware --help
    
  • Response:

    Usage: edgesoftware [OPTIONS] COMMAND [ARGS]...
    A CLI wrapper for management of Intel® Edge Software Hub packages
    
    
    Options:
      -v, --version   Show the version number and exit.
      --help          Show this message and exit.
    
    
    Commands:
      download  Download modules of a package.
      export    Exports the modules installed as a part of a package.
      install   Install modules of a package.
      list      List the modules of a package.
      log       Show log of CLI events.
      pull      Pull Docker image.
      uninstall Uninstall the modules of a package.
      update    Update the modules of a package.
      upgrade   Upgrade a package.
    

Download Package Modules

  • Command:

    ./edgesoftware download
    
  • Response: Downloads and unzips the modules of the package.

    ../_images/GUID-0C5F43E9-F765-4250-9599-850EACA13FD1-low.png

View the Software Version

  • Command:

    ./edgesoftware --version
    
  • Response: Displays the edgesoftware version, build date, and target OS.

List the Package Modules

  • Command:

    ./edgesoftware list
    
  • Response: Displays the module details such as ID, module name, and status.

    ../_images/GUID-9E857839-84AA-49C0-A69C-FB52BDFD8415-low.png

List Modules Available for Download

  • Command:

    ./edgesoftware list --default
    
  • Response: All modules available for download for that package version, modules ID, and version.

Display the CLI Event Log

  • Command:

    ./edgesoftware log
    
  • Response: CLI event log information, such as:

    • target system information (hardware and software)

    • system health

    • installation status

    • modules you can install

    ../_images/GUID-4933CC86-00FE-49D0-8FA9-F4C603736C5A-low.png

See the Installation Event Log for a Module

  • Command:

    ./edgesoftware log <MODULE_ID>
    

    You can specify multiple <MODULE_ID> arguments by listing them with a space between each.

    Note

    To find the module ID, use

    ./edgesoftware list
    
  • Response: The installation log for the module.

Install Package Modules

This edgesoftware command installs package modules on the target system. To do so, the command looks at edgesoftware_configuration.xml that was downloaded from the Intel® Developer Catalog when you installed the Edge Insights for Industrial software. This file contains information about the modules to install.

During the installation, you will be prompted to enter your product key. The product key is in the email message you received from Intel confirming your Edge Insights for Industrial download.

Note

Important

Do not manually edit edgesoftware_configuration.xml.

  1. Open a terminal window.

  2. Go to the edge_insights_industrial/ directory.

  3. Run the install command:

    ./edgesoftware install
    

Update the Package Modules

  1. On a fresh Linux* installation, before performing an update run the following command:

    ./edgesoftware install
    

    This command ensures that all dependencies and packages are installed on the target system.

  2. When you are ready to update the package modules, run the following command:

    ./edgesoftware update <MODULE_ID>
    

    For example:

    ./edgesoftware update 638f141e62ad103f60cf5f72
    

During the installation, you will be prompted to enter your product key. The product key is in the email message you received from Intel confirming your Edge Insights for Industrial download.

Note

To find the module ID, use

./edgesoftware list --default

Export the Package for Installation

The edgesoftware CLI lets you package the installed modules, customer applications, and dependencies as part of a package. The export is provided in the Edge_Insights_for_Industrial.zip file that includes installation scripts, XML files, and an edgesoftware Python* executable.

Command:

./edgesoftware export

Uninstall the Packages

The edgesoftware CLI lets you uninstall the complete package or individual components from the package.

To uninstall individual package, run the following command:

./edgesoftware uninstall
<Module-ID>
../_images/GUID-5E70F71B-4634-4EED-9C64-CCB48CDDB714-low.png

To uninstall all the packages, run the following command:

./edgesoftware uninstall -a
../_images/GUID-BD498AC0-D7F8-4281-97CD-A1F11ABD0CE3-low.png

Summary

By following this guide, you tried a few commands to familiarize yourself with the features of the edgesoftware CLI.