Project

General

Profile

Set up ups

host="`echo $HOSTNAME |sed s/.fnal.gov//`" 
echo "Setting up for HOST NAME: $host" 
case $host in
    if01|if02|if03|if04|if05|minervagpvm01|minervagpvm02 ) #minerva nodes
       if [  -f "/grid/fermiapp/products/minerva/etc/setups.sh" ]
       then
         . /grid/fermiapp/products/minerva/etc/setups.sh
         if ups exist login
         then
           setup login
         fi
       fi
       echo "Setup as MINERVA node";;
    gpcf028|gpcf029|novagpvm01|novagpvm02|novagpvm03|novagpvm04|novagpvm05 )  #nova nodes
       if [  -f "/grid/fermiapp/products/nova/etc/setups.sh" ]
       then
         . /grid/fermiapp/products/nova/etc/setups.sh
         if ups exist login
         then
           setup login
         fi
       fi
       echo "Setup as NOVA node" ;;
    lbnegpvm01 ) #lbne node
       if [  -f "/grid/fermiapp/products/lbne/etc/setups.sh" ]
       then
         . /grid/fermiapp/products/lbne/etc/setups.sh
         if ups exist login
         then
           setup login
         fi
       fi
       echo "Set up as LBNE node" ;;
    * ) # other nodes, use standard ups setup
       if [  -f "/afs/fnal.gov/ups/etc/setups.sh" ]
       then
         . "/afs/fnal.gov/ups/etc/setups.sh" 
         if ups exist login
         then
           setup login
         fi
       fi
       echo "Set up as REGULAR non-IF node";;
esac
#old ups setup
#if [  -f "/afs/fnal.gov/ups/etc/setups.sh" ]
# new setup for experiment (minerva example)
#if [  -f "/grid/fermiapp/products/minerva/etc/setups.sh" ]
#then
# old
#    . "/afs/fnal.gov/ups/etc/setups.sh" 
# new setup for experiment (minerva example)
#     . /grid/fermiapp/products/minerva/etc/setups.sh
#    if ups exist login
#    then
#        setup login
#    fi
#fi