Changeset 2322 in /cluster/svnroot


Ignore:
Timestamp:
Apr 8, 2010 5:41:23 PM (11 years ago)
Author:
fitz
Message:

Redirect snmpget to /dev/null (#494)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • bccd-ng/trunk/trees/bin/bccd-allowall

    r2179 r2322  
    1818        DIR=$1
    1919        for HOST in `find /tmp/bccd/ -mindepth 1 -maxdepth 1 -type d|sed -e 's!/tmp/bccd/!!g'`; do
    20                 NUMKEYS=`snmpget -Ls d -OQv -c public -v 1 $HOST .1.3.6.1.4.1.2021.83.3.1.3.12.115.115.104.95.107.101.121.95.108.105.115.116`
     20                NUMKEYS=`snmpget -Ls d -OQv -c public -v 1 $HOST .1.3.6.1.4.1.2021.83.3.1.3.12.115.115.104.95.107.101.121.95.108.105.115.116 2> /dev/null`
    2121                if test $? -ne 0; then
    2222                        NUMKEYS=0
    2323                fi
    2424                for((i=1;i<=$NUMKEYS;i++)); do
    25                         KEY=`snmpget -Ls d -OQv -c public -v 1 $HOST .1.3.6.1.4.1.2021.83.4.1.2.8.115.115.104.95.107.101.121.115.$i|sed -e 's!"!!g'`
     25                        KEY=`snmpget -Ls d -OQv -c public -v 1 $HOST .1.3.6.1.4.1.2021.83.4.1.2.8.115.115.104.95.107.101.121.115.$i|sed -e 's!"!!g' 2> /dev/null`
    2626                        write_key "$KEY"
    2727                done
Note: See TracChangeset for help on using the changeset viewer.