5 dir=/dev/shm/snmpbulkwalk/
6 test ! -d $dir && mkdir $dir
11 if [ ! -z "$2" ] ; then
13 test ! -d "$dir/$ext" && mkdir "$dir/$ext"
16 ( test ! -z "$1" && echo $1 || ./sw-names ) | xargs -i sh -c \
17 "snmpbulkwalk -OX -v2c -Cc -c $COMMUNITY {} $2 | tee $dir/$ext{} && test -z "$ext" && cd $dir && git add $dir/$ext{} && git commit -m $2 $dir/$ext{}" #| parallel