Comments (3)
Thanks @mitar,
check out the thread on the ML: https://lists.funkfeuer.at//pipermail/interop-dev/2014-October/000169.html
I encouraged quite some people to contribute to the discussion.
from netjson.
Schema in nodewatcher-agent is generated by different modules, please see the following repository:
https://github.com/wlanslovenija/nodewatcher-agent
I am attaching a sample output of one of the nodes. Note that the schema is not monolithic, but is logically divided among modules which are also versioned (module version metadata is in the _meta section of the corresponding module).
All this JSON information is also exposed via ubus by the agent (this is why floats are actually strings -- as ubus serialization does not support floats).
{
"core.general":{
"uuid":"64840ad9-aac1-4494-b4d1-9de5d8cbedd9",
"hostname":"lem-1",
"version":"git.1405894",
"kernel":"3.10.49",
"local_time":1414305354,
"uptime":3501937,
"hardware":{
"board":"tl-wr741nd-v4",
"model":"TP-Link TL-WR740N\/ND v4"
},
"_meta":{
"version":4
}
},
"core.clients":{
"1B2M2Y8AsgTpgAmY7PhCfg==": {
"addresses": [
{
"family":"ipv4",
"address":"10.254.147.231",
"expires":1414312977
}
],
},
"_meta":{
"version":1
}
},
"core.interfaces":{
"lo":{
"name":"lo",
"config":"loopback",
"addresses":[
{
"family":"ipv4",
"address":"127.0.0.1",
"mask":8
}
],
"mac":"00:00:00:00:00:00",
"mtu":65536,
"up":true,
"carrier":true,
"statistics":{
"collisions":0,
"rx_frame_errors":0,
"tx_compressed":0,
"multicast":0,
"rx_length_errors":0,
"tx_dropped":0,
"rx_bytes":9287737,
"rx_missed_errors":0,
"tx_errors":0,
"rx_compressed":0,
"rx_over_errors":0,
"tx_fifo_errors":0,
"rx_crc_errors":0,
"rx_packets":57624,
"tx_heartbeat_errors":0,
"rx_dropped":0,
"tx_aborted_errors":0,
"tx_packets":57624,
"rx_errors":0,
"tx_bytes":9287737,
"tx_window_errors":0,
"rx_fifo_errors":0,
"tx_carrier_errors":0
}
},
"wlan0":{
"name":"wlan0",
"config":"mesh",
"addresses":[
{
"family":"ipv4",
"address":"10.254.147.225",
"mask":16
}
],
"mac":"a0:f3:c1:a7:ec:f4",
"up":true,
"carrier":true,
"statistics":{
"collisions":0,
"rx_frame_errors":0,
"tx_compressed":0,
"multicast":0,
"rx_length_errors":0,
"tx_dropped":0,
"rx_bytes":2434,
"rx_missed_errors":0,
"tx_errors":0,
"rx_compressed":0,
"rx_over_errors":0,
"tx_fifo_errors":0,
"rx_crc_errors":0,
"rx_packets":5,
"tx_heartbeat_errors":0,
"rx_dropped":0,
"tx_aborted_errors":0,
"tx_packets":2169666,
"rx_errors":0,
"tx_bytes":583692816,
"tx_window_errors":0,
"rx_fifo_errors":0,
"tx_carrier_errors":0
}
},
"br-clients":{
"name":"br-clients",
"config":"clients",
"addresses":[
{
"family":"ipv4",
"address":"10.254.147.225",
"mask":27
}
],
"mac":"a0:f3:c1:a7:ec:f3",
"mtu":1500,
"up":true,
"carrier":true,
"statistics":{
"collisions":0,
"rx_frame_errors":0,
"tx_compressed":0,
"multicast":0,
"rx_length_errors":0,
"tx_dropped":0,
"rx_bytes":164219385,
"rx_missed_errors":0,
"tx_errors":0,
"rx_compressed":0,
"rx_over_errors":0,
"tx_fifo_errors":0,
"rx_crc_errors":0,
"rx_packets":1245994,
"tx_heartbeat_errors":0,
"rx_dropped":10,
"tx_aborted_errors":0,
"tx_packets":4118200,
"rx_errors":0,
"tx_bytes":2015688224,
"tx_window_errors":0,
"rx_fifo_errors":0,
"tx_carrier_errors":0
}
},
"eth0":{
"name":"eth0",
"config":"clients",
"parent":"br-clients",
"mac":"a0:f3:c1:a7:ec:f3",
"mtu":1500,
"up":true,
"carrier":false,
"statistics":{
"collisions":0,
"rx_frame_errors":0,
"tx_compressed":0,
"multicast":0,
"rx_length_errors":0,
"tx_dropped":0,
"rx_bytes":0,
"rx_missed_errors":0,
"tx_errors":0,
"rx_compressed":0,
"rx_over_errors":0,
"tx_fifo_errors":0,
"rx_crc_errors":0,
"rx_packets":0,
"tx_heartbeat_errors":0,
"rx_dropped":0,
"tx_aborted_errors":0,
"tx_packets":0,
"rx_errors":0,
"tx_bytes":0,
"tx_window_errors":0,
"rx_fifo_errors":0,
"tx_carrier_errors":0
}
},
"wlan0-1":{
"name":"wlan0-1",
"config":"clients",
"parent":"br-clients",
"mac":"a2:f3:c1:a7:ec:f4",
"up":true,
"carrier":true,
"statistics":{
"collisions":0,
"rx_frame_errors":0,
"tx_compressed":0,
"multicast":0,
"rx_length_errors":0,
"tx_dropped":0,
"rx_bytes":183301239,
"rx_missed_errors":0,
"tx_errors":0,
"rx_compressed":0,
"rx_over_errors":0,
"tx_fifo_errors":0,
"rx_crc_errors":0,
"rx_packets":1257657,
"tx_heartbeat_errors":0,
"rx_dropped":0,
"tx_aborted_errors":0,
"tx_packets":4126978,
"rx_errors":0,
"tx_bytes":2093647900,
"tx_window_errors":0,
"rx_fifo_errors":0,
"tx_carrier_errors":0
}
},
"digger0":{
"name":"digger0",
"config":"digger0",
"addresses":[
{
"family":"ipv4",
"address":"10.254.147.226",
"mask":16
}
],
"mac":"12:68:d4:62:5d:5d",
"mtu":1488,
"up":true,
"carrier":true,
"statistics":{
"collisions":0,
"rx_frame_errors":0,
"tx_compressed":0,
"multicast":0,
"rx_length_errors":0,
"tx_dropped":0,
"rx_bytes":681554499,
"rx_missed_errors":0,
"tx_errors":0,
"rx_compressed":0,
"rx_over_errors":0,
"tx_fifo_errors":0,
"rx_crc_errors":0,
"rx_packets":532161,
"tx_heartbeat_errors":0,
"rx_dropped":0,
"tx_aborted_errors":0,
"tx_packets":108173,
"rx_errors":0,
"tx_bytes":17684119,
"tx_window_errors":0,
"rx_fifo_errors":0,
"tx_carrier_errors":0
}
},
"digger1":{
"name":"digger1",
"config":"digger1",
"addresses":[
{
"family":"ipv4",
"address":"10.254.147.227",
"mask":16
}
],
"mac":"e2:ea:1f:3d:a9:aa",
"mtu":1488,
"up":true,
"carrier":true,
"statistics":{
"collisions":0,
"rx_frame_errors":0,
"tx_compressed":0,
"multicast":0,
"rx_length_errors":0,
"tx_dropped":0,
"rx_bytes":1775742011,
"rx_missed_errors":0,
"tx_errors":0,
"rx_compressed":0,
"rx_over_errors":0,
"tx_fifo_errors":0,
"rx_crc_errors":0,
"rx_packets":1470266,
"tx_heartbeat_errors":0,
"rx_dropped":0,
"tx_aborted_errors":0,
"tx_packets":232307,
"rx_errors":0,
"tx_bytes":74699139,
"tx_window_errors":0,
"rx_fifo_errors":0,
"tx_carrier_errors":0
}
},
"eth1":{
"name":"eth1",
"config":"wan",
"addresses":[
{
"family":"ipv4",
"address":"192.168.34.108",
"mask":24
}
],
"mac":"a0:f3:c1:a7:ec:f5",
"mtu":1500,
"up":true,
"carrier":true,
"speed":"100F",
"statistics":{
"collisions":0,
"rx_frame_errors":0,
"tx_compressed":0,
"multicast":0,
"rx_length_errors":0,
"tx_dropped":0,
"rx_bytes":3542783708,
"rx_missed_errors":0,
"tx_errors":0,
"rx_compressed":0,
"rx_over_errors":0,
"tx_fifo_errors":0,
"rx_crc_errors":0,
"rx_packets":35118502,
"tx_heartbeat_errors":0,
"rx_dropped":14,
"tx_aborted_errors":0,
"tx_packets":11761973,
"rx_errors":0,
"tx_bytes":2952333765,
"tx_window_errors":0,
"rx_fifo_errors":0,
"tx_carrier_errors":0
}
},
"_meta":{
"version":3
}
},
"core.keys.ssh":{
"rsa":{
"base64":"AAAAB3NzaC1yc2EAAAADAQABAAABAQCVrkZm3+k0k9A1RduMkmHwuA8Thnqj1iELAKZlPnZa0myPCxGmANLdrCHusRbftgmriy0ZzxZ96MKBYIQJYvyfJRwcZX+IGMapeoWeOe8vhiBxhPfPucniOL2JmAa4gc+qbw6GVHDhtArexDPSTPRyLMwNT6iDi80TA0Xs9mSx4I17YLD\/bvN2qd5QcCYI9bF+Ru2R\/goijLgK03Cx8ue6W0YOi8iWD7G33Fo8pENh+dEbN9G66tqNlGuCHnyod8rF\/77EaQ4BFsM7XZcfiGHNIWSvBNutVQl+jcrRO5d7IzAYJ1eAXay2ESBmh4B9E7QWMqeLYKx6xCKa2vU+mSPX",
"fingerprint":{
"algo":"md5",
"hex":"75:00:6f:98:7b:fa:73:7f:d2:01:07:09:43:34:54:4e"
}
},
"dss":{
"base64":"AAAAB3NzaC1kc3MAAACBALUcLuvYMaHb3BsvI9Q4ygyyLpGw+WhBzz\/cuQWc\/\/9Cbk3XfjcBTLMYWAtCXEcpzameed0q51yhQwyL9UuqNSlQ+24sJQmrgjZv1yMqSb\/Ipq2Lq0O6bLLSGEhSQbegNJQ0e\/fym0olfKkPKpEDBEpz3hKtAxPR2VrY68irfRTTAAAAFQDQO5FIt1n7Fh\/hEXgAx68MUjof9QAAAIBVcHccn1Hs6t19hxC5xj8GuB2FTvEu3lQEApX7FP1l8dT9P6szoG1b5r6Eg3NRoK9WqWp2xsnbPATsdqq9ulOyL18v6AzknaBjMmdLcVYCpuuyfM91hFYh2x62svair3kGYmi24YDa7XXpH\/9mSS9YExtUVjp5tXE2LLfSfw5xfQAAAIEAg2ieqHyjkxYRrheB34SQ\/q1WGJBv4FoztzeF2LlpgzYnOmEsuY\/jdD+K3WO1OYlFPIEwyX5qqQvPQdP7Gc+YSesNGN6K8weMvfBgixeAcirvYzLE9BiBr6EZVYUwUCl8MpFSvl40uJe1iKH+zC3p8k3LpMShT3gH5g+Pfdi8exE=",
"fingerprint":{
"algo":"md5",
"hex":"94:e0:88:b0:e3:58:3e:13:a9:42:10:f2:44:2b:eb:4e"
}
},
"_meta":{
"version":1
}
},
"core.resources":{
"load_average":[
"0.08",
"0.04",
"0.05"
],
"memory":{
"total":28980,
"free":3156,
"buffers":2072,
"cache":6884
},
"connections":{
"ipv4":{
"tcp":4,
"udp":18
},
"ipv6":{
"tcp":2,
"udp":1
}
},
"processes":{
"running":2,
"sleeping":36,
"blocked":0,
"zombie":0,
"stopped":0,
"paging":0
},
"cpu":{
"user":13,
"system":0,
"nice":4,
"idle":83,
"iowait":0,
"irq":0,
"softirq":0
},
"_meta":{
"version":2
}
},
"core.wireless":{
"interfaces":{
"wlan0-1":{
"phy":"phy0",
"ssid":"open.wlan-si.net",
"bssid":"A2:F3:C1:A7:EC:F4",
"country":"SI",
"mode":"Master",
"channel":8,
"frequency":2447,
"txpower":18,
"noise":-95,
"protocols":[
"b",
"g",
"n"
],
"encryption":{
"enabled":false
}
},
"wlan0":{
"phy":"phy0",
"ssid":"mesh.wlan-si.net",
"bssid":"02:CA:FF:EE:BA:BE",
"country":"SI",
"mode":"Ad-Hoc",
"channel":8,
"frequency":2447,
"txpower":18,
"noise":-95,
"protocols":[
"b",
"g",
"n"
]
}
},
"radios":{
"radio0":{
"survey":[
{
"ssid":"mesh.wlan-si.net",
"bssid":"02:CA:FF:EE:BA:BE",
"mode":"Ad-Hoc",
"channel":8,
"signal":-89,
"encryption":{
"enabled":false
}
},
{
"ssid":"lusy",
"bssid":"20:AA:4B:CB:65:CF",
"mode":"Master",
"channel":2,
"signal":-52,
"encryption":{
"enabled":true,
"wpa":[
1,
2
],
"authentication":[
"psk"
],
"ciphers":[
"tkip",
"ccmp"
]
}
},
{
"ssid":"vicos",
"bssid":"90:F6:52:86:D0:D2",
"mode":"Master",
"channel":4,
"signal":-93,
"encryption":{
"enabled":true,
"wpa":[
1,
2
],
"authentication":[
"psk"
],
"ciphers":[
"tkip",
"ccmp"
]
}
},
{
"ssid":"lrk_wifi2",
"bssid":"98:FC:11:76:87:63",
"mode":"Master",
"channel":6,
"signal":-70,
"encryption":{
"enabled":true,
"wpa":[
2
],
"authentication":[
"psk"
],
"ciphers":[
"ccmp"
]
}
},
{
"ssid":"lrk_wifi",
"bssid":"58:6D:8F:88:B5:BF",
"mode":"Master",
"channel":6,
"signal":-86,
"encryption":{
"enabled":true,
"wpa":[
2
],
"authentication":[
"psk"
],
"ciphers":[
"tkip",
"ccmp"
]
}
},
{
"ssid":"eduroam",
"bssid":"B0:00:B4:A0:FC:20",
"mode":"Master",
"channel":6,
"signal":-81,
"encryption":{
"enabled":true,
"wpa":[
1,
2
],
"authentication":[
"802.1x"
],
"ciphers":[
"tkip",
"ccmp"
]
}
},
{
"ssid":"guest",
"bssid":"B0:00:B4:7F:BF:71",
"mode":"Master",
"channel":6,
"signal":-89,
"encryption":{
"enabled":true,
"wpa":[
2
],
"authentication":[
"psk"
],
"ciphers":[
"ccmp"
]
}
},
{
"bssid":"B0:00:B4:A0:FC:24",
"mode":"Master",
"channel":6,
"signal":-84,
"encryption":{
"enabled":true,
"wpa":[
2
],
"authentication":[
"psk"
],
"ciphers":[
"ccmp"
]
}
},
{
"ssid":"FGEN",
"bssid":"B0:00:B4:7F:BF:73",
"mode":"Master",
"channel":6,
"signal":-89,
"encryption":{
"enabled":true,
"wpa":[
2
],
"authentication":[
"psk"
],
"ciphers":[
"ccmp"
]
}
},
{
"ssid":"guest",
"bssid":"B0:00:B4:A0:FC:21",
"mode":"Master",
"channel":6,
"signal":-83,
"encryption":{
"enabled":true,
"wpa":[
2
],
"authentication":[
"psk"
],
"ciphers":[
"ccmp"
]
}
},
{
"ssid":"FGEN",
"bssid":"B0:00:B4:A0:FC:23",
"mode":"Master",
"channel":6,
"signal":-84,
"encryption":{
"enabled":true,
"wpa":[
2
],
"authentication":[
"psk"
],
"ciphers":[
"ccmp"
]
}
},
{
"bssid":"B0:00:B4:7F:BF:74",
"mode":"Master",
"channel":6,
"signal":-89,
"encryption":{
"enabled":true,
"wpa":[
2
],
"authentication":[
"psk"
],
"ciphers":[
"ccmp"
]
}
},
{
"ssid":"LRSS",
"bssid":"F8:D1:11:39:14:0A",
"mode":"Master",
"channel":9,
"signal":-86,
"encryption":{
"enabled":true,
"wpa":[
1,
2
],
"authentication":[
"psk"
],
"ciphers":[
"tkip",
"ccmp"
]
}
},
{
"ssid":"roamer.lem",
"bssid":"A0:F3:C1:3C:20:78",
"mode":"Master",
"channel":11,
"signal":-27,
"encryption":{
"enabled":true,
"wpa":[
2
],
"authentication":[
"psk"
],
"ciphers":[
"ccmp"
]
}
},
{
"ssid":"eduroam",
"bssid":"B0:00:B4:A1:09:C0",
"mode":"Master",
"channel":11,
"signal":-58,
"encryption":{
"enabled":true,
"wpa":[
1,
2
],
"authentication":[
"802.1x"
],
"ciphers":[
"tkip",
"ccmp"
]
}
},
{
"ssid":"Jeltz_2.4",
"bssid":"58:6D:8F:51:2F:F5",
"mode":"Master",
"channel":11,
"signal":-81,
"encryption":{
"enabled":true,
"wpa":[
2
],
"authentication":[
"psk"
],
"ciphers":[
"ccmp"
]
}
},
{
"bssid":"B0:00:B4:A1:09:C4",
"mode":"Master",
"channel":11,
"signal":-55,
"encryption":{
"enabled":true,
"wpa":[
2
],
"authentication":[
"psk"
],
"ciphers":[
"ccmp"
]
}
},
{
"ssid":"guest",
"bssid":"B0:00:B4:A1:09:C1",
"mode":"Master",
"channel":11,
"signal":-59,
"encryption":{
"enabled":true,
"wpa":[
2
],
"authentication":[
"psk"
],
"ciphers":[
"ccmp"
]
}
},
{
"ssid":"FGEN",
"bssid":"B0:00:B4:A1:09:C3",
"mode":"Master",
"channel":11,
"signal":-59,
"encryption":{
"enabled":true,
"wpa":[
2
],
"authentication":[
"psk"
],
"ciphers":[
"ccmp"
]
}
}
]
}
},
"_meta":{
"version":3
}
}
}
from netjson.
can we close this?
from netjson.
Related Issues (20)
- [DeviceConfiguration] wds_access_point & wds_station HOT 1
- JSON-LD schema HOT 2
- NetJSON RFC JSON types HOT 2
- [DeviceConfiguration] General "country" option
- [website] Statically generated content pages HOT 1
- [NetworkGraph] Amibiguity on graph scope HOT 9
- Improve extension registry page
- [RFC] properties definition typos
- [docs] Use "Specification" or "Internet Draft" instead of RFC
- DeviceConfiguration example is broken
- [radio] Add protocol
- [DeviceConfiguration][hardware] revision >version
- [configuration] auto channel and channel_width
- Dictionary<string, object> from Newtonsoft in NetJSON HOT 5
- [NetworkGraph] Geographic information for nodes and links
- Specification page doesn't display examples HOT 1
- Could not load type 'TenantClass' HOT 2
- Update implementations section HOT 1
- Are link objects directed or undirected ?
- [docs] Update (old/404) netjsongraph.js image URL
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from netjson.