Reputation: 11
I've been trying to simulate various attacks in networks, using mininet-wifi emulator. For some tasks, I need to get the output of mininet-CLI commands into a file, (preferably in text format, but other would work as well). Can anyone guide me on how to achieve the same?
I tried various python commands but I don't know how to implement them in mininet-wifi, CLI.
Upvotes: 1
Views: 283
Reputation: 11
sudo mn --wifi > op.txt it has sent only mininet-wifi> cli prompt into op.txt i.e how many times i have given commands and pressed enter those many times mininet-wifi> is repeated no output of the cli command is copied.
mininet-wifi>sta1 ping sta2 > op.txt this command stored the output of the sta1 ping sta2 till i interrupt the command by pressing ctrl+c
note: prompt never been shown will be shown, just give command
Upvotes: 1