Skip to content

ubus commands

Schnup89 edited this page Apr 20, 2020 · 36 revisions

I think not everyone is familiar how to retrieve and analyse the ubus data, therefore we can provide a list of successfull tested calls an the result of them here:

ubus call network.interface.wan status

ubus call network.interface dump will get all available Interfaces!

{
        "up": true,
        "pending": false,
        "available": true,
        "autostart": true,
        "dynamic": false,
        "uptime": 1046801,
        "l3_device": "pppoe-wan",
        "proto": "pppoe",
        "device": "eth0.2",
        "updated": [
                "addresses",
                "routes"
        ],
        "metric": 0,
        "dns_metric": 0,
        "delegation": true,
        "ipv4-address": [
                {
                        "address": "79.249.207.211",
                        "mask": 32,
                        "ptpaddress": "62.155.246.166"
                }
        ],
        "ipv6-address": [
                {
                        "address": "fe80::74c0:5ec0:7a4c:9c18",
                        "mask": 128
                }
        ],
        "ipv6-prefix": [

        ],
        "ipv6-prefix-assignment": [

        ],
        "route": [
                {
                        "target": "0.0.0.0",
                        "mask": 0,
                        "nexthop": "62.155.246.166",
                        "source": "0.0.0.0\/0"
                }
        ],
        "dns-server": [
                "8.8.8.8"
        ],
        "dns-search": [

        ],
        "inactive": {
                "ipv4-address": [

                ],
                "ipv6-address": [

                ],
                "route": [

                ],
                "dns-server": [
                        "217.237.151.205",
                        "217.237.148.70"
                ],
                "dns-search": [

                ]
        },
        "data": {

        }
}

Template

Template

Clone this wiki locally