Created
August 18, 2019 19:01
-
-
Save scottstanfield/243eeeafdf2c3cf10cc5705ccfcc14f6 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
set -o errexit | |
set -o pipefail | |
# BSSID | |
# CHANNEL | |
# SSID | |
# CtlRSSI | |
cmd="/System/Library/PrivateFrameworks/Apple*.framework/Versions/Current/Resources/airport -I" | |
printf 'RSI\tAP MAC\t\t\tSSID\n' | |
while true; do | |
$cmd | sed 's/:/|/' | grep -e 'BSSID' -e 'SSID' -e 'CtlRSSI' | cut -f2 -d '|' | paste -s | |
sleep 0.5 | |
done | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I use this script all the time to walk around my house and see the relative wifi signal strength. It shows the access point MAC address (I have 6), the RSSI and the SSID.