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

book

Article ID: 19334

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 CA IT Asset Manager CA Software Asset Manager (CA SAM) ASSET PORTFOLIO MGMT- SERVER CA Server Automation CA Service Management - Asset Portfolio Management CA Service Management - Service Desk Manager

Issue/Introduction

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

Environment

Release: UASIT.99000-12-Asset Intelligence
Component: