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:
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:
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
If MTS is installed in the directory: /usr/intranet/dev. The .bash_profile will need to contain the following line:
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.
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):