read commands from STDIN if used as pipe
[dell-switch] / wap-mac-list.sh
1 #!/bin/sh
2
3 # seed arp
4 ./wap-names | xargs fping -q
5 # extract mac
6 sudo arp -a | grep wap | awk '{ print $4" "$1 }' | sed 's/\.infosl$//' | tee /dev/shm/mac.wap