- Set up CMS Connect account: https://connect.uscms.org/
- Log in to CMS connect and download files:
wget https://gist.githubusercontent.com/kpedro88/effc271a43d0dfbd7b6e960b35d663d1/raw/testT1eos.sh wget https://gist.githubusercontent.com/kpedro88/effc271a43d0dfbd7b6e960b35d663d1/raw/testT1eos.jdl chmod +x testT1eos.sh
- Edit JDL file to change input file to an EOS file whose accessibility you want to test
- Submit job:
condor_submit testT1eos.jdl
Last active
July 15, 2022 14:48
-
-
Save kpedro88/effc271a43d0dfbd7b6e960b35d663d1 to your computer and use it in GitHub Desktop.
testT1eos
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
universe = vanilla | |
Executable = testT1eos.sh | |
+REQUIRED_OS = "rhel7" | |
+DesiredOS = REQUIRED_OS | |
request_cpus = 1 | |
Should_Transfer_Files = YES | |
WhenToTransferOutput = ON_EXIT_OR_EVICT | |
Transfer_Input_Files = testT1eos.sh | |
Output = testT1_$(Process)_$(Cluster).stdout | |
Error = testT1_$(Process)_$(Cluster).stderr | |
Log = testT1_$(Process)_$(Cluster).condor | |
notification = Never | |
x509userproxy = $ENV(X509_USER_PROXY) | |
Arguments = -i root://cmseos.fnal.gov//store/user/lpcsusyhad/SusyRA2Analysis2015/Run2ProductionV20/pedrok/CMSSW_10_6_29_patch1.tar.gz | |
want_graceful_removal = true | |
on_exit_remove = (ExitBySignal == False) && (ExitCode == 0) | |
on_exit_hold = ( (ExitBySignal == True) || (ExitCode != 0) ) | |
on_exit_hold_reason = strcat("Job held by ON_EXIT_HOLD due to ",\ | |
ifThenElse((ExitBySignal == True), "exit by signal", \ | |
strcat("exit code ",ExitCode)), ".") | |
job_machine_attrs = "GLIDEIN_CMSSite" | |
+AvoidSystemPeriodicRemove = True | |
+DESIRED_Sites = "T1_US_FNAL" | |
Queue 1 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
export INFILE="" | |
export OPTIND=1 | |
while [[ $OPTIND -le $# ]]; do | |
# getopts in silent mode, don't exit on errors | |
OPTOLD=$OPTIND | |
getopts ":i:" opt || status=$? | |
case "$opt" in | |
i) export INFILE=$OPTARG | |
;; | |
# keep going if getopts had an error, but make sure not to skip anything | |
\? | :) OPTIND=$((OPTOLD+1)) | |
;; | |
esac | |
done | |
echo "Starting job on "`date` # to display the start date | |
echo "Running on "`uname -a` # to display the machine where the job is running | |
echo "System release "`cat /etc/redhat-release` # and the system release | |
echo "whoami: "`whoami` | |
echo "voms info: "`voms-proxy-info --all` | |
echo "Getting CMSSW via xrdcp" | |
xrdcp -f $INFILE . |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment