Skip to content

Instantly share code, notes, and snippets.

@giffels
Last active August 29, 2015 14:22
Show Gist options
  • Save giffels/da3658f1d3f65d58e855 to your computer and use it in GitHub Desktop.
Save giffels/da3658f1d3f65d58e855 to your computer and use it in GitHub Desktop.
iperf_scan
#!/bin/bash
IPERF_BIN="/usr/bin/iperf"
SERVER_IP="192.168.101.243"
CLIENT_IP="192.168.101.219"
SCANNING_INTERVAL="30"
TOTAL_SCAN_TIME="300"
SLEEPING_TIME="1800"
OUTPUT_FILE="iperf_results.csv"
while [ 1 ]
do
$IPERF_BIN -c $SERVER_IP -B $CLIENT_IP -t $TOTAL_SCAN_TIME -i $SCANNING_INTERVAL -y c >> $OUTPUT_FILE
sleep $SLEEPING_TIME
done
Display the source blob
Display the rendered blob
Raw
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment