projects
/
dell-switch
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8d5c2a0
)
don't commit specific OID dumps
author
Dobrica Pavlinusic
<dpavlin@rot13.org>
Mon, 9 Jul 2018 14:19:36 +0000
(16:19 +0200)
committer
Dobrica Pavlinusic
<dpavlin@rot13.org>
Mon, 9 Jul 2018 14:19:36 +0000
(16:19 +0200)
sw-snmpbulkwalk.sh
patch
|
blob
|
history
diff --git
a/sw-snmpbulkwalk.sh
b/sw-snmpbulkwalk.sh
index
2520233
..
abdc908
100755
(executable)
--- a/
sw-snmpbulkwalk.sh
+++ b/
sw-snmpbulkwalk.sh
@@
-14,5
+14,5
@@
if [ ! -z "$2" ] ; then
fi
( test ! -z "$1" && echo $1 || ./sw-names ) | xargs -i sh -c \
-"snmpbulkwalk -OX -v2c -Cc -c $COMMUNITY {} $2 | tee $dir/$ext{} && cd $dir && git add $dir/$ext{} && git commit -m $2 $dir/$ext{}" #| parallel
+"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