User Tools

Site Tools


useful_linux_802.11_commands_for_statistics_and_monitoring_purposes

Commands Useful for Access Points

For the purposes of clarity, these are examples, not prototypes.

Get basic info, channel, mode, etc..

# iw wlan0 info
Interface wlan0
        ifindex 3
        wdev 0x1
        addr b8:27:eb:9f:d3:52
        ssid pg-guest
        type AP
        wiphy 0
        channel 11 (2462 MHz), width: 20 MHz, center1: 2462 MHz
        txpower 31.00 dBm

Get stats on all the wireless clients connected to your access point.

# iw dev wlan0 station dump
Station 80:19:34:62:17:81 (on wlan0)
        inactive time:  1000 ms
        rx bytes:       56189
        rx packets:     525
        tx bytes:       2806639
        tx packets:     28253
        tx failed:      0
        signal:         -65 [-65] dBm
        tx bitrate:     72.2 MBit/s
        rx bitrate:     65.0 MBit/s
        authorized:     yes
        authenticated:  yes
        associated:     yes
        WMM/WME:        yes
        TDLS peer:      yes
        DTIM period:    2
        beacon interval:100
        short slot time:yes
        connected time: 788 seconds

Misc Useful Wifi Commands

Scan for nearby WiFi Access Points

# iw wlx00160178e753 scan
BSS 74:85:2a:35:6c:c8(on wlx00160178e753)
        TSF: 111754387141 usec (1d, 07:02:34)
        freq: 2462
        beacon interval: 100 TUs
        capability: ESS Privacy ShortPreamble ShortSlotTime (0x0431)
        signal: -45.00 dBm
        last seen: 284 ms ago
        Information elements from Probe Response frame:
        SSID: CBCI-96C7-2.4
        Supported rates: 1.0* 2.0* 5.5* 11.0* 6.0* 9.0 12.0* 18.0 
        DS Parameter set: channel 11
        Country: US     Environment: Indoor/Outdoor
                Channels [1 - 11] @ 30 dBm
        ERP: <no flags>
        Extended supported rates: 24.0* 36.0 48.0 54.0 
        HT capabilities:
                Capabilities: 0x1ad
                        RX LDPC
                        HT20
                        SM Power Save disabled
                        RX HT20 SGI
                        TX STBC
                        RX STBC 1-stream
                        Max AMSDU length: 3839 bytes
                        No DSSS/CCK HT40
                Maximum RX AMPDU length 65535 bytes (exponent: 0x003)
                Minimum RX AMPDU time spacing: 8 usec (0x06)
                HT TX/RX MCS rate indexes supported: 0-23
        HT operation:
                 * primary channel: 11
                 * secondary channel offset: no secondary
                 * STA channel width: 20 MHz
                 * RIFS: 1
                 * HT protection: no
                 * non-GF present: 0
                 * OBSS non-GF present: 0
                 * dual beacon: 0
                 * dual CTS protection: 0
                 * STBC beacon: 0
                 * L-SIG TXOP Prot: 0
                 * PCO active: 0
                 * PCO phase: 0
        Overlapping BSS scan params:
                 * passive dwell: 20 TUs
                 * active dwell: 10 TUs
                 * channel width trigger scan interval: 300 s
                 * scan passive total per channel: 200 TUs
                 * scan active total per channel: 20 TUs
                 * BSS width channel transition delay factor: 5
                 * OBSS Scan Activity Threshold: 0.25 %
        Extended capabilities: HT Information Exchange Supported, 6
        WMM:     * Parameter version 1
                 * u-APSD
                 * BE: CW 15-1023, AIFSN 3
                 * BK: CW 15-1023, AIFSN 7
                 * VI: CW 7-15, AIFSN 2, TXOP 3008 usec
                 * VO: CW 3-7, AIFSN 2, TXOP 1504 usec
        RSN:     * Version: 1
                 * Group cipher: TKIP
                 * Pairwise ciphers: CCMP TKIP
                 * Authentication suites: PSK
                 * Capabilities: 1-PTKSA-RC 1-GTKSA-RC (0x0000)
        WPA:     * Version: 1
                 * Group cipher: TKIP
                 * Pairwise ciphers: CCMP TKIP
                 * Authentication suites: PSK
        WPS:     * Version: 1.0
                 * Wi-Fi Protected Setup State: 2 (Configured)
                 * Response Type: 3 (AP)
                 * UUID: 28a71383-ce20-5dc8-9204-4e50ab93534f
                 * Manufacturer: Cisco Systems, Inc.
                 * Model: DPC3939B
                 * Model Number: DPC3939B
                 * Serial Number: 000000001
                 * Primary Device Type: 6-0050f204-1
                 * Device name: DPC3939B
                 * Config methods:
                 * RF Bands: 0x1
                 * Unknown TLV (0x1049, 6 bytes): 00 37 2a 00 01 20
useful_linux_802.11_commands_for_statistics_and_monitoring_purposes.txt · Last modified: 2020/03/13 00:47 by sgriggs

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki