CRAB

Reference page

1. Certification (with NICE account)

  • We should Renew here
  • Click on "Request or renew user certificate using Internet Explorer" and follow the guide and then the install information shown.

2. Getting the "private key" following as here

Export from Internet Explorer
  • Run Internet Explorer
  • Menu Tools -> Internet Options
  • Select Tab Content -> Click Certificates
  • Select Tab Personal
  • Select your certificate (issued to yourlogin by CERN Trusted Certification Authority)
  • Click Export -> Click Next
  • Select Yes Export the Private Key -> Click Next
  • Select Enable strong protection -> Click Next
  • Type in a password and DO NOT FORGET IT -> Click Next
  • Select a filename (myCert.p12) to save your certificate to, better save it into your My Documents folder -> Click Next
  • Click Finish
    • Then you might have to rename the file myCert.p12.pfx to myCert.p12 before moving on.

Export from Mozilla Firefox

  • Open Mozilla Firefox.
  • In the main menu click Tools->Options.
  • From the Options dialog select Advanced->Encryption->View Certificates.
  • From the "Certificate Manager" window, select the "Your Certificates" tab, then select the certificate you want to export and click the Backup button.
  • Choose the folder where you want the certificate to be saved and the certificate file name, making sure it ends with '.p12', such as 'myCert.p12', then click "Save".
  • Enter a password for the certificate backup and click "Ok".

Moving "myCert.p12.pfx" to "the place to want to run" and make the "pem" key

  • Copy the above PKCS#12 myCert.p12 file to the computer where you will run grid-proxy-init.
  • Extract your certificate (which contains the public key) and the private key:
    • Certificate:
      • openssl pkcs12 -in myCert.p12 -clcerts -nokeys -out $HOME/.globus/usercert.pem
    • To get the encrypted private key:
      • openssl pkcs12 -in myCert.p12 -nocerts -out $HOME/.globus/userkey.pem
    • You must set the mode on your userkey.pem file to read/write only by the owner, otherwise grid-proxy-init will not use it (chmod go-rw $HOME/.globus/userkey.pem).
  • chmod 600 user*
  • Delete the myCert.p12 file created above to avoid security issues.

In order to confirm


]ls -al  $HOME/.globus
]-rw-r--r--  1 dmoon zh 2678 Jul  5 22:50 usercert.pem
]-rw-------  1 dmoon zh 1206 Jul  5 22:51 userkey.pem

VO registration
  • Please visit here
  • click the "member info" *1) Instructions for users of VOs using the VOMRS registration interface
    • using below link here
  • to check my status
    • click "search" and see my status
    • if the status is expired, you should send e-mail to Martti Pimia

  • if the VO ok, you can go to next step SiteDB? registration

SiteDB? registration
  • follow this below instruction here
] rm -rf ~/.cms_sitedbcache
] rm -rf /tmp/jsonparser_USER

Running CRAB
  • Referencing page here
    • As soon as you login, you should do source1, in order to void python version problem
    • source 1 : source /afs/cern.ch/cms/LCG/LCG-2/UI/cms_ui_env.csh
    • moving work directory and cmsenv
    • source 2 : source /afs/cern.ch/cms/ccs/wm/scripts/Crab/crab.csh
    • getting "crab.cfg"
    • How to make crab.cfg file

  • crab commend and options
    • crab -create
    • crab -submit -c "crab folder"
    • crab -status -c "crab folder"
    • crab -getoutput -c "crab folder"
    • crab -resubmit numbers
    • examples
      ] crab -create
      ] crab -submit
      ] crab -status
               

Setting of publish

  • Normal Setting
[CRAB]
jobtype      = cmssw
scheduler    = remoteGlidein
use_server   = 0

[CMSSW]
#lumi_mask               = aaa.txt
total_number_of_lumis   = -1
#lumis_per_job           = 5
number_of_jobs          = 500
dbs_url                 = http://cmsdbsprod.cern.ch/cms_dbs_ph_analysis_01/servlet/DBSServlet
datasetpath             = /PYTHIA6_JPsiWithFSR_tuneD6T_2TeV76/miheejo-OniaSkim_JPsiWithFSR_HiWinter13-pp_STARTHI53_V28-v1-ccfdaebb33f7499d2adfd99ee89a7738/USER
pset                    = Onia2MuMuPAT_TnP2015_ppMC_cfg.py
#runselection            = 181611-183013
output_file             = tnp_pp_regit.root

[USER]
eMail                   = dmoon@cern.ch
return_data             = 0

#additional_input_files = rssLimit

ui_working_dir = TnP_pp_Skim

storage_element=T2_KR_KNU
storage_path=/srm/v2/server?SFN=/pnfs/knu.ac.kr/data/cms/store/user/dmoon/
user_remote_dir = TnP_pp_Skim

return_data = 1
copy_data = 0
local_stage_out= 0


[GRID]
rb                      = CERN
proxy_server            = myproxy.cern.ch
virtual_organization    = cms

  • Publish
[CRAB]
jobtype      = cmssw
scheduler    = remoteGlidein
#scheduler    = glidein
use_server   = 0
#use_server   = 1

[CMSSW]
lumi_mask               = Cert_181530-183126_HI7TeV_PromptReco_Collisions11_JSON_MuonPhys_HF.txt
show_prod               = 1
total_number_of_lumis   = -1
lumis_per_job           = 10
datasetpath             = /HIDiMuon/HIRun2011-PromptReco-v1/RECO
#use_parent              = 1
pset                    = test.py
get_edm_output          = 1

[USER]
additional_input_files  = /afs/cern.ch/work/d/dmoon/Analysis/JpsiV2/cms442patch5/src/UserCode/HiSkimTrkTrk/flatparms.db
eMail                   = dmoon@cern.ch
return_data             = 0

ui_working_dir = OniaSkim_Org

#storage_element=srm-cms.cern.ch
#outputdir=/afs/cern.ch/work/d/dmoon/Analysis/JpsiV2/cms442patch5/src/UserCode/HiSkimOrg/OutPutFiles

#return_data = 1
#copy_data = 0
#local_stage_out= 0

storage_element = cluster142.knu.ac.kr
storage_path = /srm/managerv2?SFN=/pnfs/knu.ac.kr/data/cms/store/user/dmoon/HiSkimGlbGlb2/
user_remote_dir = Onia2MuMu_GlbGlb_NewSkim_v1

return_data = 0
copy_data = 1
local_stage_out= 0

# Using CMS Storage Name Convention
storage_element = T2_KR_KNU

publish_data=1
publish_data_name = Onia2MuMu_MiniGlbGlb-Skim_v0
dbs_url_for_publication = https://cmsdbsprod.cern.ch:8443/cms_dbs_ph_analysis_01_writer/servlet/DBSServlet


[GRID]
rb                      = CERN
proxy_server            = myproxy.cern.ch
virtual_organization    = cms

-- DongHoMoon - 20 Aug 2009

Topic attachments
I Attachment History Action Size Date Who Comment
PNGpng Crab01.png r2 r1 manage 66.1 K 2009-10-29 - 16:55 UnknownUser  
PNGpng Crab02.png r1 manage 52.6 K 2009-10-29 - 16:53 UnknownUser  
Edit | Attach | Watch | Print version | History: r6 < r5 < r4 < r3 < r2 | Backlinks | Raw View | WYSIWYG | More topic actions
Topic revision: r6 - 2015-09-15 - DongHoMoon
 
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