Yes, you are right, it can be done through sed/awk/etc. Part of my project
requires using iPerf where it generates a lot of output. I was trying to
edit iPerf as I thought it may be easier this way. And may be I could learn
a bit about how it works in the process. I wanted to keep scripting as the
last option. Can you give me some feedback/hints as to how I can accomplish
this by editing iPerf?
Thank you,
Regards,
Harkeerat Bedi
On Tue, Jul 5, 2011 at 6:18 PM, Gary Gatten <[email protected]> wrote:
> **
>
> I’m sure there is a way, but why? It’s redundant info. If nothing else
> you could pass it through sed/awk/etc and tweak it that way, but I would
> keep going with the source if that’s what you want, and create a patch for
> if/when you upgrade.****
>
> ** **
>
> G****
>
> ** **
>
> ** **
> ------------------------------
>
> *From:* Harkeerat Bedi [mailto:[email protected]]
> *Sent:* Tuesday, July 05, 2011 5:49 PM
> *To:* **[email protected]**
> *Subject:* [Iperf-users] iPerf 2.0.5, add additional information in server
> output.****
>
> ** **
>
> Dear iPerf users, ****
>
> ** **
>
> Is there a way to edit the amount of information displayed when iPerf is
> run in server mode? ****
>
> ** **
>
> Following is the default information displayed, when iPerf is run in server
> mode:****
>
> ** **
>
> $ iperf -s -u -i 1 -f mb****
>
> ------------------------------------------------------------****
>
> Server listening on UDP port 5001****
>
> Receiving 1470 byte datagrams****
>
> UDP buffer size: 0.11 MByte (default)****
>
> ------------------------------------------------------------****
>
> [ 3] local 10.1.2.3 port 5001 connected with 10.1.1.4 port 52551****
>
> [ ID] Interval Transfer Bandwidth Jitter Lost/Total
> Datagrams****
>
> [ 3] 0.0- 1.0 sec 0.12 MBytes 1.05 Mbits/sec 0.334 ms 0/ 89 (0%)
> ****
>
> [ 3] 1.0- 2.0 sec 0.12 MBytes 1.05 Mbits/sec 0.329 ms 0/ 89 (0%)
> ****
>
> [ 3] 2.0- 3.0 sec 0.12 MBytes 1.05 Mbits/sec 0.334 ms 0/ 89 (0%)
> ****
>
> [ 3] 3.0- 4.0 sec 0.12 MBytes 1.05 Mbits/sec 0.331 ms 0/ 89 (0%)
> ****
>
> [ 3] 4.0- 5.0 sec 0.12 MBytes 1.05 Mbits/sec 0.340 ms 0/ 89 (0%)
> ****
>
> [ 3] 5.0- 6.0 sec 0.13 MBytes 1.06 Mbits/sec 0.347 ms 0/ 90 (0%)
> ****
>
> [ 3] 6.0- 7.0 sec 0.12 MBytes 1.05 Mbits/sec 0.341 ms 0/ 89 (0%)
> ****
>
> [ 3] 7.0- 8.0 sec 0.12 MBytes 1.05 Mbits/sec 0.349 ms 0/ 89 (0%)
> ****
>
> [ 3] 8.0- 9.0 sec 0.12 MBytes 1.05 Mbits/sec 0.318 ms 0/ 89 (0%)
> ****
>
> [ 3] 9.0-10.0 sec 0.12 MBytes 1.05 Mbits/sec 0.326 ms 0/ 89 (0%)
> ****
>
> [ 3] 0.0-10.0 sec 1.25 MBytes 1.05 Mbits/sec 0.348 ms 0/ 893 (0%)
> ****
>
> ** **
>
> Is there a way I could change the output to something like this: ****
>
> ** **
>
> [ 3] local 10.1.2.3 port 5001 connected with 10.1.1.4 port 52551****
>
> [ ID] Interval Transfer Bandwidth Jitter Lost/Total
> Datagrams****
>
> [ 3] 0.0- 1.0 sec 0.12 MBytes 1.05 Mbits/sec 0.334 ms 0/ 89
> (0%) [ 3] local 10.1.2.3 port 5001 connected with 10.1.1.4 port 52551****
>
> [ 3] 1.0- 2.0 sec 0.12 MBytes 1.05 Mbits/sec 0.329 ms 0/ 89
> (0%) [ 3] local 10.1.2.3 port 5001 connected with 10.1.1.4 port 52551****
>
> [ 3] 2.0- 3.0 sec 0.12 MBytes 1.05 Mbits/sec 0.334 ms 0/ 89
> (0%) [ 3] local 10.1.2.3 port 5001 connected with 10.1.1.4 port 52551****
>
> [ 3] 3.0- 4.0 sec 0.12 MBytes 1.05 Mbits/sec 0.331 ms 0/ 89
> (0%) [ 3] local 10.1.2.3 port 5001 connected with 10.1.1.4 port 52551****
>
> [ 3] 4.0- 5.0 sec 0.12 MBytes 1.05 Mbits/sec 0.340 ms 0/ 89
> (0%) [ 3] local 10.1.2.3 port 5001 connected with 10.1.1.4 port 52551****
>
> [ 3] 5.0- 6.0 sec 0.13 MBytes 1.06 Mbits/sec 0.347 ms 0/ 90
> (0%) [ 3] local 10.1.2.3 port 5001 connected with 10.1.1.4 port 52551****
>
> [ 3] 6.0- 7.0 sec 0.12 MBytes 1.05 Mbits/sec 0.341 ms 0/ 89
> (0%) [ 3] local 10.1.2.3 port 5001 connected with 10.1.1.4 port 52551****
>
> [ 3] 7.0- 8.0 sec 0.12 MBytes 1.05 Mbits/sec 0.349 ms 0/ 89
> (0%) [ 3] local 10.1.2.3 port 5001 connected with 10.1.1.4 port 52551****
>
> [ 3] 8.0- 9.0 sec 0.12 MBytes 1.05 Mbits/sec 0.318 ms 0/ 89
> (0%) [ 3] local 10.1.2.3 port 5001 connected with 10.1.1.4 port 52551****
>
> [ 3] 9.0-10.0 sec 0.12 MBytes 1.05 Mbits/sec 0.326 ms 0/ 89
> (0%) [ 3] local 10.1.2.3 port 5001 connected with 10.1.1.4 port 52551****
>
> [ 3] 0.0-10.0 sec 1.25 MBytes 1.05 Mbits/sec 0.348 ms 0/ 893
> (0%) [ 3] local 10.1.2.3 port 5001 connected with 10.1.1.4 port 52551****
>
> ****
>
> ** **
>
> I want to get the source and destination IP addresses and port numbers on
> each line, as shown above. I tried to edit the following structs in
> Reporter.c by including a call to the function "reporter_reportpeer",
> however it did not help. ****
>
> ** **
>
> report_statistics statistics_reports[kReport_MAXIMUM] = {****
>
> reporter_printstats,****
>
> reporter_reportpeer,****
>
> CSV_stats****
>
> };****
>
> ** **
>
> report_serverstatistics serverstatistics_reports[kReport_MAXIMUM] = {****
>
> reporter_serverstats,****
>
> reporter_reportpeer,****
>
> CSV_serverstats****
>
> };****
>
> ** **
>
> Is there a way I can get the source and destination IP addresses and port
> numbers on each line? Any help regarding this subject will be highly
> appreciated. ****
>
> ** **
>
> Thank you, ****
>
> ** **
>
> Regards,
> Harkeerat Bedi****
> "This email is intended to be reviewed by only the intended recipient
> and may contain information that is privileged and/or confidential. If you
> are not the intended recipient, you are hereby notified that any review,
> use, dissemination, disclosure or copying of this email and its attachments,
> if any, is strictly prohibited. If you have received this email in error,
> please immediately notify the sender by return email and delete this email
> from your system."
>
------------------------------------------------------------------------------
All of the data generated in your IT infrastructure is seriously valuable.
Why? It contains a definitive record of application performance, security
threats, fraudulent activity, and more. Splunk takes this data and makes
sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-d2d-c2
_______________________________________________
Iperf-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/iperf-users