32 lines
655 B
Text
32 lines
655 B
Text
|
#!/bin/bash
|
||
|
|
||
|
source scan-netdev
|
||
|
mkdir -p $OUTPUT_DIR/iperf
|
||
|
|
||
|
for VLAN in 402 403 404 406 ; do
|
||
|
if [[ -f /etc/netdev/vlan.$VLAN.csv ]] ; then
|
||
|
VLAN_CONF=`grep $SERVER_SERIAL \
|
||
|
/etc/netdev/vlan.$VLAN.csv`
|
||
|
fi
|
||
|
[[ -z $VLAN_CONF ]] && continue
|
||
|
MY_PORT=`echo $VLAN_CONF \
|
||
|
| cut -d ',' -f 3 \
|
||
|
| cut -d '.' -f 3,4 \
|
||
|
| sed 's/\.//'`
|
||
|
IP_LIST=`cat /etc/netdev/vlan.$VLAN.csv \
|
||
|
| grep 'STOC' \
|
||
|
| cut -d ',' -f 3 \
|
||
|
| grep '^[0-9]' | sort`
|
||
|
for IP in $IP_LIST; do
|
||
|
#echo "$IP - "
|
||
|
iperf3 -p $MY_PORT -t 60 \
|
||
|
--logfile $OUTPUT_DIR/iperf/client.$IP.massive.log \
|
||
|
-c $IP > /dev/null &
|
||
|
disown
|
||
|
#echo $?
|
||
|
|
||
|
done
|
||
|
done
|
||
|
#--bandwidth 250M \
|
||
|
|