r3 - 08 Feb 2010 - 21:00:58 - MiheeJoYou are here: KoreaCmsWiki >  Main Web > TWikiUsers > MiheeJo > MhJoMiscellaneous

Tips for useful programs

PUTTY

  • Backup configuration : import and export HKEY_CURRENT_USER\Software\SimonTatham\PuTTY in the regedit

CRAB

  1. Grid certificate
    1. Get your web browser CERN CA certification. These files must be upload at your lxplus($HOME/.globus) after you get your my_cert.p12. To get converted usercert.pem, userkey.pem files, use this command in the lxplus machine.
       openssl pkcs12 -export -inkey userkey.pem -in usercert.pem -out my_cert.p12
      Permission of those files is below.
      -rw-r--r--  usercert.pem
      -rw-------  userkey.pem
    2. Register VOMRS. Put your CERN e-mail address. Choose Martti Pimia as Representative. The average CMS user should only select the combination /cms/Role=cmsuser. More details are here. VOMRS certificate is validated via e-mails. They send you an e-mail in every steps. Check your e-mail regularly before you get Accepted status finally.
  2. siteDB registration
    1. Register siteDB. Detail procedure is here. You can get your DN from VOMRS site. It is written at the bottom, left in that page.
  3. Set up environments
    1. Execute shell scripts.
      source /afs/cern.ch/cms/LCG/LCG-2/UI/cms_ui_env.csh
      source /afs/cern.ch/cms/ccs/wm/scripts/Crab/crab.csh
    2. Copy crab.cfg from /afs/cern.ch/cms/ccs/wm/scripts/Crab/. Put this under CMSSW directory which you want to do cmsRun test_cfg.py.
  4. Run CRAB
    1. Detail of crab.cfg is here. In many cases, you don't have to publish your result. But you would be need to copy results to a Storage Element(SE). To analyse published results in other servers, not CERN T0 servers (like MIT T2), add *dbs_url = * under [CMSSW] with provided by server administrator.
    2. CRAB command
      crab -create
      crab -submit
      crab -status
    3. CRAB example

Attached files

  • crab.cfg : Example of crab.cfg. This file use MIT T2 server.
  • tcshrc : Basic environment setting shell script under ~/ directory. Change file name into ".tcshrc" before use.
  • vimrc : Preference setting file for vi editor. Put this under ~/ directory. Change file name into ".vimrc" before use. It would be better set environment variable $LANG=UTF-8 to print Hangul.

-- MiheeJo - 11 Jan 2010

Topic attachments
I Attachment Action Size Date Who Comment
elsecfg crab.cfg manage 4.0 K 08 Feb 2010 - 20:58 MiheeJo  
elseEXT tcshrc manage 0.8 K 11 Jan 2010 - 16:25 MiheeJo  
elseEXT vimrc manage 12.7 K 11 Jan 2010 - 16:24 MiheeJo  
Edit | WYSIWYG | Attach | Printable | Raw View | Backlinks: Web, All Webs | History: r3 < r2 < r1 | More topic actions
 
KOREA-CMS
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