Commands¶
This page lists all commands available in the gonetem prompt.
capture¶
Capture trafic on the given node interface with Wireshark (must be installed first)
Usage:
capture <node_name>.<if_number>
# example
capture R1.0
check¶
Check that the topology file is correct. If not, return found errors
config¶
Save all the node configuration files in a specific folder.
Usage:
config <dest_path>
copy¶
Copy files/folder between a docker node and the host fs or vice versa.
Usage:
copy node:/mypath/myfile.txt /hostpath/
console¶
Open a console for a node (specifing by the node’s name) or all the nodes
(specifing by all). xterm is used to launch the console.
The kind of console opened by this command depends on the type of node:
For docker host/server node:
bashFor docker frr node, run directly
vtyshFor ovswitch node, it runs a custom prompt to manage switch. Commands available in this prompt are detailed here.
edit¶
Edit the topology. The editor used to open the topology file is vim.
exec¶
Execute a command on a specific node
Usage:
exec <node_name> "<cmd>"
# example
exec host1 "ip addr show"
ifState¶
Enable/disable a node interface.
Usage:
ifState <node_name>/<if_number> up|down
# example
ifState R1.0 down
quit | exit¶
Close the project and quit the gonetem-console.
reload¶
Reload the project. You have to run this command after modifing the topology. It does the following actions:
Stop all running swithes/nodes/bridges
Load the new topology
Start all switches/nodes/bridges
restart¶
Restart a node or all the nodes. Same principle than start command.
run¶
If the project has not been start during gonetem-console launch, run this command to load the topology and start all the nodes.
save¶
Save the project. This command does two things:
save the current topology
for each running node, save the current of the node
saveAs¶
Save the project in a new file
# example
saveAs /newPath/newProject.gnet
shell¶
Same as console command, except run bash command whatever the node.
start¶
Start a node or all the nodes
Usage:
# start one node
start <node_name>
# start all the nodes
start all
status¶
Display the status of the project/topology
stop¶
Stop a node or all the nodes. Same principle than start command.
Usage:
# stop one node
stop <node_name>
# stop all the nodes
stop all
viewConfig¶
Display the configuration file of a node. If several configuration files are available, a prompt will appear to select one of them.
Usage:
viewConfig <node_name>