Commands fail with library errors on Agent only install.
search cancel

Commands fail with library errors on Agent only install.

book

Article ID: 50308

calendar_today

Updated On:

Products

CA Workload Automation AE - Scheduler (AutoSys) Autosys Workload Automation CA Workload Automation AE - System Agent (AutoSys) CA Workload Automation AE - Business Agents (AutoSys) CA Workload Automation AE - Business Agents (AutoSys)

Issue/Introduction

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

 

 

Environment

Release:
Component: ATSYS

Resolution

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/Linux Example:
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

HP Example:
SHLIB_PATH=/opt/CA/UnicenterAutoSysJM/autosys/lib:$SHLIB_PATH
export SHLIB_PATH
PATH=/opt/CA/UnicenterAutoSysJM/autosys/bin:$PATH
export PATH
AUTOSYS=/opt/CA/UnicenterAutoSysJM/autosys
export AUTOSYS

AIX Example:
LIBPATH=/opt/CA/UnicenterAutoSysJM/autosys/lib:$LIBPATH
export LIBPATH
PATH=/opt/CA/UnicenterAutoSysJM/autosys/bin:$PATH
export PATH
AUTOSYS=/opt/CA/UnicenterAutoSysJM/autosys
export AUTOSYS

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