查詢出伺服器無線網路速度、訊號強度等

kumu_linux發表於2012-06-07
#1:找出無線網路卡型別資訊
$ lspci
$ lspci | grep -i wireless
$ lspci | egrep -i --color 'wifi|wlan|wireless'

#2:找出無線網路卡驅動資訊
$ lspci -vv -s 0c:00.0

例子:
0c:00.0 Network controller: Intel Corporation Ultimate N WiFi Link 5300
Subsystem: Intel Corporation Device 1121
Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR+ FastB2B- DisINTx-
Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- SERR-
Kernel driver in use: iwlwifi

#3:配置無線網路介面
iwconfig 網路卡名
//iwconfig和ifconfig命令類似,但是這個命令是無線網路卡專用的命令

例子:
wlan0 IEEE 802.11abgn ESSID:"nixcraft5g" Mode:Managed Frequency:5.18 GHz Access Point: 74:44:44:44:57:FC Bit Rate=6 Mb/s Tx-Power=15 dBm
Retry long limit:7 RTS thr:off Fragment thr:off
Encryption key:off
Power Management:off Link Quality=41/70 Signal level=-69 dBm Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0
Tx excessive retries:0 Invalid misc:28 Missed beacon:0
# iwconfig wlan0 | grep -i --color quality   //查詢網路連線質量
# iwconfig wlan0 | grep -i --color signal    //查詢訊號強度

#4:動態顯示連線強度
# watch -n 1 cat /proc/net/wireless

相關文章