The following commands allow you to view file, process and log information as well as preforming a remote reboot:


To view the files in a given directory, for example "/etc": 

curl --data-binary '{"params": ["/etc/"], "jsonrpc": "2.0", "id": 1, "method": "dir"}' -H 'content-type: application/json;' https://192.168.1.1/cgi-bin/luci/rpc/fs?auth=<your authorisation token>


To execute a shell command, for example "ls -l":

curl --data-binary '{"params": ["ls -l"], "jsonrpc": "2.0", "id": 1, "method": "exec"}' -H 'content-type: application/json;' https://192.168.1.1/cgi-bin/luci/rpc/sys?auth=<your authorisation token>


To view number of seconds the Zodiac WX has been running:

curl --data-binary '{"params": [""], "jsonrpc": "2.0", "id": 1, "method": "uptime"}' -H 'content-type: application/json;' https://192.168.1.1/cgi-bin/luci/rpc/sys?auth=<your authorisation token>


To reboot the Zodiac WX:

curl --data-binary '{"params": [""], "jsonrpc": "2.0", "id": 1, "method": "reboot"}' -H 'content-type: application/json;' https://192.168.1.1/cgi-bin/luci/rpc/sys?auth=<your authorisation token>


To view the syslog:

curl --data-binary '{"params": [""], "jsonrpc": "2.0", "id": 1, "method": "syslog"}' -H 'content-type: application/json;' https://192.168.1.1/cgi-bin/luci/rpc/sys?auth=<your authorisation token>


To view debug message log:

curl --data-binary '{"params": [""], "jsonrpc": "2.0", "id": 1, "method": "dmesg"}' -H 'content-type: application/json;' https://192.168.1.1/cgi-bin/luci/rpc/sys?auth=<your authorisation token>


To view process list:

curl --data-binary '{"params": [""], "jsonrpc": "2.0", "id": 1, "method": "process.list"}' -H 'content-type: application/json;' https://192.168.1.1/cgi-bin/luci/rpc/sys?auth=<your authorisation token>