Shows usage statistics 

CLI Example

Command syntax:

cellframe-node-cli net_srv report 
-net <net_name> 

Options:

-net - name of the Cellframe Network. The list of networks can be found in the <Config_dir> \ etc \ network folder or received by The Cellframe-Node-CLI using command - net list (optional)
 

Example:

Command:

cellframe-node-cli net_srv report 
-net riemann

Response:

Service report:
 
SRV UID: 0x0000000000000001
 
Client pkey hash: 0xBD982A6450494448477F38C1F8F5ED632A3F51EB86945CE76A0E84786E402360
 
        payed:
                using time:             0
                bytes sent:             0
                bytes received:         0
                units used:             0
                datoshi value:          0
 
        grace:
                using time:             109
                bytes sent:             18909751
                bytes received:         73313924
                units used:             0
                datoshi value:          586
 
        free:
                using time:             0
                bytes sent:             0
                bytes received:         0
                units used:             0
 
SRV UID: 0x0000000000000001
 
Client pkey hash: 0xF5B9D0C675D671E05198812F40B8C0AF4CBE5C477BAA2940AE751F6B37E1F335
 
        payed:
                using time:             4011
                bytes sent:             13643340
                bytes received:         670241797
                units used:             0
                datoshi value:          4346
 
        grace:
                using time:             5499
                bytes sent:             23452974
                bytes received:         900287200
                units used:             0
                datoshi value:          28244
 
        free:
                using time:             0
                bytes sent:             0
                bytes received:         0
                units used:             0

JSON-RPC Example

Command:

curl --unix-socket /opt/cellframe-node/var/run/node_cli 
-X POST http://localhost/connect 
-d '{"method":"net_srv", "params":["net_srv;report;-net;riemann"], "id":"1"}'

Response:

{ 
"type": 0,
"result": "Service report:\nSRV UID: 0x0000000000000001\nClient pkey hash: 0xBD982A6450494448477F38C1F8F5ED632A3F51EB86945CE76A0E84786E402360\n \tpayed:\n\t\tusing time:\t\t0\n\t\tbytes sent:\t\t0\n\t\tbytes received:\t\t0\n\t\tunits used:\t\t0\n\t\tdatoshi value:\t\t0\n\tgrace:\n\t\tusing time:\t\t109\n\t\tbytes sent:\t\t18909751\n\t\tbytes received:\t\t73313924\n\t\tunits used:\t\t0\n\t\tdatoshi value:\t\t586\n\tfree:\n\t\tusing time:\t\t0\n\t\tbytes sent:\t\t0\n\t\tbytes received:\t\t0\n\t\tunits used:\t\t0\nSRV UID: 0x0000000000000001\nClient pkey hash: 0xF5B9D0C675D671E05198812F40B8C0AF4CBE5C477BAA2940AE751F6B37E1F335\n \tpayed:\n\t\tusing time:\t\t4011\n\t\tbytes sent:\t\t13643340\n\t\tbytes received:\t\t670241797\n\t\tunits used:\t\t0\n\t\tdatoshi value:\t\t4346\n\tgrace:\n\t\tusing time:\t\t5499\n\t\tbytes sent:\t\t23452974\n\t\tbytes received:\t\t900287200\n\t\tunits used:\t\t0\n\t\tdatoshi value:\t\t28244\n\tfree:\n\t\tusing time:\t\t0\n\t\tbytes sent:\t\t0\n\t\tbytes received:\t\t0\n\t\tunits used:\t\t0\n",
"errors": null,
"id": 1
}