VM Setup

  1. Install the following python libraries using your favorite method:
    • pika
    • json
  2. Install the accounting reporting tool
    1. Download the file from here: https://wiki.heprc.uvic.ca/twiki/pub/HEPrc/AccountingNotes/nep52accountant
    2. Copy to /usr/local/bin
    3. Make sure file is executable
    4. Open the file and make sure the python executable on the first line of the script is OK. Edit as needed.
  3. Add the following line to /etc/condor/condor_config.local
    NEP52ACNT_HOOK_JOB_EXIT = /usr/local/bin/nep52accountant

Job Setup

  1. Add the following line to jobs you want to report accounting data:
    +HookKeyword = "NEP52ACNT"

That's it! From now on, these jobs will report back the classad of completed jobs to a data collector on babar.cloud.nrc.ca.

-- AndreCharbonneau - 2011-08-29

Topic attachments
I Attachment History Action Size Date Who Comment
Unknown file formatEXT nep52accountant r1 manage 0.7 K 2011-08-29 - 14:05 UnknownUser Accounting scripts to be installed in VMs
Edit | Attach | Watch | Print version | History: r11 | r4 < r3 < r2 < r1 | Backlinks | Raw View | More topic actions...
Topic revision: r1 - 2011-08-29 - andrec
  • Edit
  • Attach
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2020 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback