ITCM Agent on Linux-Unix - caf: command not found

book

Article ID: 101502

calendar_today

Updated On:

Products

CA Automation Suite for Data Centers - Configuration Automation CA Client Automation - Asset Management CA Client Automation - IT Client Manager CA Client Automation CA Client Automation - Remote Control CA Client Automation - Asset Intelligence CA Client Automation - Desktop Migration Manager CA Client Automation - Patch Manager

Issue/Introduction


On Linux/Unix command caf is not found. For example "caf status" command returns error like :

bash: caf: command not found..

or

ksh: caf: not found

Example :
 

<Please see attached file for image>

User-added image

Cause


This problem could occur if the path /opt/CA/SharedComponents/bin is not present in PATH variable and/or if variable CASHCOMP is not set or contains wrong value.

CASHCOMP should contain the path for Shared Components. Example : /opt/CA/SharedComponents


In the example below, CASHCOMP variable is empty and PATH variable does not contain path for /opt/CA/SharedComponents/bin
 

<Please see attached file for image>

CASHCOMP empty


The directory /opt/CA/SharedComponents/bin contains a lot of symbolic links and especially symbolic link for caf :
 

<Please see attached file for image>

/opt/CA/SharedComponents/bin

 

Environment


CA Client Automation agent on Linux/Unix

Resolution


1- Execute this command to load the CA profile :
. /etc/profile.CA
 
2 - Check with these echo commands :

echo $CASHCOMP
echo $PATH

 
  • If CASHCOMP is set and contains correct value. The directory $CASHCOMP/bin should exist and contain the symbolic link caf
  • If PATH variable contains the path for $CASHCOMP/bin

3- If CASHCOMP does not contain the correct value it could be corrected by editing the file /etc/profile.CA
 
Example of good configuration
 

<Please see attached file for image>

User-added image
 

Attachments

1558701064294000101502_sktwi1f5rjvs16ke0.jpeg get_app
1558701062467000101502_sktwi1f5rjvs16kdz.jpeg get_app
1558701060710000101502_sktwi1f5rjvs16kdy.jpeg get_app
1558701058711000101502_sktwi1f5rjvs16kdx.jpeg get_app