projects
/
dell-switch
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9bd6820
)
show number of mac addresses on each port
author
Dobrica Pavlinusic
<dpavlin@rot13.org>
Thu, 5 Apr 2018 07:33:18 +0000
(09:33 +0200)
committer
Dobrica Pavlinusic
<dpavlin@rot13.org>
Thu, 5 Apr 2018 07:33:18 +0000
(09:33 +0200)
Usful for finding uplink ports
mac-by-port.sh
[new file with mode: 0755]
patch
|
blob
diff --git a/mac-by-port.sh
b/mac-by-port.sh
new file mode 100755
(executable)
index 0000000..
c1f3e2f
--- /dev/null
+++ b/
mac-by-port.sh
@@ -0,0
+1,3
@@
+#!/bin/sh
+
+grep : log/*bridge* | awk '{ print $1 " " $6 }' | sed -e 's,^.*/,,' -e 's/_/ /' -e 's/_[a-z]* /\t/' | sort | uniq -c