From 534cfebe0b779df484fcb3ed13046af8780302b8 Mon Sep 17 00:00:00 2001 From: Colin Smith Date: Fri, 25 Feb 2005 04:19:08 +0000 Subject: Oops, forgot port options and a 'cvs add'. --- packages/iperf.xml | 110 +++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 110 insertions(+) create mode 100644 packages/iperf.xml (limited to 'packages/iperf.xml') diff --git a/packages/iperf.xml b/packages/iperf.xml new file mode 100644 index 00000000..a46cc791 --- /dev/null +++ b/packages/iperf.xml @@ -0,0 +1,110 @@ + + iperf + 1.7.0 + iperf: Client + true + + iperf + Run iperf in client or server mode. +
Diagnostics
+ iperf.xml +
+ + + + Server + hostname + Enter the IP address or hostname that iperf will connect to. + input + + + Port + port + Enter the port that iperf will connect to. (default 5001) + input + + + TCP/UDP + protocol + Choose whether to use TCP or UDP here. (default is TCP) + select + + + + + + + bits/sec or bytes/sec + format + Choose to display output in bits/sec or bytes/sec. (default is bits) + select + + + + + + + Interval + interval + Enter the desired interval between bandwidth, jitter and loss reports here. (default is 0 for no periodic reports) + input + + + Buffer length + length + Enter the length of buffers to read or write here. (default 8KB for TCP, 1470B for UDP) + input + + + Socket buffer sizes + window + Enter the desired socket buffer size, if needed. + + + UDP Bandwidth + udpbandwidth + Enter the UDP bandwidth to send at in bits/sec. (default is 1Mbit/sec) + input + + + + $iperf_options = ""; + if($_POST['protocol'] == "udp") $iperf_options .= " -u"; + if($_POST['format'] == "bytes") $iperf_options .= " -f A"; + if($_POST['interval'] != "") $iperf_options .= " -i {$_POST['interval']}"; + if($_POST['length'] != "") $iperf_options .= " -l {$_POST['length']}"; + if($_POST['window'] != "") $iperf_options .= " -w {$_POST['window']}"; + if($_POST['udpbandwidth'] != "") $iperf_options .= " -b {$_POST['udpbandwidth']}"; + if($_POST['port'] != "") $iperf_options .= " -p {$_POST['port']}"; + $iperf_options .= " -c {$_POST['hostname']}"; + system("/usr/local/bin/iperf" . $iperf_options); + +
+ -- cgit v1.2.3