intrig-unicamp / mininet-wifi

Emulator for Software-Defined Wireless Networks
https://mn-wifi.readthedocs.io/
Other
458 stars 245 forks source link

Failed to save iperf3 result in a txt.file #550

Closed xuankeyu closed 2 months ago

xuankeyu commented 2 months ago

Dear all. I want to measure bandwidth, bitrate and some network things using iperf3. And i want to save the measurement results in a text file which called result.txt. But it shows nothing in the text file. How can i let result show in my text flie? And next i will show my problem to you in detail. So first i create two virtual stations using mininet-WiFi by command sudo mn --wifi. Then i set station1 as server: Screenshot from 2024-09-18 16-06-02 And let station2 to be the client. It shows that iperf3 can work successfully. Screenshot from 2024-09-18 16-13-11 Next i want to save the iperf3 result into a result.txt (rediretion)with command sta2 iperf3 -c sta1 -t 5 --logfile result.txt. it works for a while but shows nothing in result.txt. Screenshot from 2024-09-18 16-16-24 And i also tried sta2 iperf3 -c sta1 -t 5 >result.txt It has same result. Can anybody tell me how to save iperf3 result in a text file? Thanks in advance!

BW Keyu

ramonfontes commented 2 months ago

This is not a mn-wifi issue :(. Please note that if you can do this with any Linux terminal you can do the same in mn-wifi by using xterm.

xuankeyu commented 2 months ago

Actually i tried xterm sta1 sta2, it has same result. I know this is not mn-wifi issue. i just hope that if someone in this forum has also used iperf or iperf3 on mn-WiFi, they might be able to share some experiences and advice. :) Btw invalid label is so cold.

ramonfontes commented 2 months ago

You may want to go through the mn-wifi mailing list :)