Commit 7731b28e authored by Michael Rethfeldt's avatar Michael Rethfeldt
Browse files

first commit

parents
#!/bin/bash
NODE_MESH_MAC="04:f0:21:10:c3:23
04:f0:21:10:c3:20
04:f0:21:10:c8:0f
04:f0:21:10:c3:4f
04:f0:21:10:c2:90
04:f0:21:10:c2:8a
04:f0:21:10:c8:18
04:f0:21:10:c3:2b
04:f0:21:10:c8:15
04:f0:21:10:c3:57
04:f0:21:10:c3:41
04:f0:21:10:c3:71
04:f0:21:10:c3:2a
04:f0:21:10:c3:62
04:f0:21:10:c3:55
04:f0:21:10:c2:8e
04:f0:21:0f:77:54
04:f0:21:10:c3:39
04:f0:21:10:c3:33
04:f0:21:10:c5:af
04:f0:21:10:c3:3f
04:f0:21:10:c3:51
04:f0:21:10:c3:4c
04:f0:21:10:c2:88
04:f0:21:10:c8:0d
04:f0:21:10:c3:53
04:f0:21:10:c5:52
04:f0:21:10:c8:17
04:f0:21:10:c5:51
04:f0:21:10:c3:59
04:f0:21:10:c3:52
04:f0:21:10:c3:54
04:f0:21:10:c3:38
04:f0:21:10:c3:65
04:f0:21:10:c3:21
04:f0:21:10:c5:53
04:f0:21:10:c8:0c
04:f0:21:10:c3:3b
04:f0:21:10:c8:0e
04:f0:21:14:c6:5e"
NODE_MAC=$NODE_MESH_MAC # TODO: compat
NODE_MESH_IP_BASE="192.168.123"
NODE_MESH_IP="192.168.123.10
192.168.123.11
192.168.123.12
192.168.123.13
192.168.123.14
192.168.123.15
192.168.123.16
192.168.123.17
192.168.123.18
192.168.123.19
192.168.123.20
192.168.123.21
192.168.123.22
192.168.123.23
192.168.123.24
192.168.123.25
192.168.123.26
192.168.123.27
192.168.123.28
192.168.123.29
192.168.123.30
192.168.123.31
192.168.123.32
192.168.123.33
192.168.123.34
192.168.123.35
192.168.123.36
192.168.123.37
192.168.123.38
192.168.123.39
192.168.123.40
192.168.123.41
192.168.123.42
192.168.123.43
192.168.123.44
192.168.123.45
192.168.123.46
192.168.123.47
192.168.123.48
192.168.123.49"
NODE_ETH_MAC="98:4f:ee:00:2a:b2
98:4f:ee:00:28:98
98:4f:ee:00:2a:f6
98:4f:ee:00:2b:23
98:4f:ee:00:23:1d
98:4f:ee:00:2a:e4
98:4f:ee:00:2b:0f
98:4f:ee:00:2b:09
98:4f:ee:01:51:90
98:4f:ee:00:2a:20
98:4f:ee:00:29:d8
98:4f:ee:00:2a:97
98:4f:ee:00:2a:45
98:4f:ee:00:27:df
98:4f:ee:00:2a:6a
98:4f:ee:00:22:54
98:4f:ee:00:2a:90
98:4f:ee:00:2b:58
98:4f:ee:00:29:61
98:4f:ee:00:28:19
98:4f:ee:00:2b:4f
98:4f:ee:00:2a:e0
98:4f:ee:00:2b:02
98:4f:ee:00:29:66
98:4f:ee:00:27:16
98:4f:ee:00:2a:b0
98:4f:ee:00:26:28
98:4f:ee:00:2b:20
98:4f:ee:01:50:46
98:4f:ee:00:26:eb
98:4f:ee:00:2a:eb
98:4f:ee:00:27:15
98:4f:ee:00:2a:9b
98:4f:ee:00:2a:80
98:4f:ee:00:29:ff
98:4f:ee:01:2b:71
98:4f:ee:01:4f:e1
98:4f:ee:01:50:f3
98:4f:ee:01:50:4f
98:4f:ee:00:2a:ec"
NODE_ETH_IP_BASE="192.168.0"
NODE_ETH_IP="192.168.0.10
192.168.0.11
192.168.0.12
192.168.0.13
192.168.0.14
192.168.0.15
192.168.0.16
192.168.0.17
192.168.0.18
192.168.0.19
192.168.0.20
192.168.0.21
192.168.0.22
192.168.0.23
192.168.0.24
192.168.0.25
192.168.0.26
192.168.0.27
192.168.0.28
192.168.0.29
192.168.0.30
192.168.0.31
192.168.0.32
192.168.0.33
192.168.0.34
192.168.0.35
192.168.0.36
192.168.0.37
192.168.0.38
192.168.0.39
192.168.0.40
192.168.0.41
192.168.0.42
192.168.0.43
192.168.0.44
192.168.0.45
192.168.0.46
192.168.0.47
192.168.0.48
192.168.0.49"
NODE_NAME="Galileo1
Galileo2
Galileo3
Galileo4
Galileo5
Galileo6
Galileo7
Galileo8
Galileo9
Galileo10
Galileo11
Galileo12
Galileo13
Galileo14
Galileo15
Galileo16
Galileo17
Galileo18
Galileo19
Galileo20
Galileo21
Galileo22
Galileo23
Galileo24
Galileo25
Galileo26
Galileo27
Galileo28
Galileo29
Galileo30
Galileo31
Galileo32
Galileo33
Galileo34
Galileo35
Galileo36
Galileo37
Galileo38
Galileo39
Galileo40"
#!/bin/bash
#LIST="1 2 7 8" # 2x2 grid
#LIST="3 9 13 14 15" # 3x3 grid (increment)
#LIST="1 2 3 7 8 9 13 14 15" # 3x3 grid (full)
#LIST="4 10 16 19 20 21 22" # 4x4 grid (increment)
#LIST="1 2 3 4 7 8 9 10 13 14 15 16 19 20 21 22" # 4x4 grid (full)
#LIST="5 11 17 23 25 26 27 28 29" # 5x5 grid (increment)
LIST="1 2 3 4 5 7 8 9 10 11 13 14 15 16 17 19 20 21 22 23 25 26 27 28 29" # 5x5 grid (full)
#LIST=$(seq 1 1 36)
#LIST=$(seq 1 1 40)
#TXPOWER=300
#TXPOWER=400
#TXPOWER=500
#TXPOWER=600
#TXPOWER=700
#TXPOWER=800
#TXPOWER=900
#TXPOWER=1000
#TXPOWER=1100
#TXPOWER=1200
#TXPOWER=1300
TXPOWER=1400
#TXPOWER=1500
#TXPOWER=1600
#TXPOWER=1700
BMCRATE=24
MCS=3
#BMCRATE=36
#MCS=4
for i in $LIST ; do
ssh root@"galileo$i" "\
ifconfig wlan0 up && \
iw dev wlan0 mesh join mesh freq 5745 HT20 basic-rates $BMCRATE mcast-rate $BMCRATE && \
iw dev wlan0 set bitrates ht-mcs-5 $MCS lgi-5 && \
iw dev wlan0 set mesh_param mesh_plink_timeout 20 && \
iw dev wlan0 set txpower fixed $TXPOWER && \
iwconfig wlan0 | grep Tx-Power \
" &
#iw dev wlan0 set mesh_param mesh_max_retries 20 && \
#iw dev wlan0 set mesh_param mesh_retry_timeout 100 && \
#iw dev wlan0 set mesh_param mesh_confirm_timeout 100 && \
#iw dev wlan0 set mesh_param mesh_holding_timeout 100 && \
done
#!/bin/bash
#LIST=$(seq 1 1 36)
LIST=$(seq 1 1 40)
#LIST="1 2 3 4 5 7 8 9 10 11 13 14 15 16 17 19 20 21 22 23 25 26 27 28 29" # 31 32 33 34 35"
for i in $LIST ; do
ssh root@"galileo$i" "apt-get autoremove -y" &
done
#!/bin/bash
#LIST=$(seq 1 1 36)
LIST=$(seq 1 1 40)
#LIST="1 2 3 4 5 7 8 9 10 11 13 14 15 16 17 19 20 21 22 23 25 26 27 28 29"
for i in $LIST ; do
ssh root@"galileo$i" "apt-get update" &
done
#!/bin/bash
#LIST=$(seq 1 1 36)
LIST=$(seq 1 1 40)
#LIST="1 2 3 4 5 7 8 9 10 11 13 14 15 16 17 19 20 21 22 23 25 26 27 28 29"
for i in $LIST ; do
ssh root@"galileo$i" "apt-get upgrade -y" &
done
#!/bin/bash
ETH=eth0 #meshlab1+2
#ETH=enp3s0 #meshlab3
sudo nmap -n -e $ETH -sP -PR 192.168.0.1-255
#!/bin/bash
LIST=$(seq 1 1 36)
#LIST="1 2 3 4 5 7 8 9 10 11 13 14 15 16 17 19 20 21 22 23 25 26 27 28 29"
for i in $LIST ; do
ssh root@"galileo$i" "nmap -T3 -n -e wlan0 -sP -PR 192.168.123.10-45" &
done
This diff is collapsed.
#!/bin/bash
LIST=$(seq 1 1 36)
#LIST=$(seq 1 1 40)
#LIST="1 2 3 4 5 7 8 9 10 11 13 14 15 16 17 19 20 21 22 23 25 26 27 28 29" # 31 32 33 34 35"
for i in $LIST ; do
#ssh root@"galileo$i" "iw dev wlan0 set bitrates" &
#ssh root@"galileo$i" "iw dev wlan0 set bitrates ht-mcs-2.4 3 lgi-2.4" &
ssh root@"galileo$i" "iw dev wlan0 set bitrates ht-mcs-5 5 lgi-5" &
done
#!/bin/bash
LIST=$(seq 1 1 36)
#LIST=$(seq 1 1 40)
#LIST="1 2 3 4 5 7 8 9 10 11 13 14 15 16 17 19 20 21 22 23 25 26 27 28 29" # 31 32 33 34 35"
for i in $LIST ; do
# ssh root@"galileo$i" "ifconfig wlan0 down && \
# iw dev wlan0 set txpower fixed 1200 && iwconfig && \
# ifconfig wlan0 up && \
# iw dev wlan0 mesh join mesh freq 5745 HT20 basic-rates 24 mcast-rate 24 && \
# iw dev wlan0 set bitrates ht-mcs-5 3 lgi-5" &
ssh root@"galileo$i" "iw dev wlan0 mesh join mesh freq 5745 HT20 basic-rates 24 mcast-rate 24 && \
iw dev wlan0 set bitrates ht-mcs-5 9 lgi-5 \
iw dev wlan0 set txpower fixed 1200 && iwconfig" &
done
#!/bin/bash
#LIST=$(seq 1 1 36)
#LIST=$(seq 1 1 40)
#LIST="1 2 3 4 5 7 8 9 10 11 13 14 15 16 17 19 20 21 22 23 25 26 27 28 29" # 31 32 33 34 35"
LIST="6 12 18 24 30 36" # 35 34 33 32 31"
for i in $LIST ; do
#ssh root@"galileo$i" "iw dev wlan0 set mesh_param mesh_plink_timeout=10" &
#ssh root@"galileo$i" "iw dev wlan0 set mesh_param mesh_plink_timeout=20" &
#ssh root@"galileo$i" "iw dev wlan0 set mesh_param mesh_plink_timeout=30" &
ssh root@"galileo$i" "iw dev wlan0 set mesh_param mesh_rssi_threshold=0" &
#ssh root@"galileo$i" "iw dev wlan0 set mesh_param mesh_rssi_threshold=-85" &
#ssh root@"galileo$i" "iw dev wlan0 set mesh_param mesh_rssi_threshold=-88" &
#ssh root@"galileo$i" "iw dev wlan0 set mesh_param mesh_rssi_threshold=-90" &
done
#!/bin/bash
#LIST=$(seq 1 1 36)
#LIST=$(seq 1 1 40)
#LIST="1 2 3 4 5 7 8 9 10 11 13 14 15 16 17 19 20 21 22 23 25 26 27 28 29" # 31 32 33 34 35"
LIST="6 12 18 24 30 36" # 35 34 33 32 31"
for i in $LIST ; do
#ssh root@"galileo$i" "echo -120 > /sys/kernel/debug/ieee80211/phy0/ath9k/nf_override | cat /sys/kernel/debug/ieee80211/phy0/ath9k/nf_override" &
#ssh root@"galileo$i" "echo -119 > /sys/kernel/debug/ieee80211/phy0/ath9k/nf_override | cat /sys/kernel/debug/ieee80211/phy0/ath9k/nf_override" &
#ssh root@"galileo$i" "echo -118 > /sys/kernel/debug/ieee80211/phy0/ath9k/nf_override | cat /sys/kernel/debug/ieee80211/phy0/ath9k/nf_override" &
#ssh root@"galileo$i" "echo -117 > /sys/kernel/debug/ieee80211/phy0/ath9k/nf_override | cat /sys/kernel/debug/ieee80211/phy0/ath9k/nf_override" &
#ssh root@"galileo$i" "echo -116 > /sys/kernel/debug/ieee80211/phy0/ath9k/nf_override | cat /sys/kernel/debug/ieee80211/phy0/ath9k/nf_override" &
#ssh root@"galileo$i" "echo -115 > /sys/kernel/debug/ieee80211/phy0/ath9k/nf_override | cat /sys/kernel/debug/ieee80211/phy0/ath9k/nf_override" &
#ssh root@"galileo$i" "echo -114 > /sys/kernel/debug/ieee80211/phy0/ath9k/nf_override | cat /sys/kernel/debug/ieee80211/phy0/ath9k/nf_override" &
#ssh root@"galileo$i" "echo -113 > /sys/kernel/debug/ieee80211/phy0/ath9k/nf_override | cat /sys/kernel/debug/ieee80211/phy0/ath9k/nf_override" &
# #ssh root@"galileo$i" "echo -112 > /sys/kernel/debug/ieee80211/phy0/ath9k/nf_override | cat /sys/kernel/debug/ieee80211/phy0/ath9k/nf_override" &
#ssh root@"galileo$i" "echo -111 > /sys/kernel/debug/ieee80211/phy0/ath9k/nf_override | cat /sys/kernel/debug/ieee80211/phy0/ath9k/nf_override" &
ssh root@"galileo$i" "echo -110 > /sys/kernel/debug/ieee80211/phy0/ath9k/nf_override | cat /sys/kernel/debug/ieee80211/phy0/ath9k/nf_override" &
#ssh root@"galileo$i" "echo -109 > /sys/kernel/debug/ieee80211/phy0/ath9k/nf_override | cat /sys/kernel/debug/ieee80211/phy0/ath9k/nf_override" &
#ssh root@"galileo$i" "echo -108 > /sys/kernel/debug/ieee80211/phy0/ath9k/nf_override | cat /sys/kernel/debug/ieee80211/phy0/ath9k/nf_override" &
#ssh root@"galileo$i" "echo -107 > /sys/kernel/debug/ieee80211/phy0/ath9k/nf_override | cat /sys/kernel/debug/ieee80211/phy0/ath9k/nf_override" &
#ssh root@"galileo$i" "echo -106 > /sys/kernel/debug/ieee80211/phy0/ath9k/nf_override | cat /sys/kernel/debug/ieee80211/phy0/ath9k/nf_override" &
#ssh root@"galileo$i" "echo -105 > /sys/kernel/debug/ieee80211/phy0/ath9k/nf_override | cat /sys/kernel/debug/ieee80211/phy0/ath9k/nf_override" &
#ssh root@"galileo$i" "echo -104 > /sys/kernel/debug/ieee80211/phy0/ath9k/nf_override | cat /sys/kernel/debug/ieee80211/phy0/ath9k/nf_override" &
#ssh root@"galileo$i" "echo -103 > /sys/kernel/debug/ieee80211/phy0/ath9k/nf_override | cat /sys/kernel/debug/ieee80211/phy0/ath9k/nf_override" &
#ssh root@"galileo$i" "echo -102 > /sys/kernel/debug/ieee80211/phy0/ath9k/nf_override | cat /sys/kernel/debug/ieee80211/phy0/ath9k/nf_override" &
#ssh root@"galileo$i" "echo -101 > /sys/kernel/debug/ieee80211/phy0/ath9k/nf_override | cat /sys/kernel/debug/ieee80211/phy0/ath9k/nf_override" &
#ssh root@"galileo$i" "echo -100 > /sys/kernel/debug/ieee80211/phy0/ath9k/nf_override | cat /sys/kernel/debug/ieee80211/phy0/ath9k/nf_override" &
#ssh root@"galileo$i" "echo -99 > /sys/kernel/debug/ieee80211/phy0/ath9k/nf_override | cat /sys/kernel/debug/ieee80211/phy0/ath9k/nf_override" &
#ssh root@"galileo$i" "echo -98 > /sys/kernel/debug/ieee80211/phy0/ath9k/nf_override | cat /sys/kernel/debug/ieee80211/phy0/ath9k/nf_override" &
#ssh root@"galileo$i" "echo -97 > /sys/kernel/debug/ieee80211/phy0/ath9k/nf_override | cat /sys/kernel/debug/ieee80211/phy0/ath9k/nf_override" &
#ssh root@"galileo$i" "echo -96 > /sys/kernel/debug/ieee80211/phy0/ath9k/nf_override | cat /sys/kernel/debug/ieee80211/phy0/ath9k/nf_override" &
#ssh root@"galileo$i" "echo -95 > /sys/kernel/debug/ieee80211/phy0/ath9k/nf_override | cat /sys/kernel/debug/ieee80211/phy0/ath9k/nf_override" &
done
#!/bin/bash
# all devices
#LIST=$(seq 1 1 40)
#LIST="1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40"
# grid 5x5 (MeNTor, CHaChA, KadMesh)
LIST="1 2 3 4 5 7 8 9 10 11 13 14 15 16 17 19 20 21 22 23 25 26 27 28 29"
# grid 6x6 (...)
#LIST=$(seq 1 1 36)
#LIST="1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36"
# 5- to 10-hop path (MARCo)
#LIST="6 12 18 24 30 36"
#LIST="35 34 33 32 31"
#LIST="6 12 18 24 30 36 35 34 33 32 31"
# interferers (MARCo)
#LIST="37 38"
# test nodes
#LIST="39 40"
for i in $LIST ; do
echo "Changing RTS/CTS configuration on Galileo $i ..."
ssh root@"galileo$i" "iw phy phy0 set rts off" & # deactivate for first MRR chain
# ssh root@"galileo$i" "iw phy phy0 set rts 500" & # activate for first MRR chain if frame > 500 bytes
done
#!/bin/bash
#LIST=$(seq 1 1 36)
#LIST=$(seq 1 1 40)
LIST="1 2 3 4 5 7 8 9 10 11 13 14 15 16 17 19 20 21 22 23 25 26 27 28 29"
for i in $LIST ; do
#ssh root@"galileo$i" "iw dev wlan0 set txpower fixed 300 && iwconfig wlan0 | grep Tx-Power" &
#ssh root@"galileo$i" "iw dev wlan0 set txpower fixed 400 && iwconfig wlan0 | grep Tx-Power" &
#ssh root@"galileo$i" "iw dev wlan0 set txpower fixed 500 && iwconfig wlan0 | grep Tx-Power" &
#ssh root@"galileo$i" "iw dev wlan0 set txpower fixed 600 && iwconfig wlan0 | grep Tx-Power" &
#ssh root@"galileo$i" "iw dev wlan0 set txpower fixed 700 && iwconfig wlan0 | grep Tx-Power" &
#ssh root@"galileo$i" "iw dev wlan0 set txpower fixed 800 && iwconfig wlan0 | grep Tx-Power" &
#ssh root@"galileo$i" "iw dev wlan0 set txpower fixed 900 && iwconfig wlan0 | grep Tx-Power" &
#ssh root@"galileo$i" "iw dev wlan0 set txpower fixed 1000 && iwconfig wlan0 | grep Tx-Power" &
#ssh root@"galileo$i" "iw dev wlan0 set txpower fixed 1100 && iwconfig wlan0 | grep Tx-Power" &
#ssh root@"galileo$i" "iw dev wlan0 set txpower fixed 1200 && iwconfig wlan0 | grep Tx-Power" &
#ssh root@"galileo$i" "iw dev wlan0 set txpower fixed 1300 && iwconfig wlan0 | grep Tx-Power" &
ssh root@"galileo$i" "iw dev wlan0 set txpower fixed 1400 && iwconfig wlan0 | grep Tx-Power" &
#ssh root@"galileo$i" "iw dev wlan0 set txpower fixed 1500 && iwconfig wlan0 | grep Tx-Power" &
#ssh root@"galileo$i" "iw dev wlan0 set txpower fixed 1600 && iwconfig wlan0 | grep Tx-Power" &
#ssh root@"galileo$i" "iw dev wlan0 set txpower fixed 1700 && iwconfig wlan0 | grep Tx-Power" &
#ssh root@"galileo$i" "iw dev wlan0 set txpower fixed 1800 && iwconfig wlan0 | grep Tx-Power" &
#ssh root@"galileo$i" "iw dev wlan0 set txpower fixed 1900 && iwconfig wlan0 | grep Tx-Power" &
#ssh root@"galileo$i" "iw dev wlan0 set txpower fixed 2000 && iwconfig wlan0 | grep Tx-Power" &
done
#!/bin/bash
#LIST=$(seq 1 1 36)
#LIST=$(seq 1 1 40)
LIST="1 2 3 4 5 7 8 9 10 11 13 14 15 16 17 19 20 21 22 23 25 26 27 28 29"
#LIST="6 12 18 24 30 36" # 35 34 33 32 31"
for i in $LIST; do
file="/home/root/calibNF_Galileo$i.done"
( if ssh root@"galileo$i" test -e $file;
then echo Galileo$i calibration finished
else echo Galileo$i calibration not finished yet
fi ) &
done
#!/bin/bash
LIST=${@:-"$(seq 1 1 40)"} #Default Galileo1,Galileo2,...,Galileo36
#ODER Commandline Nummern also: 'rsync_test.sh 1 2 7 9'
for i in $LIST ; do
echo "Galileo${i}"
ssh root@galileo$i "/bin/iam"
echo ""
done
#!/bin/bash
file="/usr/bin/perf"
#LIST=$(seq 1 1 36)
LIST=$(seq 1 1 40)
#LIST="1 2 3 4 5 7 8 9 10 11 13 14 15 16 17 19 20 21 22 23 25 26 27 28 29" # 31 32 33 34 35"
for i in $LIST ; do
echo
echo "Checking perf on Galileo $i ..."
if ssh root@galileo$i test -e $file;
then echo $file exists
else echo $file does not exist
fi
echo
done
#!/bin/bash
file="/usr/local/sbin/ptpd2"
#LIST=$(seq 1 1 36)
LIST=$(seq 1 1 40)
#LIST="1 2 3 4 5 7 8 9 10 11 13 14 15 16 17 19 20 21 22 23 25 26 27 28 29" # 31 32 33 34 35"
for i in $LIST ; do
echo
echo "Checking ptpd on Galileo $i ..."
if ssh root@galileo$i test -e $file;
then echo $file exists
else echo $file does not exist
fi
echo
done
#!/bin/bash
LIST=${@:-"$(seq 1 1 36)"} #Default Galileo1,Galileo2,...,Galileo36
#ODER Commandline Nummern also: 'rsync_test.sh 1 2 7 9'
echo $(date +%R" "%F) > date.log
for i in $LIST ; do
$(rsync date.log root@galileo$i:/home/root/) && echo -e "Galileo${i}\tErfolgreich" || echo -e "Galileo${i}\tFehler!" &
done
#!/bin/bash
LIST=$(seq 1 1 36)
#LIST="1 2 3 4 5 7 8 9 10 11 13 14 15 16 17 19 20 21 22 23 25 26 27 28 29" # 31 32 33 34 35"
for i in $LIST; do
echo "Check tcpserver on Galileo $i ..."
ssh root@"galileo$i" "which tcpserver"
done
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment