Changes

no edit summary
Line 31: Line 31:  
==Using JSON-RPC with Windows OS==
 
==Using JSON-RPC with Windows OS==
   −
This section is a guide on how to use JSON-RPC with a Windows operating system. If you're using a Linux OS, you can find the guide here
+
This section is a guide on how to use JSON-RPC with a Windows operating system. If you're using a Linux OS, you can find the guide [[Monitoring_via_JSON-RPC#Using_JSON-RPC_with_Linux_OS|here]]
    
===Obtaining a session ID===
 
===Obtaining a session ID===
Line 218: Line 218:  
==Using JSON-RPC with Linux OS==
 
==Using JSON-RPC with Linux OS==
   −
This section will describe how to use JSON-RPC commands with a Linux OS system.
+
This section will describe how to use JSON-RPC commands with a Linux OS system. The guide for Windows users can be found [[Monitoring_via_JSON-RPC#Using_JSON-RPC_with_Windows_OS|here]]
 +
 
 +
===Obtaining a session ID===
 +
 
 +
To login to the router via JSON-RPC you must first obtain a Session ID. To do so, open the '''Terminal''' app and execute this command:
 +
 
 +
  curl -d "{ \"jsonrpc\": \"2.0\", \"id\": 1, \"method\": \"call\", \"params\": [ \"00000000000000000000000000000000\", \"session\", \"login\", { \"username\": \"root\", \"password\": \"admin01\"  } ] }" http://192.168.1.1/ubus 
       
</font>
 
</font>