Complete the following steps to configure IBM® Bob Premium Package
for Z
(Z Understand) on Linux®.
Before you begin
The BobZ container must be already installed on the system.
Procedure
-
Navigate to the folder where the BobZ container was extracted in the
Terminal.
For example, enter the following line to navigate to
/opt/bobz:
cd /opt/bobz
- Clone the setup.sample.db2.json and
setup.sample.sqlserver.json database specific sample files and rename it to
setup.json.
To do so, run the following
command:
cp setup.sample.db2.json setup.json
cp setup.sample.sqlserver.json setup.json
This file is used for the initial configuration of the Z Understand container and can be deleted afterward.
- Here are the two methods to modify the opened setup.json.
- Method 1: You can configure
setup.json using plain text passwords.
- Method 2: You can configure
setup.json using encrypted password. Here are the steps:
- Start the container using
./start.sh.
- Run the following command to enable password usage for the database, admin user, and graph
database:
./cli.sh -encrypt <PASSWORD>
- Run the following command to stop the container:
./stop.sh
The following steps apply to both the plain text and encrypted text password
methods:
- Open the newly created setup.json file by running the following
command:
- Replace all the values enclosed with
<INSERT_*****> with actual
values.
- Press the i key on the keyboard to enable keyboard input in the
editor.
- Update the
generalSettings section and replace
<INSERT_HOSTNAME> with the FQDN (fully qualified domain name) of the local
machine.
- Update the
relationalDatabaseServer section with the
details of your relational database server.
- Replace
<INSERT_DATABASE_HOSTNAME> with the database hostname or IP.
- Replace
<INSERT_DATABASE_USERNAME> with the database username. For example,
you can enter sa for SQL Server.
- Replace
<INSERT_DATABASE_PASSWORD> with a plain text database or an
encrypted password.
- Replace
<INSERT_DATABASE_TYPE->sqlserver|db2> with
sqlserver or db2.
- Update the
graphDatabaseServer section and replace
<INSERT_GDB_PASSWORD> with a new plain text database or an encrypted password.
This password must be at least 6 characters long and have a lowercase letter, an
uppercase letter, and a special character.
- Update the
userAccess section and replace
<INSERT_ADMIN_PASSWORD> with a new plain text database or an encrypted password.
This password must be at least 6 characters long and have a lowercase letter, an
uppercase letter, and a special character.
- Update
vectorDatabaseServer section and replace
<INSERT_MILVUS_PASSWORD> with a new password. If the embedded Milvus Vector
Database Server is not required, then you can update the
scripts/environment.properties file and set MILVUS_SUPPORTED=false.
Note: Ensure the <INSERT_MILVUS_PASSWORD> is entered in plain text format and
cannot be encrypted.
- Press the Escape key on the keyboard to exit insert mode. Then, save the
file to disk and exit the editor by typing :wq and pressing the Enter
key.
- Start and configure the Z Understand
container by running the following command:
Wait for the configuration process to end. It usually takes several
minutes.
- When the process ends, the Z Understand
container is ready to be used.
Note: setup.json file can now be securely deleted.
- Configure the semantic indexer.
To configure the semantic indexer, perform the
following steps only once:
- Log in to the Z Understand Configuration Service Admin user interface by
opening https://<YOUR_HOSTNAME>:9443/ad/admin in a browser.
Note: Z
Understand container supports only 2 ports, by default 2424 for Graph Database Server and 9443 for
all other services.
-
Click Configure tab.
-
Click Servers and Security section.
-
On the left pane, click Vector database server.
-
Enter Host, Server port,
Username, Password, Protocol
type, and optionally server certificate, then click Save.
-
On the left pane, click Z Code Assistant.
What to do next
You can register the Z Understand container as a
system service and start it automatically on machine boot.
To do so, proceed as follows:
- Run the following script from the container installation
path:
./install-as-a-service.sh
This script creates an
bobz
system-level service. You can start, stop, or restart the service, or check its status by using the
systemctl command as
follows:
systemctl start bobz
systemctl stop bobz
systemctl restart bobz
systemctl status bobz
- Create and manage analysis projects, as it is explained in Managing analysis projects.