test-iperf actualizado para vallejo
This commit is contained in:
parent
931b8500bb
commit
b736a8b842
2 changed files with 13 additions and 9 deletions
|
@ -4,7 +4,7 @@ source scan-dmidecode
|
||||||
|
|
||||||
mkdir -p $OUTPUT_DIR/iperf
|
mkdir -p $OUTPUT_DIR/iperf
|
||||||
|
|
||||||
for PORT in {5257..5261} ; do
|
for PORT in {5213..5235} ; do
|
||||||
iperf3 -p $PORT \
|
iperf3 -p $PORT \
|
||||||
--logfile $OUTPUT_DIR/iperf/server.$PORT.log \
|
--logfile $OUTPUT_DIR/iperf/server.$PORT.log \
|
||||||
--server --daemon
|
--server --daemon
|
||||||
|
|
|
@ -1,18 +1,23 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
source scan-netdev
|
source scan-netdev
|
||||||
|
VLANS='110 218 222 226 306 321 480'
|
||||||
|
CTLPLANE=110
|
||||||
|
MY_DATE=`date +%Y-%m-%d_%H-%M-%S`
|
||||||
mkdir -p $OUTPUT_DIR/iperf
|
mkdir -p $OUTPUT_DIR/iperf
|
||||||
|
|
||||||
MY_PORT=`cat /etc/netdev/vlan.400.csv \
|
if [[ -n $1 ]] ; then
|
||||||
| grep $SERVER_SERIAL \
|
LABEL=".$1"
|
||||||
| cut -d ',' -f 3 \
|
fi
|
||||||
| cut -d '.' -f 4`
|
|
||||||
|
MY_PORT=`grep $SERVER_SERIAL /etc/netdev/vlan.$CTLPLANE.csv \
|
||||||
|
| cut -d ',' -f 3 | cut -d '.' -f 4`
|
||||||
if [[ -z $MY_PORT ]] ; then
|
if [[ -z $MY_PORT ]] ; then
|
||||||
echo "My Port empty"
|
echo "My Port empty"
|
||||||
exit 27
|
exit 27
|
||||||
fi
|
fi
|
||||||
|
|
||||||
for VLAN in 401 402 403 404 406 ; do
|
for VLAN in $VLANS ; do
|
||||||
if [[ -f /etc/netdev/vlan.$VLAN.csv ]] ; then
|
if [[ -f /etc/netdev/vlan.$VLAN.csv ]] ; then
|
||||||
VLAN_CONF=`grep $SERVER_SERIAL \
|
VLAN_CONF=`grep $SERVER_SERIAL \
|
||||||
/etc/netdev/vlan.$VLAN.csv`
|
/etc/netdev/vlan.$VLAN.csv`
|
||||||
|
@ -20,14 +25,13 @@ for VLAN in 401 402 403 404 406 ; do
|
||||||
if [[ -z $VLAN_CONF ]] ; then
|
if [[ -z $VLAN_CONF ]] ; then
|
||||||
continue
|
continue
|
||||||
fi
|
fi
|
||||||
IP_LIST=`cat /etc/netdev/vlan.$VLAN.csv \
|
IP_LIST=`sed 's/#.*$//' /etc/netdev/vlan.$VLAN.csv \
|
||||||
| grep -v 'STOC' \
|
|
||||||
| cut -d ',' -f 3 \
|
| cut -d ',' -f 3 \
|
||||||
| grep '^[0-9]' | sort`
|
| grep '^[0-9]' | sort`
|
||||||
for IP in $IP_LIST; do
|
for IP in $IP_LIST; do
|
||||||
echo -n "$IP - "
|
echo -n "$IP - "
|
||||||
iperf3 -P 4 -p 52$MY_PORT \
|
iperf3 -P 4 -p 52$MY_PORT \
|
||||||
--logfile $OUTPUT_DIR/iperf/client.$IP.slave.2.log \
|
--logfile $OUTPUT_DIR/iperf/client.$IP$LABEL.log \
|
||||||
-c $IP
|
-c $IP
|
||||||
echo $?
|
echo $?
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue