Last active
July 26, 2017 01:45
-
-
Save pingec/6155729e6c8623cc742a6a946e1f8da7 to your computer and use it in GitHub Desktop.
Log speedtest on openwrt router
This file contains 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
#!/bin/sh | |
# Logs speedtest results, ping and associated stations (tested on openwrt@wr1043nd) | |
# Example output: 2017-03-22 19:01:12 (381 KB/s) - `/dev/null' saved [27347433/27347433] round-trip min/avg/max = 48.924/50.155/53.697 ms Station 78:c3:e9:0d:d9:50 (on wlan0) Station 8c:3a:e3:61:48:88 (on wlan0) Station 24:1f:a0:7a:4e:db (on wlan0) Station 88:83:22:c2:88:de (on wlan0) Station 70:18:8b:9d:d9:34 (on wlan0) Station b4:43:0d:e4:2e:84 (on wlan0) | |
SPEED=$(wget http://ftp.arnes.si/pub/packages/debian/dists/Debian8.7/main/Contents-amd64.gz -O /dev/null 2>&1 | grep saved) | |
PING=$(ping google.com -c10 2>&1 | grep round) | |
STATIONS=$(iw dev wlan0 station dump | grep Station) | |
echo $SPEED $PING $STATIONS >> /tmp/speedtest.log |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment