Wireless LAN Signal Strength Analysis Commands
**************
For Windows:
**************
netsh wlan show networks mode=ssid
and
netsh wlan show networks mode=bssid
*************
For Linux:
*************
To display WiFi signal strength in the terminal, you can run this command:
- watch -n 1 "awk 'NR==3 {print \"WiFi Signal Strength = \" \$3 \"00 \"}''' /proc/net/wireless"
- watch -n 1 cat /proc/net/wireless
- iwconfig "Interface-Name-Here"
iwconfig wlan0
or
iwconfig wlan1
or
watch -n 1 iwconfig wlan1 [for continuos observation of the link]
Wifi Signal Strength(Link Quality) in Percentage:
while [ 1 ];do clear;echo "WiFi Signal Strength (Link Quality)";a=$(/sbin/iwconfig wlan1 | grep "Link Quality" | awk '{print $2}' | sed 's/.*\=//'); echo $(($((${a%/*} * 100)) / ${a#*/}))%;sleep 1;done
Comments
Post a Comment