美文网首页
OpenWRT 获取在线设备

OpenWRT 获取在线设备

作者: xyqd | 来源:发表于2021-02-01 13:35 被阅读0次

    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
    
    

    相关文章

      网友评论

          本文标题:OpenWRT 获取在线设备

          本文链接:https://www.haomeiwen.com/subject/eivjtltx.html