The TSM Client is proposed only as a RPM. With alien you can convert the rpm to a deb. Download the tar file : ftp://ftp.software.ibm.com/storage/tivoli-storage-management/maintenance/client/v5r5/Linux/ from IBM website then untar the file and alien all the rpm :
test# tar xf 5.5.0.0-TIV-TSMBAC-LinuxX86.tar test# alien *.rpm
Now you've got all rpm in deb format, you can install those packages with dpkg :
test# dpkg --force-all -i *.deb
You would notice there's api64 and api files, do not install the api64 file on 32 bits system.
Now all your files are installed on /opt/tivoli. You have to add library in your ld cache first, those library are stored on /opt/tivoli/tsm/client/api/bin. You have to create a file in /etc/ld.so.conf.d/, for example tivoli.conf and add the path in it :
test# echo "/opt/tivoli/tsm/client/api/bin" > /etc/ld.so.conf.d/tivoli.conf
And then run ldconfig :
test# ldconfig
Finally just create a symbolic link in /opt/tivoli/tsm/client/ba/bin to /opt/tivoli/tsm/client/lang/en_US :
test# cd /opt/tivoli/tsm/client/ba/bin test# ln -s ../../lang/en_US en_US
Now your client is ready to use. The rest is well documented in the IBM documentation.
Now you need an init script. So this is mine (based on /etc/init.d/skeleton) :
#! /bin/sh ### BEGIN INIT INFO # Provides: dsmcad # Required-Start: $all # Required-Stop: # Default-Start: 2 3 4 5 # Default-Stop: 0 1 6 # Short-Description: Run the TSM Client acceptator # Description: Run the TSM Client acceptator provided by the IBM rpm. ### END INIT INFO # Author: Etienne Bagnoud <tchetch@i-james.com> # PATH=/sbin:/usr/sbin:/bin:/usr/bin:/opt/tivoli/tsm/client/ba/bin DESC="TSM Client acceptator" NAME=dsmcad DAEMON=/opt/tivoli/tsm/client/ba/bin/$NAME SCRIPTNAME=/etc/init.d/$NAME # Exit if the package is not installed [ -x "$DAEMON" ] || exit 0 . /lib/init/vars.sh . /lib/lsb/init-functions do_start() { start-stop-daemon --start --quiet --exec $DAEMON --test > /dev/null \ || return 1 start-stop-daemon --start --quiet --exec $DAEMON -- \ || return 2 } do_stop() { # TODO It seems that start-stop-daemon crash when stopping dsmcad start-stop-daemon --stop --quiet --retry=20/TERM/5/KILL --name $NAME RETVAL="$?" return "$RETVAL" } case "$1" in start) [ "$VERBOSE" != no ] && log_daemon_msg "Starting $DESC" "$NAME" do_start case "$?" in 0|1) [ "$VERBOSE" != no ] && log_end_msg 0 ;; 2) [ "$VERBOSE" != no ] && log_end_msg 1 ;; esac ;; stop) [ "$VERBOSE" != no ] && log_daemon_msg "Stopping $DESC" "$NAME" do_stop case "$?" in 0|1) [ "$VERBOSE" != no ] && log_end_msg 0 ;; 2) [ "$VERBOSE" != no ] && log_end_msg 1 ;; esac ;; *) echo "Usage: $SCRIPTNAME {start|stop}" >&2 exit 3 ;; esac :