Objectives

In this Exercise you will learn how to install Maximo Monitor on an existing MAS cluster.


Before you begin:
This Exercise requires that you have completed the pre-requisites required for all exercises


Start MAS CLI

First open a terminal and run the docker command to start the MAS CLI docker container docker run -ti --rm --pull always quay.io/ibmmas/cli:
MAS CLI

Login to the OpenShift cluster using your kubeadmin account and click on Copy login command:
OCP Login Command

Click on Display Token and copy the oc login command in its entirety:
OCP Login Command

Run the command in the MAS CLI docker container:
MAS CLI

Prepare for Installation

Define the required environment variables according to MAS DevOps Ansible Playbook for adding IoT using the MAS CLI docker container.

First extract the existing MAS License File from your MAS environement and define MAS_CONFIG_DIR:

mkdir /root/mas_configs
kubectl get secret ibm-sls-sls-entitlement -n ibm-sls -o json | jq -r '.data.entitlement' | base64 --decode > /root/mas_configs/entitlement.lic
export MAS_CONFIG_DIR=/root/mas_configs

MAS CLI

Then define the other environment variables:

export IBM_ENTITLEMENT_KEY=$(kubectl get secret ibm-entitlement -n mas-inst1-core -o json | jq -r '.data[".dockerconfigjson"]' | base64 --decode | jq -r '.auths["cp.icr.io/cp"].password')
export DB2_INSTANCE_NAME=db2u-iot
export MAS_INSTANCE_ID=inst1

MAS CLI

Install IoT Tool

The first component that needs to be installed is the IoT Tool - this also includes:
* Set up Db2 instance as the system-level JDBC datasource
* Set up Kafka cluster as the system-level Kafka

Run the following command in the MAS CLI docker container:

ansible-playbook ibm.mas_devops.oneclick_add_iot

Now grab a cup of coffee and be patient. Installing the IoT Tool and the dependencies takes 1,5 - 2 hours.
Don't be worried when you see the FAILED - RETRYING:... messages:
MAS CLI

You can continue this exercise, when you see the following:
MAS CLI

Install Monitor

Run the following command in the MAS CLI docker container:

ansible-playbook ibm.mas_devops.oneclick_add_monitor

Another cup of coffee and patience is needed. Installing the Monitor application takes 1 - 1,5 hours.
You are done when you see this:
MAS CLI

Logging into MAS and viewing in About, this MAS environment now have MAS Core, Manage, IoT, and Monitor installed:
MAS About

Tip

You can now install the additional Maximo Application Suite applications by following the MAS Devops Ansible Collection
or begin to test, build your demo, or build your pilot with the installed applications - have fun !!


Congratulations you have successfully installed Maximo Monitor on an existing MAS environment.