forked from davidsheffield/McMScripts
-
Notifications
You must be signed in to change notification settings - Fork 4
/
example_commands.txt
46 lines (31 loc) · 1.54 KB
/
example_commands.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
# setup environment
cd /afs/cern.ch/work/p/perrozzi/private/git/Hbb/validations/CMSSW_7_1_20_patch2/src; cmsenv; cd -
cern-get-sso-cookie -u https://cms-pdmv.cern.ch/mcm/ -o ~/private/prod-cookie.txt --krb --reprocess
cern-get-sso-cookie -u https://cms-pdmv-dev.cern.ch/mcm/ -o ~/private/dev-cookie.txt --krb --reprocess
voms-proxy-init -voms cms
# list of requests (only prep-Ids)
python getRequests.py "actor=perrozzi&member_of_campaign=*LHE*&status=new"
# list of requests (with more info, from dataset names to full info)
python getRequests.py -listattr 0 "actor=perrozzi&member_of_campaign=*GS*&status=new"
...
python getRequests.py -listattr 5 "actor=perrozzi&member_of_campaign=*GS*&status=new"
# check list of requests
python checkRequests.py PrepIDList
# new requests
python manageRequests.py -c name_of_campaign input.csv
# clone existing requests (cloning works one to many [as many lines as are in input.csv])
python manageRequests.py --clone PrepId_of_request_to_clone input.csv
# modify existing requests
python manageRequests.py -m input.csv
# Create a test of requests
python testRequests.py -i PrepIDList
# Extract the time and size per event from the tests
python testRequests.py -f file.csv
# Validate chained requests
python validateChains.py PrepIDList
# validate chains
python validateChains.py PrepIDList
# replace tab separated (excel likes it...) to comma separated (the script needs it...)
sed -i 's/\t/,/g' file.csv
# remove colors from colored STDOUT
more log.log | sed -r "s/\x1B\[([0-9]{1,2}(;[0-9]{1,2})?)?[mGK]//g" > log2.log