OpenWRT 获取在线设备

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

©著作权归作者所有,转载或内容合作请联系作者
【社区内容提示】社区部分内容疑似由AI辅助生成,浏览时请结合常识与多方信息审慎甄别。
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

相关阅读更多精彩内容

友情链接更多精彩内容