Skip to content

Instantly share code, notes, and snippets.

@PabloCastellano
Created July 17, 2020 10:11
Show Gist options
  • Save PabloCastellano/c19bd6c6228c0934c2bdeb1a47416d55 to your computer and use it in GitHub Desktop.
Save PabloCastellano/c19bd6c6228c0934c2bdeb1a47416d55 to your computer and use it in GitHub Desktop.
ubus calls in OpenWrt 19.07.3
{
"br-lan": {
"external": false,
"present": true,
"type": "bridge",
"up": true,
"carrier": true,
"bridge-members": [
"eth0.1"
],
"mtu": 1500,
"mtu6": 1500,
"macaddr": "94:83:c4:02:c2:bf",
"txqueuelen": 1000,
"ipv6": true,
"promisc": false,
"rpfilter": 0,
"acceptlocal": false,
"igmpversion": 0,
"mldversion": 0,
"neigh4reachabletime": 30000,
"neigh6reachabletime": 30000,
"neigh4gcstaletime": 60,
"neigh6gcstaletime": 60,
"neigh4locktime": 100,
"dadtransmits": 1,
"multicast": true,
"sendredirects": true,
"statistics": {
"collisions": 0,
"rx_frame_errors": 0,
"tx_compressed": 0,
"multicast": 0,
"rx_length_errors": 0,
"tx_dropped": 0,
"rx_bytes": 73588,
"rx_missed_errors": 0,
"tx_errors": 0,
"rx_compressed": 0,
"rx_over_errors": 0,
"tx_fifo_errors": 0,
"rx_crc_errors": 0,
"rx_packets": 760,
"tx_heartbeat_errors": 0,
"rx_dropped": 0,
"tx_aborted_errors": 0,
"tx_packets": 1123,
"rx_errors": 0,
"tx_bytes": 163852,
"tx_window_errors": 0,
"rx_fifo_errors": 0,
"tx_carrier_errors": 0
}
},
"eth0": {
"external": false,
"present": true,
"type": "Network device",
"up": true,
"carrier": true,
"mtu": 1500,
"mtu6": 1500,
"macaddr": "94:83:c4:02:c2:bf",
"txqueuelen": 1000,
"ipv6": true,
"promisc": false,
"rpfilter": 0,
"acceptlocal": false,
"igmpversion": 0,
"mldversion": 0,
"neigh4reachabletime": 30000,
"neigh6reachabletime": 30000,
"neigh4gcstaletime": 60,
"neigh6gcstaletime": 60,
"neigh4locktime": 100,
"dadtransmits": 1,
"multicast": true,
"sendredirects": true,
"statistics": {
"collisions": 0,
"rx_frame_errors": 0,
"tx_compressed": 0,
"multicast": 0,
"rx_length_errors": 0,
"tx_dropped": 0,
"rx_bytes": 26804491,
"rx_missed_errors": 0,
"tx_errors": 0,
"rx_compressed": 0,
"rx_over_errors": 0,
"tx_fifo_errors": 0,
"rx_crc_errors": 0,
"rx_packets": 215505,
"tx_heartbeat_errors": 0,
"rx_dropped": 0,
"tx_aborted_errors": 0,
"tx_packets": 61781,
"rx_errors": 0,
"tx_bytes": 11209268,
"tx_window_errors": 0,
"rx_fifo_errors": 0,
"tx_carrier_errors": 0
}
},
"eth0.1": {
"external": false,
"present": true,
"type": "VLAN",
"up": true,
"carrier": true,
"mtu": 1500,
"mtu6": 1500,
"macaddr": "94:83:c4:02:c2:bf",
"txqueuelen": 1000,
"ipv6": false,
"promisc": false,
"rpfilter": 0,
"acceptlocal": false,
"igmpversion": 0,
"mldversion": 0,
"neigh4reachabletime": 30000,
"neigh6reachabletime": 30000,
"neigh4gcstaletime": 60,
"neigh6gcstaletime": 60,
"neigh4locktime": 100,
"dadtransmits": 1,
"multicast": true,
"sendredirects": true,
"statistics": {
"collisions": 0,
"rx_frame_errors": 0,
"tx_compressed": 0,
"multicast": 209,
"rx_length_errors": 0,
"tx_dropped": 0,
"rx_bytes": 73588,
"rx_missed_errors": 0,
"tx_errors": 0,
"rx_compressed": 0,
"rx_over_errors": 0,
"tx_fifo_errors": 0,
"rx_crc_errors": 0,
"rx_packets": 760,
"tx_heartbeat_errors": 0,
"rx_dropped": 0,
"tx_aborted_errors": 0,
"tx_packets": 1123,
"rx_errors": 0,
"tx_bytes": 163852,
"tx_window_errors": 0,
"rx_fifo_errors": 0,
"tx_carrier_errors": 0
}
},
"eth0.2": {
"external": false,
"present": true,
"type": "VLAN",
"up": true,
"carrier": true,
"mtu": 1500,
"mtu6": 1500,
"macaddr": "94:83:c4:02:c2:bf",
"txqueuelen": 1000,
"ipv6": true,
"promisc": false,
"rpfilter": 0,
"acceptlocal": false,
"igmpversion": 0,
"mldversion": 0,
"neigh4reachabletime": 30000,
"neigh6reachabletime": 30000,
"neigh4gcstaletime": 60,
"neigh6gcstaletime": 60,
"neigh4locktime": 100,
"dadtransmits": 1,
"multicast": true,
"sendredirects": true,
"statistics": {
"collisions": 0,
"rx_frame_errors": 0,
"tx_compressed": 0,
"multicast": 172900,
"rx_length_errors": 0,
"tx_dropped": 0,
"rx_bytes": 22845397,
"rx_missed_errors": 0,
"tx_errors": 0,
"rx_compressed": 0,
"rx_over_errors": 0,
"tx_fifo_errors": 0,
"rx_crc_errors": 0,
"rx_packets": 214646,
"tx_heartbeat_errors": 0,
"rx_dropped": 1919,
"tx_aborted_errors": 0,
"tx_packets": 60590,
"rx_errors": 0,
"tx_bytes": 10791535,
"tx_window_errors": 0,
"rx_fifo_errors": 0,
"tx_carrier_errors": 0
}
},
"lo": {
"external": false,
"present": true,
"type": "Network device",
"up": true,
"carrier": true,
"mtu": 65536,
"mtu6": 65536,
"macaddr": "00:00:00:00:00:00",
"txqueuelen": 1000,
"ipv6": true,
"promisc": false,
"rpfilter": 0,
"acceptlocal": false,
"igmpversion": 0,
"mldversion": 0,
"neigh4reachabletime": 30000,
"neigh6reachabletime": 30000,
"neigh4gcstaletime": 60,
"neigh6gcstaletime": 60,
"neigh4locktime": 100,
"dadtransmits": 1,
"multicast": false,
"sendredirects": true,
"statistics": {
"collisions": 0,
"rx_frame_errors": 0,
"tx_compressed": 0,
"multicast": 0,
"rx_length_errors": 0,
"tx_dropped": 0,
"rx_bytes": 226550,
"rx_missed_errors": 0,
"tx_errors": 0,
"rx_compressed": 0,
"rx_over_errors": 0,
"tx_fifo_errors": 0,
"rx_crc_errors": 0,
"rx_packets": 2549,
"tx_heartbeat_errors": 0,
"rx_dropped": 0,
"tx_aborted_errors": 0,
"tx_packets": 2549,
"rx_errors": 0,
"tx_bytes": 226550,
"tx_window_errors": 0,
"rx_fifo_errors": 0,
"tx_carrier_errors": 0
}
}
}
{
"interface": [
{
"interface": "lan",
"up": true,
"pending": false,
"available": true,
"autostart": true,
"dynamic": false,
"uptime": 230500,
"l3_device": "br-lan",
"proto": "static",
"device": "br-lan",
"updated": [
"addresses"
],
"metric": 0,
"dns_metric": 0,
"delegation": true,
"ipv4-address": [
{
"address": "192.168.0.1",
"mask": 24
}
],
"ipv6-address": [
],
"ipv6-prefix": [
],
"ipv6-prefix-assignment": [
{
"address": "fd2f:45c1:882e::",
"mask": 60,
"local-address": {
"address": "fd2f:45c1:882e::1",
"mask": 60
}
}
],
"route": [
],
"dns-server": [
],
"dns-search": [
],
"neighbors": [
],
"inactive": {
"ipv4-address": [
],
"ipv6-address": [
],
"route": [
],
"dns-server": [
],
"dns-search": [
],
"neighbors": [
]
},
"data": {
}
},
{
"interface": "loopback",
"up": true,
"pending": false,
"available": true,
"autostart": true,
"dynamic": false,
"uptime": 230500,
"l3_device": "lo",
"proto": "static",
"device": "lo",
"updated": [
"addresses"
],
"metric": 0,
"dns_metric": 0,
"delegation": true,
"ipv4-address": [
{
"address": "127.0.0.1",
"mask": 8
}
],
"ipv6-address": [
],
"ipv6-prefix": [
],
"ipv6-prefix-assignment": [
],
"route": [
],
"dns-server": [
],
"dns-search": [
],
"neighbors": [
],
"inactive": {
"ipv4-address": [
],
"ipv6-address": [
],
"route": [
],
"dns-server": [
],
"dns-search": [
],
"neighbors": [
]
},
"data": {
}
},
{
"interface": "wan",
"up": true,
"pending": false,
"available": true,
"autostart": true,
"dynamic": false,
"uptime": 230497,
"l3_device": "eth0.2",
"proto": "dhcp",
"device": "eth0.2",
"metric": 0,
"dns_metric": 0,
"delegation": true,
"ipv4-address": [
{
"address": "192.168.1.80",
"mask": 24
}
],
"ipv6-address": [
],
"ipv6-prefix": [
],
"ipv6-prefix-assignment": [
],
"route": [
{
"target": "0.0.0.0",
"mask": 0,
"nexthop": "192.168.1.1",
"source": "192.168.1.80/32"
}
],
"dns-server": [
"1.1.1.1",
"1.0.0.1"
],
"dns-search": [
],
"neighbors": [
],
"inactive": {
"ipv4-address": [
],
"ipv6-address": [
],
"route": [
],
"dns-server": [
],
"dns-search": [
],
"neighbors": [
]
},
"data": {
"leasetime": 43200,
"ntpserver": "10.26.192.1"
}
},
{
"interface": "wan6",
"up": false,
"pending": true,
"available": true,
"autostart": true,
"dynamic": false,
"proto": "dhcpv6",
"device": "eth0.2",
"data": {
}
}
]
}
{
"radio0": {
"up": false,
"pending": false,
"autostart": true,
"disabled": true,
"retry_setup_failed": false,
"config": {
"channel": "11",
"hwmode": "11g",
"path": "platform/10300000.wmac",
"htmode": "HT20",
"disabled": true
},
"interfaces": [
]
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment