projects
/
dell-switch
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9396b23
)
don't chop last octet of mac
author
Dobrica Pavlinusic
<dpavlin@rot13.org>
Wed, 11 Apr 2018 16:59:30 +0000
(18:59 +0200)
committer
Dobrica Pavlinusic
<dpavlin@rot13.org>
Wed, 11 Apr 2018 16:59:30 +0000
(18:59 +0200)
snmp-mac-port
patch
|
blob
|
history
diff --git
a/snmp-mac-port
b/snmp-mac-port
index
43e69af
..
e9b9306
100755
(executable)
--- a/
snmp-mac-port
+++ b/
snmp-mac-port
@@
-7,7
+7,7
@@
test -d $log || mkdir $log
snmp_walk() {
ip=$1
- snmpwalk -O0sUX -v2c -Cc -c $COMMUNITY $ip BRIDGE-MIB::dot1dTpFdbPort | sed -e "s/^[^:]*:/$ip/" -e 's/
:[^:]*: / /' -e 's/
\].*: / /' | tee $log/$ip
+ snmpwalk -O0sUX -v2c -Cc -c $COMMUNITY $ip BRIDGE-MIB::dot1dTpFdbPort | sed -e "s/^[^:]*:/$ip/" -e 's/\].*: / /' | tee $log/$ip
}
if [ ! -z "$1" ] ; then