Project

General

Profile

Testing Fermigrid workers

A few Minos managers are authorized to log in to Fermigrid worker nodes.

Here is some advice from Steve Timm on how to scan all nodes :

ssh fnpcsrv564.fnal.gov

. /fnal/ups/etc/setups.sh

setup tac

  • command line spec of nodes
    bash-3.2$ tac -u kreymer -c "touch /minos/data/users/kreymer/FOO" -B fnpc \
    "350-399 2000-2128 3000-3089 4000-4059"
  • file list of nodes
    tac -u kreymer -c "touch /minos/data/users/kreymer/FOO" -f gpgrid
    

    Can only use lists predefined at $TAC_DIR/bin/clusters
  • Add -R to suppress the RUP test
  • Host lists :

For example, for CDF :

CDFN=`curl http://fermigrid.fnal.gov/monitor/csv/fcdf13x1-gatekeeper-information.csv 2>/dev/null | grep ^fcdfcaf | sort -u | cut -c 8- | cut -f 1 -d .` 

Lists are indexed at http://fermigrid.fnal.gov/monitor/fermigrid-worker-lists.html
To build a compact list :
CDFN=`curl http://fermigrid.fnal.gov/monitor/csv/fcdf13x1-gatekeeper-information.csv 2>/dev/null | grep ^fcdfcaf | sort -u | cut -c 8- | cut -f 1 -d .`
printf "$CDFN\n" | wc -l

CDFS=`
FIRS=0
PREV=0
PRED=1

for N in ${CDFN} 9999 ; do
if [ ${FIRS} -eq 0 ] ; then FIRS=${N} ; else
if [ ${N} -ne ${PRED} ] ; then
    if [ ${FIRS} -eq ${PREV} ] ;  then 
        printf "${FIRS} " 
    else
        printf "${FIRS}-${PREV} " 
    fi
        FIRS=${N}
        PREV=${N}
fi 
fi
PREV=${N}
(( PRED = N + 1 ))
[ ${N} -eq 9999 ] && echo
done
`
echo $CDFS

tac -u kreymer -c "ls /minos/data2 > /dev/null" -B fcdfcaf "${CDFS}"