How to install 14.0 agent on a Linux server

book

Article ID: 221781

calendar_today

Updated On:

Products

CA Harvest Software Change Manager

Issue/Introduction

This tech doc gives detail steps on how to install agent on a Linux server. Installing on Aix/Solaris should be similar.

Environment

Release : 14.0

Component : CA Harvest Software Change Manager

Resolution

Please follow these steps, with some modification to fit your env:

# logged in as root to start:

# switched to the directory where you had uploaded the v14 install files and copied the ones for 64-bit client to the /tmp/scm folder
cd /tmp/scm
tar xvf SCMv14.0_Linux.tar
cd client/linux_x86_64/
cp *.gz /tmp/scm

# Created a new directory structure for SCM v14 agent
mkdir -p /opt/CA_14/scm /opt/CA_14/pec /opt/CA_14/etpki /opt/CA_14/SharedComponents/lib /opt/CA_14/SharedComponents/bin
chown -R cascm:cascm /opt/CA_14/scm /opt/CA_14/pec /opt/CA_14/etpki /opt/CA_14/SharedComponents /tmp/scm
chmod -R 755 /opt/CA_14/scm /opt/CA_14/pec /opt/CA_14/etpki /opt/CA_14/SharedComponents /tmp/scm

# Switched to the "cascm" user
su - cascm

# Created a script to set the v14 environment variables (had previously done the same thing for my v13.0.4 variables)
# (copy this block from the "cat >" line to the "EOF" line and paste it into putty as one chunk)
cat > setenv_scm_14.sh <<EOF
# Harvest Settings
umask 0022

export CASHCOMP=/opt/CA_14/SharedComponents
export CABIN=/opt/CA_14/SharedComponents/bin
export CALIB=/opt/CA_14/SharedComponents/lib

export CAPKIHOME=\$CASHCOMP/CAPKI
export PATH=\$CABIN:\$PATH
export LD_LIBRARY_PATH=\$CALIB:\$LD_LIBRARY_PATH

export RTHOME=/opt/CA_14/pec
export PATH=\$RTHOME:\$PATH
export LD_LIBRARY_PATH=\$RTHOME/lib/i86_64_linux24:\$LD_LIBRARY_PATH

export CA_SCM_HOME=/opt/CA_14/scm
export PATH=\$CA_SCM_HOME/bin:\$PATH
export LD_LIBRARY_PATH=\$CA_SCM_HOME/lib:\$LD_LIBRARY_PATH
EOF

cat setenv_scm_14.sh

# Made it executable
chmod a+x setenv_scm_14.sh

# Added a call to the script to my .bash_profile
# (copy this block from the "cat >>" line to the "EOF" line and paste it into putty as one chunk)
cat >> .bash_profile <<EOF
# Harvest Settings
. setenv_scm_14.sh
EOF

# Edited my .bash_profile to comment out the line that runs the script setting up my v13 environment variables
vi .bash_profile

# Looked like this when finished
##########################################################################################
# [[email protected] ~]$ cat .bash_profile 
# # .bash_profile

# # Get the aliases and functions
# if [ -f ~/.bashrc ]; then
# . ~/.bashrc
# fi

# # User specific environment and startup programs

# PATH=$PATH:$HOME/.local/bin:$HOME/bin

# export PATH
# # Harvest Settings
# # . setenv_scm.sh    <==== commented out this line
# # Harvest Settings
# . setenv_scm_14.sh
##########################################################################################

# Execute the script to set the v14 environment variables
. setenv_scm_14.sh
env | grep opt

# Switch to the folder where the v14 install files are and install CAPKI
cd /tmp/scm
mkdir etpki
mv etpki.tar.gz etpki
cd etpki/
gunzip etpki.tar.gz 
tar xvf etpki.tar 
cd etpki_linux/
./setup install caller=SCMAGENT verbose env=user instdir=/opt/CA_14/SharedComponents

# Switch to the folder where the v14 install files are and install PEC
cd /tmp/scm
mkdir pec
mv pec474_64.tar.gz pec
cd pec
gunzip pec474_64.tar.gz
tar xvf pec474_64.tar
sed -i 's/\/bin\/ksh/\/bin\/sh/' INSTALL.SH
./INSTALL.SH configure_rtserver=false

# Switch to the folder where the v14 install files are and move the agentonly.tar.gz to the scm home folder, install the agent
cd /tmp/scm
mv agentonly.tar.gz /opt/CA_14/scm
cd /opt/CA_14/scm
gunzip agentonly.tar.gz 
tar xvf agentonly.tar 
cd install/
./setup.sh 

# Exit back to root to start the agent
exit
cd /opt/CA/scm/bin
./agntd
cd /opt/CA_14/scm/bin
./agntd
ps -ef | grep scm

# And we're done
exit