projects
/
dell-switch
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9386eb3
)
generate /dev/shm/sw-ip-name-mac
author
Dobrica Pavlinusic
<dpavlin@rot13.org>
Sun, 3 Apr 2022 19:05:21 +0000
(21:05 +0200)
committer
Dobrica Pavlinusic
<dpavlin@rot13.org>
Sun, 3 Apr 2022 19:05:21 +0000
(21:05 +0200)
sw-ip-name-mac.sh
[new file with mode: 0755]
patch
|
blob
diff --git a/sw-ip-name-mac.sh
b/sw-ip-name-mac.sh
new file mode 100755
(executable)
index 0000000..
3d8dd62
--- /dev/null
+++ b/
sw-ip-name-mac.sh
@@ -0,0
+1,5
@@
+#!/bin/sh
+
+./sw-names | fping -q
+/usr/sbin/arp -a | grep 10.20.0 | awk '{ print $2 " " $1 " " $4 }' | tr -d \( | tr -d \) | sed 's/\.infosl//' | tee /dev/shm/sw-ip-name-mac
+