Skip to content

Instantly share code, notes, and snippets.

@scottstanfield
Created August 18, 2019 19:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save scottstanfield/243eeeafdf2c3cf10cc5705ccfcc14f6 to your computer and use it in GitHub Desktop.
Save scottstanfield/243eeeafdf2c3cf10cc5705ccfcc14f6 to your computer and use it in GitHub Desktop.
#!/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
@scottstanfield
Copy link
Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment