Error while starting agntd command not found

Document ID : KB000128010
Last Modified Date : 26/02/2019
Show Technical Document Details
Issue:
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@scm_agent lib]# agntd -port=5500 
bash: agntd: command not found 
root@scm_agent lib]# 
Cause:
It looks like your root user does not have the SCM-related environment variables set. 

 
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. To find what these are, refer to the .bash_profile for the userid that owns the SCM Software folder. 

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