SHIFT

--- Sjoerd Hooft's InFormation Technology ---

User Tools

Site Tools


tivolilinuxclient
Differences

This shows you the differences between two versions of the page.

Link to this comparison view

tivolilinuxclient [2013/05/04 14:09] (current)
sjoerd created
Line 1: Line 1:
 += Tivoli Linux Client =
  
 +Installing and configuring the tsm client software on linux.
 +== Download ==
 +Download the latest software from the [[http://​www-01.ibm.com/​support/​docview.wss?​rs=663&​uid=swg21239415|IBM website ]] and make sure it's in /tmp/tivoli
 +== Install Software ==
 +<​code>​
 +cd /tmp/tivoli
 +tar -xf <​filename>​
 +rpm -i TIVsm-API.i386.rpm
 +rpm -i TIVsm-BA.i386.rpm
 +</​code>​
 +== Config software
 +Start-stop script installation
 +<​code>​
 +cp tivolitsm /​etc/​init.d/​tivolitsm
 +chmod +x /​etc/​init.d/​tivolitsm
 +</​code>​
 +Setup config files
 +<​code>​
 +cp dsm.* /​opt/​tivoli/​tsm/​client/​ba/​bin/​.
 +</​code>​
 +Edit files for correct filename
 +<​code>​
 +vi /​opt/​tivoli/​tsm/​client/​ba/​bin/​dsm.sys
 +</​code>​
 +Replace "​x"​ by the nodename
 +Start tivoli on boot
 +<​code>​
 +chkconfig tivolitsm on
 +</​code>​
 +Start tivoli and setup the nodename and password by following the prompts
 +<​code>​
 +dsmc
 +</​code>​
 +Check the schedule
 +<​code>​
 +q sched
 +quit
 +</​code>​
 +Start the scheduler
 +<​code>​
 +/​etc/​init.d/​tivolitsm start
 +</​code>​
 +
 += References =
 +tivolitsm:
 +<​code>​
 +#! /bin/sh
 +# Copyright (c) 1995-2002 SuSE Linux AG, Nuernberg, Germany.
 +# All rights reserved.
 +#
 +# init.d/​tivolitsm
 +#
 +#   and symbolic its link
 +#
 +### BEGIN INIT INFO
 +# Provides: tivolitsm
 +# Required-Start:​ $remote_fs $time
 +# X-UnitedLinux-Should-Start:​ $syslog $named
 +# Required-Stop:​
 +# Default-Start: ​ 3 5
 +# Default-Stop: ​  0 1 2 6
 +# Description: ​   Start Tivoli Background Backup Agent
 +### END INIT INFO
 +
 +# Source SuSE config
 +. /​etc/​rc.status
 +
 +TSM_BIN=/​opt/​tivoli/​tsm/​client/​ba/​bin/​dsmc
 +
 +test -x $TSM_BIN || exit 5
 +
 +# Shell functions sourced from /​etc/​rc.status:​
 +#      rc_check ​        check and set local and overall rc status
 +#      rc_status ​       check and set local and overall rc status
 +#      rc_status -v     ditto but be verbose in local rc status
 +#      rc_status -v -r  ditto and clear the local rc status
 +#      rc_failed ​       set local and overall rc status to failed
 +#      rc_reset ​        clear local rc status (overall remains)
 +#      rc_exit ​         exit appropriate to overall rc status
 +
 +# First reset status of this service
 +rc_reset
 +
 +# Return values acc. to LSB for all commands but status:
 +# 0 - success
 +# 1 - misc error
 +# 2 - invalid or excess args
 +# 3 - unimplemented feature (e.g. reload)
 +# 4 - insufficient privilege
 +# 5 - program not installed
 +# 6 - program not configured
 +#
 +# Note that starting an already running service, stopping
 +# or restarting a not-running service as well as the restart
 +# with force-reload (in case signalling is not supported) are
 +# considered a success.
 +
 +case `/bin/uname -r` in
 +    0.*|1.*|2.0.*|2.1.*)
 +        echo -n "​Tivoli needs at least kernel version 2.2."
 +        rc_status -s
 +        exit 1
 +    ;;
 +esac
 +
 +case "​$1"​ in
 +    start)
 +        echo -n "​Starting Tivoli Background Backup Agent daemon"​
 +        startproc $TSM_BIN sched 1>/​dev/​null 2>/​dev/​null
 +
 +        # Remember status and be verbose
 +        rc_status -v
 +        ;;
 +    stop)
 +        echo -n "​Shutting down Tivoli Background Backup Agent deamon"​
 +        ## Stop daemons with killproc(8) and if this fails
 +        ## set echo the echo return value.
 +
 +        killproc -TERM $TSM_BIN
 +
 +        # Remember status and be verbose
 +        rc_status -v
 +        ;;
 +    restart)
 +        ## Stop the service and regardless of whether it was
 +        ## running or not, start it again.
 +        $0 stop
 +        $0 start
 +
 +        # Remember status and be quiet
 +        rc_status
 +        ;;
 +    force-reload)
 +        ## Signal the daemon to reload its config. Most daemons
 +        ## do this on signal 1 (SIGHUP).
 +        ## If it does not support it, restart.
 +
 +        echo "​Reload Tivoli Background Backup Agent"
 +        ## if it supports it:
 +        #killproc -HUP $TSM_BIN
 +        #rc_status -v
 +        $0 stop  && ​ $0 start
 +        rc_status
 +        ;;
 +    reload)
 +        ## Like force-reload,​ but if daemon does not support
 +        ## signalling, do nothing (!)
 +
 +        # If it supports signalling:
 +        echo -n "​Reload Tivoli Background Backup Agent"
 +        rc_failed 3
 +        rc_status -v
 +        ;;
 +    status)
 +        echo -n "​Checking for Tivoli Background Backup Agent daemon: "
 +        checkproc $TSM_BIN
 +        rc_status -v
 +        ;;
 +    probe)
 +        ## Optional: Probe for the necessity of a reload,
 +        ## give out the argument which is required for a reload.
 +        ;;
 +    *)
 +        echo "​Usage:​ $0 {start|stop|status|restart|force-reload|reload|probe}"​
 +        exit 1
 +        ;;
 +esac
 +rc_exit
 +</​code>​
 +
 +dsm.sys:
 +<​code>​
 +SErvername <backup server node name>
 +   ​COMMmethod ​        TCPip
 +   ​TCPPort ​           1500
 +   ​TCPServeraddress ​  <​server dns name>
 +
 +NODENAME x
 +   
 +SCHEDMODE polling
 +SCHEDLOGRETENTION 60
 +
 +PASSWORDACCESS GENERATE
 +
 +SCHEDLOGNAME /​var/​log/​dsmsched.log
 +ERRORLOGNAME /​var/​log/​dsmerror.log
 +</​code>​
 +
 +dsm.opt:
 +<​code>​
 +************************************************************************
 +* IBM Tivoli Storage Manager ​                                          *
 +*                                                                      *
 +************************************************************************
 +
 +SERVERNAM <backup server node name>
 +</​code>​
 +
 +{{tag>​backup linux}}
tivolilinuxclient.txt ยท Last modified: 2013/05/04 14:09 by sjoerd