Skip to main content

uptime

Command#

pacprotocol-cli uptime

Returns the total uptime of the server.

Examples#

pacprotocol-cli uptime
curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "uptime", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:1111/

Result#

ttt #(numeric) The number of seconds that the server has been running

Running following help command

pacprotocol-cli help uptime

Will produce following output:

uptime
Returns the total uptime of the server.
Result:
ttt (numeric) The number of seconds that the server has been running
Examples:
> pacprotocol-cli uptime
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "uptime", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:1111/