projects
/
dell-switch
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
really working, simpler, mac2name
[dell-switch]
/
sw-ip-name-mac.sh
1
#!/bin/sh
2
3
./sw-names | fping -q
4
/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
5