How to avoid the update of file /etc/profile during the installation of the ITCM Agent on Unix/Linux?

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

Description:

When the ITCM Agent is installed on Linux/Unix files /etc/profile and /etc/profile.CA are updated.

/etc/profile:

Following line is added at the end

 test -r /etc/profile.CA && { CA_SECTION=ccs; export CA_SECTION; . /etc/profile.CA; unset CA_SECTION; } # Added by Computer Associates 

/etc/profile.CA:

Following lines are added:


CA_ITRM_BASEDIR=/opt/CA/DSM; export CA_ITRM_BASEDIR
if [ -f "$CA_ITRM_BASEDIR/scripts/dsmenv" ];then
    . "$CA_ITRM_BASEDIR/scripts/dsmenv"
fi

How to avoid the update of file /etc/profile and/or /etc/profile.CA during installation of Agent?

Solution:

Solution 1 - Do not update the files /etc/profile and /etc/profile.CA

Use a response file and set this parameter to 0:


 	ITRM_SETUP_SYS_PROFILE=0 

Example:


 	./installdsm -r /tmp/agent/agent.rsp 

Solution 2 - Do not update the file /etc/profile but update the file /etc/profile.CA

In response file comment the parameter ITRM_SETUP_SYS_PROFILE:


 	#ITRM_SETUP_SYS_PROFILE=0 

And in the command line add /RUpdate_profile=0

Example :


 	./installdsm -r /tmp/agent/agent.rsp /RUpdate_Profile=0 

Remark :

If after CA ITCM Agent installation, should you need to update the files /etc/profile and/or /etc/profile.CA, use the following commands:

  • Update /etc/profile and /etc/profile.CA:
    /opt/CA/DSM/scripts/dsmsysprof install

  • Update only the file /etc/profile.CA:
    Update_Profile=0
    export Update_Profile
    /opt/CA/DSM/scripts/dsmsysprof install