Changeset 2834 in /cluster/svnroot


Ignore:
Timestamp:
Nov 14, 2010 7:19:06 PM (10 years ago)
Author:
skylar
Message:

don't generate machines file when SNMP is non-functional (#559)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • bccd-ng/branches/skylar-devel/trees/bin/bccd-snarfhosts

    r2758 r2834  
    2424
    2525. /usr/local/Modules/3.2.6/init/bash
     26
     27set -o pipefail
    2628
    2729if ! test -z $1; then
     
    6971for n in $NODES;do
    7072        CPUCOUNT=`snmpget -OQv -c public -v 1 $n .1.3.6.1.4.1.2021.82.4.1.2.9.99.112.117.95.99.111.117.110.116.1|sed -e 's!"!!g'`
     73        RC=$?
     74        if test ${RC} -ne 0; then
     75                rm -f ${FILE}.lock
     76                echo "$(basename $0): SNMP on ${n} is non-functional with RC ${RC}!" >&2
     77                exit ${RC}
     78        fi
    7179        let HAVE_OPENMPI=HAVE_MPICH2=HAVE_LAM=1
    7280        if test -z $MPI; then
Note: See TracChangeset for help on using the changeset viewer.