cellframe-node-clinode add -net <net name> -addr {<node address> | -alias <node alias>} -cell <cell id> {-ipv4 <ipv4 external address> | -ipv6 <ipv6 external address>}
An example of creating a new node with the address 0x98 in the cellframe-testnet network and shard 0x1 with the IP address 192.168.100.98
cellframe-node-cli node add -addr 0x98 -ipv4 192.168.100.98 -net cellframe-testnet -cell 0x1
node added
The address can be represented in three forms, decimal (152), hexadecimal (0x98) and in the form of 4 blocks of 2 bytes each (0000 :: 0000 :: 0000 :: 0098)
Some commands allow you to refer to the node not by address, but by alias.
Command to create a node alias:
cellframe-node-clinode alias -addr <node address> -alias <node alias>
An example of creating an alias root0 for a node with the address FFFF :: 0000 :: 0000 :: 0001
cellframe-node-cli node alias -addr FFFF::0000::0000::0001 -alias root0 -net cellframe-testnet
alias mapped successfully
Command to delete a node from nodelist
cellframe-node-clinode del -net <net name> -addr <node address> | -alias <node alias>
A node can be deleted by address or by alias.
An example of deleting a node at:
cellframe-node-cli node del -addr FFFF::0000::0000::0007 -net cellframe-testnet
node deleted
Links is a record in the database that allows you to establish a connection with another network node. The node for creating a link can be accessed by the address and by the alias. Only an address can be used as a link.
Command for adding / removing a link node:
cellframe-node-clinode link {add|del} -net <net name> {-addr <node address> | -alias <node alias>} -link <node address>
An example of creating a link for a node with the alias root0. Another node with the address FFFF :: 0000 :: 0000 :: 0002 acts as a link
cellframe-node-cli node link add -alias root0 -link FFFF::0000::0000::0002 -net cellframe-testnet
link added
An example of deleting a newly created link:
cellframe-node-cli node link del -alias root0 -link FFFF::0000::0000::0002 -net cellframe-testnet
link deleted
Command to connect to a node
cellframe-node-cli node connect -net <net_name> {-addr <node address> | -alias <node alias> | auto}
If the -addr or -alias parameter is present, then the connection is made based on the entered node address or alias. If the auto parameter is specified, then the node is selected automatically.
cellframe-node-cli node connect -net kelvpn-minkowski -addr 03A5::8051::24FB::269B
Node sync completed: Chains and gdb are synced
Command to connect to a node via tcp protocol
cellframe-node-cli node handshake -net <net_name> {-addr <node address> | -alias <node alias> | auto}
If the -addr or -alias parameter is present, then the connection is made based on the entered node address or alias. If the auto parameter is specified, then the node is selected automatically.
cellframe-node-cli node handshake -net kelvpn-minkowski -addr 03A5::8051::24FB::269B
Connection established
Command to view information about nodes:
cellframe-node-cli node dump -net <net name> [ -addr <node address> | -alias <node alias>] [-full]
If the -addr or -alias parameter is present, then information is displayed only for one node, otherwise for all nodes.
The -full parameter allows you to see more detailed information.
An example of displaying a list of all nodes:
cellframe-node-cli node dump -net cellframe-testnet
Node dump:
Got 8 records:
node address FFFF::0000::0000::0002 cell 0x0000000000000000 ipv4 165.227.17.239 number of links 0
node address FFFF::0000::0000::0003 cell 0x0000000000000000 ipv4 104.248.89.205 number of links 0
node address FFFF::0000::0000::0004 cell 0x0000000000000000 ipv4 157.230.240.104 number of links 0
node address FFFF::0000::0000::0005 cell 0x0000000000000000 ipv4 167.99.87.197 number of links 0
node address FFFF::0000::0000::0006 cell 0x0000000000000000 ipv4 46.101.149.240 number of links 0
node address FFFF::0000::0000::0007 cell 0x0000000000000000 ipv4 159.89.122.48 number of links 0
node address 0000::0000::0000::0098 cell 0x0000000000000001 ipv4 192.168.100.98 number of links 0
node address FFFF::0000::0000::0001 cell 0x0000000000000000 ipv4 192.168.100.98 number of links 1
An example of displaying complete information for one node:
cellframe-node-cli node dump -addr FFFF::0000::0000::0001 -net cellframe-testnet -full
Node dump:
node address FFFF::0000::0000::0001
cell 0x0000000000000000
ipv4 192.168.100.98
ipv6 ::
alias root0
alias cellframe.testnet.root.0
links 1
link00 address : FFFF::0000::0000::0002