How to install and use batchrun
Submitted by saurabh on Thu, 2007-01-11 19:39
HOW TO INSTALL AND USE BATCHRUN ON MERCE/MTRACKS
- CONFIGURATION OF BATCHRUN ON MERCE MASTER
- cd /var/warehouse/merce/mods/batchrun
- scp batchrun.tar root@merce-master:/var/tmp
- ssh root@merce-master
- cd /var/tmp
- mkdir batchrun
- cd /var/tmp/batchrun
- mv /var/tmp/batchrun.tar /var/tmp/batchrun
- tar -xvf /var/tmp/batchrun/batchrun.tar
- tar -C / -xzvpf /var/tmp/batchrun/batchrun_mas.tgz
- cd /etc/merce
- 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. - cat /var/tmp/batchrun/Netconfig_batchrun.sh >>
/etc/merce/Netconfig.sh - check for the ownership and permissions of
/etc/merce/Netconfig.sh.They have to be the orignal noted
down ownership and permissions. - mkdir -p /opt/merce/data/procstat/
- chown bin.merce /opt/merce/data/procstat/
- chmod +030 /opt/merce/data/procstat
- cd /opt/merce/lib/
- ci -l FileSendRecvConfig (if you check in as root,
permissions and ownership will be changed. Please notthem
down before checking it in). - Append this line to
/opt/merce/lib/FileSendRecvConfig- q.*.execbatchrun*
- CONFIGURATION OF BATCHRUN ON MERCE SLAVE
- cd /var/warehouse/merce/mods/batchrun
- scp batchrun.tar root@merce-slave:/var/tmp
- ssh root@merce-slave
- cd /var/tmp
- mkdir batchrun
- cd /var/tmp/batchrun
- mv /var/tmp/batchrun.tar /var/tmp/batchrun
- tar -xvf /var/tmp/batchrun/batchrun.tar
- tar -C / -xzvpf /var/tmp/batchrun/batchrun_slv.tgz
- cd /etc/merce
- 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. - cat /var/tmp/batchrun/Netconfig_batchrun.sh >>
/etc/merce/Netconfig.sh - check for the ownership and permissions of
/etc/merce/Netconfig.sh.They have to be the orignal noted
down ownership and permissions. - cd /opt/merce/lib/
- ci -l FileSendRecvConfig (if you check in as root,
permissions and ownership will be changed. Please notthem
down before checking it in). - Append this line to
/opt/merce/lib/FileSendRecvConfig- q.*.outputbatchrun*
- TESTING OF BATCHRUN ON MERCE INSTALLATION
- cd /opt/merce/bin
- ./batchrun -h | less
- 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. - 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 - If you have any doubts in executing batchrun
please consult Saurabh.
»
- Login to post comments
- Printer-friendly version
- Send to friend