Line 1: |
Line 1: |
| ==Summary== | | ==Summary== |
| | | |
− | '''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. This is guide on how to use JSON-RPC on RUT230, RUT240, RUT850, RUT950 and RUT955 routers. | + | <font size="+1">'''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. This is guide on how to use JSON-RPC on RUT230, RUT240, RUT850, RUT950 and RUT955 routers.</font> |
| | | |
| ==Login via JSON-RPC== | | ==Login via JSON-RPC== |
| | | |
− | To login to a RUT device via JSON-RPC, first make sure that monitoring via JSON-RPC is enabled on that device. To do so, follow the steps bellow: | + | <font size="+1">To login to a RUT device via JSON-RPC, first make sure that monitoring via JSON-RPC is enabled on that device. To do so, follow the steps bellow:</font> |
| | | |
| ===Enabling JSON-RPC=== | | ===Enabling JSON-RPC=== |
| | | |
− | [[Image:Blue bubble 1 1.png]]<font size="+2">Go the Administration section of the System tab: '''System->Administration'''</font> | + | [[Image:Blue bubble 1 1.png]]<font size="+1">Go the Administration section of the System tab: '''System->Administration'''</font> |
| | | |
| | | |
Line 17: |
Line 17: |
| | | |
| | | |
− | [[Image:Blue bubble 1 2.png]]<font size="+2">Then go to the '''Access Control''' section:</font> | + | [[Image:Blue bubble 1 2.png]]<font size="+1">Then go to the '''Access Control''' section:</font> |
| | | |
| | | |
Line 25: |
Line 25: |
| | | |
| | | |
− | [[Image:Blue bubble 1 3.png]]<font size="+2">Under '''WebUI''', check the '''Enable JSON RPC''' field:</font> | + | [[Image:Blue bubble 1 3.png]]<font size="+1">Under '''WebUI''', check the '''Enable JSON RPC''' field:</font> |
| | | |
| | | |
Line 34: |
Line 34: |
| ===Obtaining a session ID=== | | ===Obtaining a session ID=== |
| | | |
− | To login to the router via JSON-RPC you will need software capable of sending requests to the router. The simplest solution is to install an add-on similar to Firefox’s '''“Poster”''': '''https://addons.mozilla.org/en-US/firefox/addon/poster/'''. Once you've installed this add-on, you can launch by opening the Mozilla Firefox browser and pressing '''Ctrl+Alt+p'''. | + | <font size="+1">To login to the router via JSON-RPC you will need software capable of sending requests to the router. The simplest solution is to install an add-on similar to Firefox’s '''“Poster”''': '''https://addons.mozilla.org/en-US/firefox/addon/poster/'''. Once you've installed this add-on, you can launch by opening the Mozilla Firefox browser and pressing '''Ctrl+Alt+p'''. </font> |
| | | |
| | | |
− | If you're using '''Google Chrome''', you can get '''"Chrome Poster"''': '''https://chrome.google.com/webstore/detail/chrome-poster/cdjfedloinmbppobahmonnjigpmlajcd?hl=en'''. Once you've installed this add-on, a "P" shaped icon will appear in the top right corner of you browser's window: | + | <font size="+1">If you're using '''Google Chrome''', you can get '''"Chrome Poster"''': '''https://chrome.google.com/webstore/detail/chrome-poster/cdjfedloinmbppobahmonnjigpmlajcd?hl=en'''. Once you've installed this add-on, a "P" shaped icon will appear in the top right corner of you browser's window:</font> |
| | | |
| [[Image:Configuration examples json-rpc chrome poster how to.PNG]] | | [[Image:Configuration examples json-rpc chrome poster how to.PNG]] |
| | | |
− | Click it to launch Chrome Poster. | + | <font size="+1">Click it to launch Chrome Poster.</font> |
| | | |
− | The rest of this guide will focus on '''Firefox's Poster''', but all the steps bellow apply to '''Chrome's Poster''' as well. | + | <font size="+1">The rest of this guide will focus on '''Firefox's Poster''', but all the steps bellow apply to '''Chrome's Poster''' as well.</font> |
| | | |
| | | |