Apwatch.sh - little awk script to see associated stations from the shell

Here is an awk script for use on a Unix or Linux based device with SSH access to an OpenWRT access point to quickly grab a list of associated stations and statistics. Feedback welcomed.

Example output:

% apwatch.sh

  device                    sig    dBm      TX rate

lightsout2.4 [2.4GHz]
  tstat.livingroom ....... ▂▅█   -58 dBm  65 Mbps
  cam.doorbell ........... ▂▅█   -43 dBm  104 Mbps

Amtrack [5GHz]
  tv.bedroom ............. ▂▅_   -75 dBm  468 Mbps
  tv.livingroom .......... ▂▅█   -65 dBm  1080 Mbps

Central [5GHz]
  tv.kidroom ............. ▂__   -84 dBm  648 Mbps

Crosstown [5GHz]
  phone.company .......... ▂▅█   -62 dBm  2401 Mbps
  laptop.company ......... ▂▅█   -59 dBm  2401 Mbps

Lexington [5GHz]
  phone.wife ............. ▂▅█   -47 dBm  1200 Mbps
  phone.kid .............. ▂▅█   -59 dBm  2401 Mbps
  phone.mine ............. ▂▅█   -58 dBm  2401 Mbps
  laptop.wife ............ ▂▅█   -60 dBm  2401 Mbps

guest [5GHz]
  (no stations)

lightsout [5GHz]
  camera.window .......... ▂▅_   -74 dBm  780 Mbps
  camera.backdoor ........ ▂▅█   -65 dBm  780 Mbps
9 Likes

@darksky , is it possible to modify to support 6ghz?

# iwinfo

<snip>

phy0.2-ap0 ESSID: "xxx"
         Access Point: bc:fc:e7:27:xx:xx
         Mode: Master  Channel: 1 (5.955 GHz)  HT Mode: EHT320
         Center Channel 1: 31 2: unknown
         Tx-Power: 20 dBm  Link Quality: 36/70
         Signal: -74 dBm  Noise: -86 dBm
         Bit Rate: 1142.4 MBit/s
         Encryption: SAE (CCMP)
         Type: nl80211  HW Mode(s): 802.11be/ax
         Hardware: 0x14c3:0x7990 0x14c3:0x6639 [MediaTek MT7996E]
         TX power offset: none
         Channel offset: none
         Supports VAPs: yes  PHY name: phy0

I don't see why not I just pushed a new commit give it a try let me know if it worked

amazing, but for ease, i'd love it to be busybox awk compatible.