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