Installing CA Backup Agent R16 SP1 on Ubuntu Linux 10.04 64bit
There are several websites discussing the installation of ArcServe Backup Agent on Ubuntu Server which is officially unsupported by CA.
http://kennethdalbjerg.dk/2007/12/14/ca-brightstor-115-under-linux
http://proxyadvices.wordpress.com/2011/03/17/how-to-install-ca-arcserve-backup-r15-linux-agent-on-ubuntu/
http://ubuntuforums.org/showthread.php?t=172955
With R16 SP1 none of the tricks seem to work, so I found out my own way of successfully installing the Agent on Ubuntu 10.04 64bit.
Note: All commands to be executed as user root
Warning! I recommend testing this on lab systems first! Any use on your own risk!
Step 1: Install Prequisites (32bit libraries)
apt-get install g++-multilib
Step 2: install the .deb packages from the CDROM - ignore any error messages
mount /dev/cdrom /mnt cd /mnt/datamoverandagent/linux dpkg -i abcmagt.deb dpkg -i abagtux.deb
Now we have installed some files in /opt/CA
Step 3: Replace the shell entries in various scripts
CA assumes that /bin/sh is a symlink to /bin/bash - in Ubuntu we have /bin/dash so we have to change this...
Display files, that need to be modified (you should check once more after executing the sed commands):
grep -Irn /bin/sh /opt/CA/
Modify files (replace /bin/sh with /bin/bash):
sed -i 's/\/bin\/sh/\/bin\/bash/g' /opt/CA/ABuagent/uagent</pre> sed -i 's/\/bin\/sh/\/bin\/bash/g' /opt/CA/ABuagent/uagentsetup sed -i 's/\/bin\/sh/\/bin\/bash/g' /opt/CA/ABcmagt/nls_list sed -i 's/\/bin\/sh/\/bin\/bash/g' /opt/CA/ABcmagt/caagentsetup sed -i 's/\/bin\/sh/\/bin\/bash/g' /opt/CA/ABcmagt/caagent_autostrtstop sed -i 's/\/bin\/sh/\/bin\/bash/g' /opt/CA/ABcmagt/aglang_setup sed -i 's/\/bin\/sh/\/bin\/bash/g' /opt/CA/ABcmagt/nls_utility sed -i 's/\/bin\/sh/\/bin\/bash/g' /opt/CA/ABcmagt/caagent
Step 4: Patch and run uagentsetup
Download and extract the Patch:
cd /tmp wget 'http://stichl.at/wp-content/uploads/2012/10/arcserve.tar.gz' tar xzvf /tmp/arcserve.tar.gz patch /opt/CA/ABuagent/uagentsetup /tmp/uagentsetup.patch /opt/CA/ABuagent/uagentsetup
Answer the re-registration question with yes and ignore any errors about line 271
Step 5: Create init.d script and activate agent
mv /tmp/ab_agent /etc/init.d/ chmod 0755 /etc/init.d/ab_agent update-rc.d ab_agent defaults /etc/init.d/ab_agent stop /etc/init.d/ab_agent start
January 31st, 2013 - 13:10
Hi,
really great stuff. Exactly what I have been searching for. We are installing the clients on Linux Debian Squeeze machines.
I have condensed it a bit into one script, if it might be of interest for someone:
#!/bin/bash
cd /opt/CA
for i in $(grep -Irn /bin/sh /opt/CA/ | cut -d: -f1)
do
# echo $i
sed -i ‘s/\/bin\/sh/\/bin\/bash/g’ $i
done
cd /tmp
wget ‘http://stichl.at/wp-content/uploads/2012/10/arcserve.tar.gz’
tar xzvf /tmp/arcserve.tar.gz
patch /opt/CA/ABuagent/uagentsetup /tmp/uagentsetup.patch
/opt/CA/ABuagent/uagentsetup
# Answer the re-registration question with yes and ignore any errors about line 271
mv /tmp/ab_agent /etc/init.d/
chmod 0755 /etc/init.d/ab_agent
update-rc.d ab_agent defaults
/etc/init.d/ab_agent stop
/etc/init.d/ab_agent start
April 17th, 2013 - 09:08
Thank you both for this. You would think they would make it easier to get these agents installed!
August 23rd, 2013 - 03:03
Yeah… you would think converting all this to a deb file wouldn’t be hard for a software company. Has anyone tried to change the link from /bin/dash to /bin/bash with ln -vis /bin/bash /bin/sh? Rather than substituting the references in the sed commands above?
October 17th, 2013 - 13:48
Changing the shell links can have a massive impact depending on which software you are using on this linux box. Substituting the shell calls in the CA scripts is the safer way in my opinion 🙂