# Get the nodes in the cobalt reservation. The reservation must be active.
RESVCACHE=$LOFARROOT/var/run/slurmresv.cache
RESVNODES=$(ssh $HEADNODE scontrol show res -o$SLURM_RESERVATION | perl -n-e'm/Nodes=(.*?) .*State=ACTIVE/ ? print STDOUT $1 : die "No active cobalt reservation found"')
COMPCACHE=$LOFARROOT/var/run/compnodes.cache
if[$?-eq 0 ];then
echo"Active reservation '$SLURM_RESERVATION' found, get online nodes in the reservation"
# Get the reserved CEP4 nodes for output writing. Try three methods in order of precedence: