CRAB job submission from UI3

1: login to UI3 machine from your desktop or laptop via ssh: ssh login-id@ui3.indiacms.res.in
eg. ssh ppatel@ui3.indiacms.res.in

2: Generate your grid poxy: voms-proxy-init --voms cms // (12 hours by default)
// voms-proxy-init --voms cms --valid 168:00 // valid for 7 days
// default location of created proxy is /tmp/x509up_u
// view your proxy, for eg. [ppatel@ui3 ~]$ voms-proxy-info

3: Go to your working directory and source cvmfs : source /cvmfs/cms.cern.ch/cmsset_default.sh

4: check your scram architecture: echo $SCRAM_ARCH
if there is no output OR looking for desire scram architecture:
export SCRAM_ARCH=slc7_amd64_gcc700

5: After settingup desired scram architecture, install CMSSW:
cd t3store3
mkdir CRAB3-test
cd CRAB3-test
cmsrel CMSSW_10_6_18
cd CMSSW_10_6_18/src OR cd ~/t3store3/CRAB3-test/CMSSW_10_6_18/src // CMSSW environment
cmsenv
which crab OR crab --version // verify CRAB installation

6: For CMSSW job configuration, refer section "CMSSW parameter-set configuration" in this link: https://twiki.cern.ch/twiki/bin/view/CMSPublic/WorkBookCRAB3Tutorial