"agntd: command not found" error
search cancel

"agntd: command not found" error

book

Article ID: 128010

calendar_today

Updated On:

Products

CA Harvest Software Change Manager - OpenMake Meister CA Harvest Software Change Manager

Issue/Introduction

We are able to install the SCM agent and we are able to start the agent with the cascm user account but unable to run the agent with root. We are getting the error command not found. 

root@<brokername> ~]# agntd -port=5500 
bash: agntd: command not found 
root@<brokername> ~]# 

Environment

Harvest Software Change Manager all versions
on Linux/Unix platforms

Cause

In this example, the root user does not have the SCM-related environment variables set, so Linux does not know where to find the agntd command.

The following environment variables should be set:

export CA_SCM_HOME=/opt/CA/scm     # Be sure to provide the correct path for CA_SCM_HOME according to where it was installed
export PATH=$CA_SCM_HOME/bin:$PATH
export LD_LIBRARY_PATH=$CA_SCM_HOME/lib:$LD_LIBRARY_PATH

Resolution

There are 2 ways to fix this type of problem. 

The first is to edit the .bash_profile for the root user and include the SCM-related environment variables.

The second is to create a unix/linux shell script that sets these environment variables and execute that script just before executing ./agntd