1. Forum Rules (PLEASE CLICK HERE TO READ BEFORE POSTING) Click the link to access ADSM.ORG Acceptable Use Policy and forum rules which should be observed when using this website. Violators may be banned from this website. This message will disappear after you have made at least 12 posts. Thank you for your cooperation.

how to start TSM client scheduler in linux

Discussion in 'Command Line Administrator Client' started by tsmtsm, Aug 28, 2012.

  1. tsmtsm

    tsmtsm Noob

    Joined:
    Dec 6, 2011
    Messages:
    49
    Likes Received:
    0
    Occupation:
    Unix Admin
    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!
     
  2.  
  3. tsmtsm

    tsmtsm Noob

    Joined:
    Dec 6, 2011
    Messages:
    49
    Likes Received:
    0
    Occupation:
    Unix Admin
    Location:
    Dallas
    I know that i have to an entry in the inittab file, but can someone help me what should i add in that file
     
  4. Trident

    Trident Senior Member

    Joined:
    Apr 2, 2007
    Messages:
    287
    Likes Received:
    26
    Occupation:
    IT operations
    Location:
    Oslo, Norway
    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: Aug 28, 2012
  5. domino

    domino Senior Member

    Joined:
    Nov 16, 2005
    Messages:
    717
    Likes Received:
    32
    Occupation:
    System Engineer
    Location:
    Germany
  6. tsmtsm

    tsmtsm Noob

    Joined:
    Dec 6, 2011
    Messages:
    49
    Likes Received:
    0
    Occupation:
    Unix Admin
    Location:
    Dallas
    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"
     
  7. moon-buddy

    moon-buddy Moderator

    Joined:
    Aug 24, 2005
    Messages:
    6,177
    Likes Received:
    277
    Occupation:
    Electronics Engineer, Security Professional
    Location:
    Somewhere in the US
    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.
     

Share This Page