Shows all information about nodes in the network or about definite node
CLI Example
Command syntax:
node dump
-net <net_name>
[ -addr <node_address> | -alias <node_alias>]
[-full]
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 (if not specified - information from all the networks will be shown)
-addr\-alias - address of the node\ alias of the node (optional, if not specified, dump of used node will be shown)
-full - not implemented (optional)
Example for the whole network:
Command:
cellframe-node-cli node dump
-net foobar
Response:
Node dump:
Got 5 nodes:
Address IPv4 Port Pinner Timestamp
ABCD::0000::0000::0001 172.28.0.11 8079 ABCD::0000::0000::0000 Wed, 27 Mar 2024 11:01:37 +0000
ABCD::0000::0000::0000 172.28.0.10 8079 ABCD::0000::0000::0001 Wed, 27 Mar 2024 11:02:23 +0000
50C8::4551::10FC::3019 172.28.0.22 8079 ABCD::0000::0000::0000 Wed, 27 Mar 2024 11:57:57 +0000
C96C::1FC9::981C::8248 172.28.0.21 8079 ABCD::0000::0000::0000 Wed, 27 Mar 2024 12:15:26 +0000
ABCD::EF00::0000::0000 172.28.0.20 8079 ABCD::0000::0000::0000 Wed, 27 Mar 2024 12:49:33 +0000```
Example for the definite node:
Command:
cellframe-node-cli node dump
-net foobar
-addr BCA3::B097::DCDC::CB2B
Response:
Record timestamp: Thu, 03 Oct 2024 10:12:35 +0300
Record version: 2 // record version
Node version: 5.3-283 // build version
Node addr: BCA3::B097::DCDC::CB2B
Net: raiden
Role: NODE_ROLE_ROOT // node role
Events count: 758
Atoms count: 52439
Uplinks count: 2
Downlinks count: 7
-----------------------------------------------------------------
| Uplinks node addrs | Downlinks node addrs |
-----------------------------------------------------------------
| 6631::6AD1::D4E4::A588 | FF76::A533::1896::4ECC |
| F4D9::E897::675A::5E8A | A2C2::0CD4::38BA::2E8C |
| | D6CB::5510::2544::FCBB |
| | 72F9::511B::616A::A46F |
| | A983::7C3F::7FD4::4950 |
| | CC88::3F68::5313::1577 |
| | B6E5::1B78::847A::F026 |
-----------------------------------------------------------------
JSON-RPC Example
Command:
curl --unix-socket /opt/cellframe-node/var/run/node_cli
-X POST http://localhost/connect
-d '{"method":"node", "params":["node;dump;-net;foobar"], "id":"1"}'
Response:
{
"type": 0,
"result": "Node dump:\nGot 5 nodes:\nAddress IPv4 Port Pinner Timestamp\nABCD::0000::0000::0001 172.28.0.11 8079 ABCD::0000::0000::0000 Wed, 27 Mar 2024 11:01:37 +0000 \nABCD::0000::0000::0000 172.28.0.10 8079 ABCD::0000::0000::0001 Wed, 27 Mar 2024 11:02:23 +0000 \n50C8::4551::10FC::3019 172.28.0.22 8079 ABCD::0000::0000::0000 Wed, 27 Mar 2024 11:57:57 +0000 \nC96C::1FC9::981C::8248 172.28.0.21 8079 ABCD::0000::0000::0000 Wed, 27 Mar 2024 12:15:26 +0000 \nABCD::EF00::0000::0000 172.28.0.20 8079 ABCD::0000::0000::0000 Wed, 27 Mar 2024 12:49:33 +0000 \n",
"errors": null,
"id": 1
}