Changes

Changed luci-reload command to reload_config.
Line 1: Line 1:  
==Introduction==
 
==Introduction==
<span style="color: red;">The information in this page is updated in accordance with the <span style="color: #0054A6;"><b>RUTXXX_R_00_07_02</b></span> firmware version.</span>
+
<span style="color: red;">The information in this page is updated in accordance with the <span style="color: #0054A6;"><b>RUTXXX_R_00.07.04</b></span> firmware version.</span>
    
'''JSON-RPC''' is a remote procedure call protocol encoded in JSON. It is a very simple protocol (and very similar to XML-RPC), defining only a few data types and commands. JSON-RPC allows for notifications (data sent to the server that does not require a response) and for multiple calls to be sent to the server which may be answered out of order.
 
'''JSON-RPC''' is a remote procedure call protocol encoded in JSON. It is a very simple protocol (and very similar to XML-RPC), defining only a few data types and commands. JSON-RPC allows for notifications (data sent to the server that does not require a response) and for multiple calls to be sent to the server which may be answered out of order.
Line 117: Line 117:  
----
 
----
   −
To set parameters, is necessary to use three commands, they are '''set''', '''commit''' and '''luci-reload'''
+
To set parameters, is necessary to use three commands, they are '''set''', '''commit''' and '''reload_config'''
 
<ul>
 
<ul>
 
<li> The First one is used to set router parameters</li>
 
<li> The First one is used to set router parameters</li>
Line 180: Line 180:  
[[File:COMMIT.jpg|border|class=tlt-border]]
 
[[File:COMMIT.jpg|border|class=tlt-border]]
   −
====LUCI-RELOAD====
+
====RELOAD_CONFIG====
 
----
 
----
The last step to take in order for the changes to take effect is the '''luci-reload''' command which restarts all of the router's services. The ''luci-reload'' command looks like this:
+
The last step to take in order for the changes to take effect is the '''reload_config''' command which restarts all of the router's services. The ''reload_config'' command looks like this:
    
  {
 
  {
Line 189: Line 189:  
         "428a9fa57f1a391db0bd1b865fa16bb5", "file", "exec",  
 
         "428a9fa57f1a391db0bd1b865fa16bb5", "file", "exec",  
 
         {
 
         {
             "command": "<span style=color:orange>luci-reload</span>"
+
             "command": "<span style=color:orange>reload_config</span>"
 
         }  
 
         }  
 
     ]
 
     ]
 
  }
 
  }
 
The command itself is highlighted in orange.<br>
 
The command itself is highlighted in orange.<br>
[[File:LUCI RELOAD.jpg|border|class=tlt-border]]<br>
+
[[File:Networking_rutos_configuration_example_Monitoring_via_JSON-RPC_windows_RELOAD_CONFIG.png|border|class=tlt-border]]<br>
    
====Setting Multiple Parameters====
 
====Setting Multiple Parameters====
Line 225: Line 225:  
[[File:Networking rutxxx configuration examples dhcp server v2.jpg|border|class=tlt-border|530px]]<br>
 
[[File:Networking rutxxx configuration examples dhcp server v2.jpg|border|class=tlt-border|530px]]<br>
   −
'''Note: Remember always to use the commands in the order (set, commit, luci-reload)'''
+
'''Note: Remember always to use the commands in the order (set, commit, reload_config)'''
    
==Some Additional Commands==
 
==Some Additional Commands==
Line 414: Line 414:  
  {"jsonrpc":"2.0","id":1,"result":[<span style=color:blue>0</span>]}
 
  {"jsonrpc":"2.0","id":1,"result":[<span style=color:blue>0</span>]}
   −
The command used is ''uci set'' (highlighted in red). The config file name is '''simcard''', section '''sim1''', options '''mtu''' and '''service''' (configs, sections and options highlighted in orange). The response shown above is a positive response, but don't forget to execute ''uci commit'' and ''luci-reload'' afterwards or else your changes will not take effect.
+
The command used is ''uci set'' (highlighted in red). The config file name is '''simcard''', section '''sim1''', options '''mtu''' and '''service''' (configs, sections and options highlighted in orange). The response shown above is a positive response, but don't forget to execute ''uci commit'' and ''reload_config'' afterwards or else your changes will not take effect.
    
[[Category: RutOS Configuration Examples]]
 
[[Category: RutOS Configuration Examples]]

Navigation menu