Commands fail with library errors on Agent only install.

Document ID : KB000050308
Last Modified Date : 14/02/2018
Show Technical Document Details

Description:

On an agent only install the following commands will fail with library errors this is because the necessary environment is not set up:

autoflags
as_config
as_info
ntgetdate

Example:

/opt/CA/UnicenterAutoSysJMr11/autosys/bin/autoflags -a 
Could not load program /opt/CA/UnicenterAutoSysJMr11/autosys/bin/autoflags: 
Dependent module libascmn.so could not be loaded. 
Could not load module libascmn.so. 
System error: No such file or directory

Solution:

You will need to configure your users' environment in order to be able to run the commands in the $AUTOSYS/bin directory for servers with an agent only install.

First you need to know the directory that AutoSys is installed in. The default location is /opt/CA/UnicenterAutoSysJM/autosys

Next you need to know what identifier your OS uses to define the library path (example: Solaris, Linux: LD_LIBRARY_PATH, HP: SHLIB_PATH, AIX: LIBPATH) Then set the following variables using the appropriate location for AutoSys and library path designation for your OS as in this example for Solaris:

&LD_LIBRARY_PATH=/opt/CA/UnicenterAutoSysJM/autosys/lib:$LD_LIBRARY_PATH
export LD_LIBRARY_PATH
PATH=/opt/CA/UnicenterAutoSysJM/autosys/bin:$PATH
export PATH
AUTOSYS=/opt/CA/UnicenterAutoSysJM/autosys
export AUTOSYS

It is recommended that the commands be placed in the user's profile so that they do not have to be set each time.