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 16:33, 9 November 2017
706 bytes added
,
16:33, 9 November 2017
→luci-reload
Line 284:
Line 284:
The command itself is highlighted in orange.
The command itself is highlighted in orange.
+
+
====Setting Multiple Parameters====
+
+
This next example describes how to set multiple parameters in a single config file with one command. Lets change the default configuration of the Ping Reboot function (ping_reboot config file):
+
+
{
+
"jsonrpc":"2.0", "id":1, "method":"call", "params":
+
[
+
"558a9b03c940e52f373f8c02498952e3", "uci", "set",
+
{
+
"config":"ping_reboot", "match":
+
{
+
"enable":"0",
+
"host":"8.8.8.8",
+
"packet_size":"56"
+
},
+
"values":
+
{
+
"enable":"1",
+
"host":"8.8.4.4",
+
"packet_size":"64"
+
}
+
}
+
]
+
}
Dziugas
Bureaucrats
,
Interface administrators
,
Administrators
31,703
edits