Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add realtime JSON data output #353

Closed
TheRealDJ opened this issue Feb 15, 2016 · 9 comments
Closed

Add realtime JSON data output #353

TheRealDJ opened this issue Feb 15, 2016 · 9 comments

Comments

@TheRealDJ
Copy link
Contributor

I would like some way of receiving JSON data indicating that a test has started, and the test parameters. Currently, this data is all outputted once the test is complete.

I am working on wrapper scripts to coordinate testing of MANY devices back to a set of iperf3 servers. This would greatly help by allowing me to track when a test starts to assist in queueing client tests.

@bmah888
Copy link
Contributor

bmah888 commented Mar 25, 2016

Would something like #377 do what you have in mind?

@TheRealDJ
Copy link
Contributor Author

That will work. Thanks!

@TheRealDJ
Copy link
Contributor Author

Closing.

@TheRealDJ
Copy link
Contributor Author

I just realized that #377 does not include JSON output format. If I use "-t 5 -i 1 -J --forceflush", I get all of the JSON output once the test is complete.

I was thinking something like:
-output the "start" section right away
-output each interval as they happen
-output the "end" section once the test is complete

@TheRealDJ TheRealDJ reopened this May 5, 2016
@nyzen
Copy link

nyzen commented Nov 26, 2016

I am also very interested in a feature that lets me parse the results on time, as they come. Did you find any solution worth mentioning?

@bltierney
Copy link
Contributor

design of iperf3 makes this pretty darn hard. Sorry.

@hilmiugurpolat
Copy link

I just realized that #377 does not include JSON output format. If I use "-t 5 -i 1 -J --forceflush", I get all of the JSON output once the test is complete.

I was thinking something like: -output the "start" section right away -output each interval as they happen -output the "end" section once the test is complete

Hello,I have encountered exactly the same problem as you. Have you found a way to print json data instantly?

@hilmiugurpolat
Copy link

I am also very interested in a feature that lets me parse the results on time, as they come. Did you find any solution worth mentioning?

Hello,I have encountered exactly the same problem as you. Have you found a way to print json data instant

@davidBar-On
Copy link
Contributor

Hello,I have encountered exactly the same problem as you. Have you found a way to print json data instantly?

@hilmiugurpolat, did you try the --json-stream option (added by PR #1098 relatively recently)? If seems that it is what you are looking for.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants