File copy program

sudo -u dqm -H bash at srv-c2d05-{15,16,17,18}

mkdir YourDirectory
cd YourDirectory
mkdir log
source ~cmssw2/cmsset_default.sh     # Get CMS commands like 'scramv1'
CMSSW_V=CMSSW_2_1_9
scramv1 p CMSSW $CMSSW_V
cd $CMSSW_V/src
cvs -Q co DQM/Integration/scripts
cd -
cp $CMSSW_V/src/DQM/Integration/scripts/filesave_online.py .
cp $CMSSW_V/src/DQM/Integration/scripts/alivecheck_filesave.sh .
cp $CMSSW_V/src/DQM/Integration/scripts/sistrip_reduce_file.C .
cp $CMSSW_V/src/DQM/Integration/scripts/convert.sh .
cp $CMSSW_V/src/DQM/Integration/scripts/filechk.C .
cp $CMSSW_V/src/DQM/Integration/scripts/filechk.sh .

modify the following entries in alivecheck_filesave.sh

export WorkDir=YourDirectory
export YourEmail=Hyunkwan.Seo@cern.ch

modify the following entries in filesave_online.py

#set environments
exedir = '/home/dqmprolocal/filecopy' # directory to execute the relevant scripts
DIR = '/home/dqmprolocal/output'  #directory to search new files
TMPDIR = '/data/dqm/.dropbox_tmp' # stealth area on cmsmon
FILEDIR = '/data/dqm/dropbox' # directory, to which files are stored
TimeTag = '/home/dqmprolocal/output/timetag' #file for time tag for searching new file
server = 'srv-c2d05-19' #machine to which files are transfered

make cronjob like following by crontab -e

0,5,10,15,20,25,30,35,40,45,50,55 * * * * YourDirectory?/alivecheck_filesave.sh >& /dev/null

then, file copy will start automatically.

File merge and register

sudo -u dqm -H bash at srv-c2d05-19

mkdir YourDirectory
cd YourDirectory
source /home/dqm/rpms/cmsset_default.sh
scramv1 p CMSSW CMSSW_2_1_6
cd CMSSW_2_1_6/src
cvs -Q co DQM/Integration
cvs -Q co DQMServices VisMonitoring/DQMServer
cvs -Q up -r V03-03-06 DQMServices/Core
cvs -Q up -r V03-03-03 DQMServices/Components
perl -p -i -e 's|";$|.,:%[]>";| if /s_safe =/' DQMServices/Core/src/DQMStore.cc
cp DQM/Integration/bin/getDQMSummary.py .
##### replace getDQMSummary.py with /data/dqm/filereg/getDQMSummary.py
##### in  DQM/Integration/bin/GetAndWriteDQMSummaryIntoOMDS.cpp
scramv1 b -j 4
source /home/dqm/rpms/slc4_ia32_gcc345/cms/dqmgui/4.2.3/etc/profile.d/env.sh
cmsenv
cd -
export TNS_ADMIN=/nfshome0/xiezhen/conddb

cp DQM/Integration/scripts/alivecheck_dqmPostProcessing.sh .
cp DQM/Integration/scripts/dqmPostProcessing_online.py .
cp DQM/Integration/scripts/mergeAndRegister.py .
cp DQM/Integration/scripts/setupForFileReg.sh .

make setupForFileReg.sh containing the following commands

#! /bin/bash

source /home/dqm/rpms/cmsset_default.sh
cd YourDirectory/CMSSW_2_1_6/src
source /home/dqm/rpms/slc4_ia32_gcc345/cms/dqmgui/4.2.3/etc/profile.d/env.sh
cmsenv
cd -

make cronjob like following by crontab -e

0,5,10,15,20,25,30,35,40,45,50,55 * * * * YourDirectory?/alivecheck_dqmPostProcessing.sh >& /dev/null

then, file merge and register will start automatically.

-- HyunkwanSeo - 24 Sep 2008

Edit | Attach | Watch | Print version | History: r8 | r6 < r5 < r4 < r3 | Backlinks | Raw View | Raw edit | More topic actions...
Topic revision: r4 - 2008-10-01 - HyunkwanSeo
 
KOREA-CMS
This site is powered by the TWiki collaboration platform Powered by Perl This site is powered by the TWiki collaboration platformCopyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding KoreaCmsWiki? Send feedback