How to install and use batchrun

HOW TO INSTALL AND USE BATCHRUN ON MERCE/MTRACKS

    1. CONFIGURATION OF BATCHRUN ON MERCE MASTER
      1. cd /var/warehouse/merce/mods/batchrun
      2. scp batchrun.tar root@merce-master:/var/tmp
      3. ssh root@merce-master
      4. cd /var/tmp
      5. mkdir batchrun
      6. cd /var/tmp/batchrun
      7. mv /var/tmp/batchrun.tar /var/tmp/batchrun
      8. tar -xvf /var/tmp/batchrun/batchrun.tar
      9. tar -C / -xzvpf /var/tmp/batchrun/batchrun_mas.tgz
      10. cd /etc/merce
      11. ci -l Netconfig.sh (if you check in as root, permissions
        and ownership will be changed. Please note them down before
        checking it in). Remember that a backup copy
        of Netconfig.sh is very important as it is the main
        configuration file of this system. Do not proceed
        further without checking this file into RCS.
      12. cat /var/tmp/batchrun/Netconfig_batchrun.sh >>
        /etc/merce/Netconfig.sh
      13. check for the ownership and permissions of
        /etc/merce/Netconfig.sh.They have to be the orignal noted
        down ownership and permissions.
      14. mkdir -p /opt/merce/data/procstat/
      15. chown bin.merce /opt/merce/data/procstat/
      16. chmod +030 /opt/merce/data/procstat
      17. cd /opt/merce/lib/
      18. ci -l FileSendRecvConfig (if you check in as root,
        permissions and ownership will be changed. Please notthem
        down before checking it in).
      19. Append this line to
        /opt/merce/lib/FileSendRecvConfig
        • q.*.execbatchrun*
    2. CONFIGURATION OF BATCHRUN ON MERCE SLAVE
      1. cd /var/warehouse/merce/mods/batchrun
      2. scp batchrun.tar root@merce-slave:/var/tmp
      3. ssh root@merce-slave
      4. cd /var/tmp
      5. mkdir batchrun
      6. cd /var/tmp/batchrun
      7. mv /var/tmp/batchrun.tar /var/tmp/batchrun
      8. tar -xvf /var/tmp/batchrun/batchrun.tar
      9. tar -C / -xzvpf /var/tmp/batchrun/batchrun_slv.tgz
      10. cd /etc/merce
      11. ci -l Netconfig.sh (if you check in as root, permissions
        and ownership will be changed. Please note them down before
        checking it in). Remember that a backup copy
        of Netconfig.sh is very important as it is the main
        configuration file of this system. Do not proceed
        further without checking this file into RCS.
      12. cat /var/tmp/batchrun/Netconfig_batchrun.sh >>
        /etc/merce/Netconfig.sh
      13. check for the ownership and permissions of
        /etc/merce/Netconfig.sh.They have to be the orignal noted
        down ownership and permissions.
      14. cd /opt/merce/lib/
      15. ci -l FileSendRecvConfig (if you check in as root,
        permissions and ownership will be changed. Please notthem
        down before checking it in).
      16. Append this line to
        /opt/merce/lib/FileSendRecvConfig
        • q.*.outputbatchrun*
    3. TESTING OF BATCHRUN ON MERCE INSTALLATION
      1. cd /opt/merce/bin
      2. ./batchrun -h | less
      3. Read it as you would read a man page. Execute a
        sample script. Remember that any script that you
        execute will be executed with root privileges. So
        take care of knowing what script you are going to
        execute.
      4. The output of the script will be obtained in
        /opt/merce/data/procstat. The intimation mails will
        be sent by default to netsupport@starcomsoftware.com
      5. If you have any doubts in executing batchrun
        please consult Saurabh.