Lists nodes that are connected to your node
CLI Example
Command syntax:
node connections
-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
Example:
Command:
cellframe-node-cli node handshake
-net mileena
Response:
Count links: 6
Uplinks: 3
---------------------------
| ↑\↓ | # | IP | Port |
| ↑ | 1 | 206.189.54.151 | 8199 |
| ↑ | 2 | 192.241.186.245 | 8199 |
| ↑ | 3 | 159.223.85.13 | 8199 |
Downlinks: 3
---------------------------
| ↑\↓ | # | IP | Port |
| ↓ | 1 | 206.189.54.151 | 1824 |
| ↓ | 2 | 192.241.186.245 | 1824 |
| ↓ | 3 | 159.223.85.13 | 1824 |
JSON-RPC Example
Command:
curl --unix-socket /opt/cellframe-node/var/run/node_cli
-X POST http://localhost/connect
-d '{"method":"node", "params":["node;connections;-net;mileena"], "id":"1"}'
Response:
{
"type": 0,
"result": "Count links: 6\n\nUplinks: 3\n---------------------------\n| ↑\\↓ |\t#\t|\t\tIP\t\t|\tPort\t|\n| ↑ |\t1\t|\t206.189.54.151\t\t|\t8199\t|\n| ↑ |\t2\t|\t192.241.186.245\t\t|\t8199\t|\n| ↑ |\t3\t|\t159.223.85.13\t\t|\t8199\t|\n\n\nDownlinks: 3\n---------------------------\n| ↑\\↓ |\t#\t|\t\tIP\t\t|\tPort\t|\n| ↓ |\t1\t|\t206.189.54.151\t\t|\t1824\t|\n| ↓ |\t2\t|\t192.241.186.245\t\t|\t1824\t|\n| ↓ |\t3\t|\t159.223.85.13\t\t|\t1824\t|\n\n",
"errors": null,
"id": 1
}