OpenWRT 获取在线设备

2021-02-01  本文已影响0人  xyqd

1. arp缓存列表

root@GL-MIFI:~# cat /proc/net/arp
## 下面为输出的设备列表 Flags 0x2的表示在线的设备
IP address       HW type     Flags       HW address            Mask     Device
192.168.8.147    0x1         0x2         xx:xx:xx:xx:xx:xx     *        br-lan
192.168.8.201    0x1         0x2         xx:xx:xx:xx:xx:xx     *        br-lan
192.168.8.153    0x1         0x0         xx:xx:xx:xx:xx:xx     *        br-lan
192.168.8.160    0x1         0x2         xx:xx:xx:xx:xx:xx     *        br-lan

2 iwinfo 指令 查看连接的无线设备

# iwinfo <device> assoclist
root@GL-MIFI:~# iwinfo wlan0 assoclist
#下面为输出的在线设备
70:C9:4E:FF:78:69  -80 dBm / -92 dBm (SNR 12)  360 ms ago
        RX: 13.5 MBit/s, MCS 0, 40MHz                  11331 Pkts.
        TX: 30.0 MBit/s, MCS 1, 40MHz                   9713 Pkts.
        expected throughput: 9.0 MBit/s
xx:xx:xx:xx:xx:xx  -80 dBm / -92 dBm (SNR 12)  360 ms ago
        RX: 13.5 MBit/s, MCS 0, 40MHz                  11331 Pkts.
        TX: 30.0 MBit/s, MCS 1, 40MHz                   9713 Pkts.
        expected throughput: 9.0 MBit/s

上一篇下一篇

猜你喜欢

热点阅读