Create a Prognosis User for MTS

Not applicable for MTS Pulse Monitor

A user needs to be created specifically for Prognosis and added to the MTS user group on the MTS server, in addition MTS needs to be set up for Prognosis to run MTS commands. To do both of these configurations carry out the following procedures.

Add a Prognosis user

Ensure that the Prognosis user is added to the MTS user group. To do this it may be necessary to be the root user to perform the following operations.

Use the 'smit' utility which is run from the UNIX/Linux command line:

> SMIT

Choose Security & Users -> Users -> Change / Show Characteristics of a User

Type in the Prognosis user name

Arrow down to group set and add the MTS group to the list of groups (comma separated,)

Press Enter to save

Make sure that the Initial Program is /bin/bash

Setup MTS commands

As Prognosis runs a number of MTS commands (e.g. Area), an MTS file named 'nexrc' must be sourced from the .bash_profile of the Prognosis login user. The location of the 'nexrc' file will depend upon where MTS is installed.

To determine the correct 'nexrc' location use the following command:

$ find /usr/intranet/*/nex/[8-9]0/bin -name nexrc -print

Normally there will only be one location returned, but if there are multiple, choose the correct location for the environment and add it to .bash_profile

Example:

If MTS is installed in the directory: /usr/intranet/dev. The .bash_profile will need to contain the following line:

source /usr/intranet/dev/nex/80/bin/nexrc

In addition, it will be necessary to add an environment variable for this user, called BASH_ENV, that is populated with the location of the 'nexrc' file.

Example:

BASH_ENV=/usr/intranet/dev/nex/80/bin/nexrc
export BASH_ENV
source /usr/intranet/dev/nex/80/bin/nexrc

Adding the BASH_ENV entry is necessary to ensure that variable inheritance occurs correctly between Bash shells spawned by Prognosis. Failure to set this may result in the following error being seen in the Prognosis Error Log (wvlog.txt):

iradicol 9.1.0 415834 - Command execution error. irperl MTS/getmtsdata.pl --lines; 2
Provide feedback on this article