Open main menu
Home
Random
Log in
Settings
COMMUNITY
ABOUT
Disclaimers
Teltonika Networks Wiki
Search
Changes
← Older edit
Newer edit →
Draft:Monitoring via JSON-RPC
(view source)
Revision as of 14:09, 9 November 2017
466 bytes added
,
14:09, 9 November 2017
→Getting router parameters
Line 245:
Line 245:
[[Image:Configuration examples json-rpc terminal gsmctl.png]]
[[Image:Configuration examples json-rpc terminal gsmctl.png]]
+
You can issue almost any Linux command in a similar manner. For example, if you wish to get a list of file names contained in the config folder, the Linux command to do so would be '''ls /etc/config''', which, translated to JSON-RPC, would be:
+
+
curld -d "{\"jsonrpc\": \"2.0\", \"id\": 1, \"method\": \"call\", \"params\": [\"a74c8e07646f0da2bfddce35bf3de1f3\", \"file\", \"exec\", {\"command\":\"ls\", \"params\": [\"/etc/config\"] } ] }" http://192.168.1.1/ubus
</font>
</font>
Dziugas
Bureaucrats
,
Interface administrators
,
Administrators
31,703
edits