how to start TSM client scheduler in linux

tsmtsm

Noob
Joined
Dec 6, 2011
Messages
49
Reaction score
0
Points
0
Location
Dallas
I have installed and configured TSM client on linux.

I am trying to schedule backups of few file systems, In this process i am trying to restart tsm client scheduler and set it to automatic like we do in windows.

Can some one guide me with the procedure do do it.


Thank You!
 
I know that i have to an entry in the inittab file, but can someone help me what should i add in that file
 
Put this in /etc/init.d/tsm




Code:
#! /bin/bash
#
# tsm      starts and stops Tivoli Storage Manager Client
#
# chkconfig: 2345 99 00
# description: Starts and stops Tivoli Storage Manager Client 
#
# config: /opt/tivoli/tsm/client/ba/bin/dsm.sys
# processname: dsmc


# Source function library.
. /etc/init.d/functions

# See how we were called.
prog="tsm"

# Define environment variables
PATH=$PATH:/opt/tivoli/tsm/client/ba/bin
LANG="en_US"
LOCK="/var/lock/subsys/$prog"
PID="/var/run/$prog.pid"
export LANG

start () {
    echo -n $"Starting $prog: "
    dsmc schedule > /dev/null 2>&1 &
    pgrep dsmc > $PID && success
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch $LOCK
    return $RETVAL
}

stop () {
    echo -n $"Stopping $prog: "
    killproc dsmc
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && rm -f $LOCK
    [ $RETVAL -eq 0 ] && rm -f $PID
    return $RETVAL
}

rhstatus() {
        status dsmc
}


restart() {
        stop
        start
}

case "$1" in
  start)
        start
        ;;
  stop)
        stop
        ;;
  restart)
        restart
        ;;
  status)
        rhstatus
        ;;
  *)
        echo $"Usage: $0 {start|stop|status|restart}"
        exit 1
esac

exit $?



Run
Code:
chmod 755 /etc/init.d/tsm
chkconfig --add tsm
chkconfig --level 345 tsm on
 
Last edited:
I am looking to backup /opt, /prod, /www ........ directories/filesystems and i made these entry on dsm.opt file. Is this right ?


SERVERNAME CREDIT04
DOMAIN "/opt"
DOMAIN "/prod"
DOMAIN "/www"
DOMAIN "/home/pmtplus"
DOMAIN "/etc/syslog.conf"
DOMAIN "/etc/hosts"
DOMAIN "/etc/services"
 
I am looking to backup /opt, /prod, /www ........ directories/filesystems and i made these entry on dsm.opt file. Is this right ?


SERVERNAME CREDIT04
DOMAIN "/opt"
DOMAIN "/prod"
DOMAIN "/www"
DOMAIN "/home/pmtplus"
DOMAIN "/etc/syslog.conf"
DOMAIN "/etc/hosts"
DOMAIN "/etc/services"

This works in conjunction with dsm.sys - remember that the dsm.sys is the main BA client configuration file in Linux/UNIX/AIX.

Alternatively, you can have an include/exclude file called from dsm.sys.
 
Back
Top