Skip to content

ubus commands

Schnup89 edited this page Apr 20, 2020 · 36 revisions

I think not everyone is familiar how to retriev and analyse the ubus data, therefore we can provide a list of successful tested calls an the result of them.

- ubus call network.interface.wan status

print("hello world!")

<details>
  <summary> - ubus call hostapd.wlanX get_clients</summary>
  {
        "freq": 2422,
        "clients": {
                "ec:fa:bc:9a:xx:xx": {
                        "auth": true,
                        "assoc": true,
                        "authorized": true,
                        "preauth": false,
                        "wds": false,
                        "wmm": true,
                        "ht": true,
                        "vht": false,
                        "wps": false,
                        "mfp": false,
                        "rrm": [
                                0,
                                0,
                                0,
                                0,
                                0
                        ],
                        "aid": 3
                },
                "84:f3:eb:3e:yy:yy": {
                        "auth": true,
                        "assoc": true,
                        "authorized": true,
                        "preauth": false,
                        "wds": false,
                        "wmm": false,
                        "ht": false,
                        "vht": false,
                        "wps": false,
                        "mfp": false,
                        "rrm": [
                                0,
                                0,
                                0,
                                0,
                                0
                        ],
                        "aid": 4
                }
        }
  }

collapsible markdown?

CLICK ME

yes, even hidden code blocks!

print("hello world!")
Clone this wiki locally