Introduction

Device Manager UI is an user interface application to interact with device manager server to manage different devices by fetching the device details, adding devices, adding device groups etc

This document provides the deployment steps for setting up Device Manager UI server and all its dependencies.

For setting up this server the below applications or tools should be available in the server machine:

  1. JDK – 17
  2. TOMCAT – v9.0.xx
  3. MAVEN – v3.8 or above
  4. Device Manager 


Prequisites

The below software should be installed and available for running Device Manager UI.

If you already have an existing setup of Automatics you can follow the steps in this page for upgrading the software's Automatics Technology Stack - Upgrade 

Software Requirement

Please note that even though the recommended version of Orchestration is JDK17, it is reverse compatible with JDK11 also. So code also be compiled with JDK11. Follow Steps below to install Java 17 on CentOS/linux.

sudo yum -y update
sudo yum install java-17-openjdk
java -version


Sample output:

Follow below steps to install and configure MariaDB on CentOS/linux

Install 10.11 of MariaDB and the most common packages, using the command below.

sudo yum install MariaDB-server galera-4 MariaDB-client MariaDB-shared MariaDB-backup MariaDB-common

Follow below Steps to setup Tomcat server  on CentOs/linux.

wget -c https://downloads.apache.org/tomcat/tomcat-9/v9.0.85/bin/apache-tomcat-9.0.85.tar.gz

Sample Output:


Maven – 3

Maven is the tool used for building and managing Device Manager project. Please follow the below links to download and install Maven:

Following page will provide the detailed steps to setup maven.

Automatics Orchestration Setup#Maven3


Device Manager Back End Server

Device Manager Server is REST API based tool to manage different device details , add & edit device details, device groups etc. Device Manager UI is an application for visualizing and perform actions on different functionalities of device manager backend server.

Please refer below link to know more about device manager setup and deployment.

Device Manager Deployment Document

Environment Setup

Following are the steps to be followed to setup Device Manager UI and its dependent software's in a Machine:

Build Device Manager UI .war file

Build the .war file of Device Manager UI  using Maven 3 and JDK 8.

To do this follow the below steps:

Example:

       


Configuring Base URL in Device Manager UI

By default, the URL for logging into the Device Manager UI is {protocol}://{host:port}/DeviceManagerUI/login.html. If you wish to change the base URL of the Device Manager UI (e.g., to {protocol}://{host:port}/DeviceManagerUIDevelopment/login.html), follow these steps:

After completing these two steps, build the project using the mvn clean install command to generate the WAR file.

Deploy Device Manager UI application

Device Manager application should be deployed in Tomcat server (ver 8.5 or above). Follow the below steps to deploy the application.

  1. Copy DeviceManagerUI.war file from “project_home/target” to “TOMCAT_HOME/webapps” folder.
  2. If you need to run the tomcat server in a port other than 8080, please follow the below steps to change the same.
  3. To start Device Manager application go to “TOMCAT_HOME/bin” folder and run sh or startup.bat (if its running on Microsoft windows) script.
  4. To verify server logs check “TOMCAT_HOME/logs/catalina.out” file.

Following page will provide more information on device manager ui

Device Manager UI User Manual