-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmakespeedtest.sh
121 lines (110 loc) · 2.41 KB
/
makespeedtest.sh
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
#!/bin/bash
# Use the speedtest.sh from this repo in same folder!
# ASCI Art
# brew install toilet libcaca wget iperf3
echo "---------------------------------------------------------------"
toilet Speedtest
ip=$(wget http://checkip.dyndns.org/ -q -O - | grep -Eo '\<[[:digit:]]{1,3}(\.[[:digit:]]{1,3}){3}\>')
datetime=$(date +"%Y-%m-%d-%H-%M")
line=$(echo "---------------------------------------------------------------")
echo $line
echo "Start at: $datetime with external IP: $ip"
echo $line
echo
echo "TCP Upload Start"
iperf3 -c dein-wlan-test.de -p 9000 -V --get-server-output # TCP Upload
echo
echo $line
echo
echo "TCP Upload End"
echo
echo $line
echo $line
echo
echo "TCP Download Start"
iperf3 -c dein-wlan-test.de -p 9000 -R -V --get-server-output # TCP Download
echo
echo $line
echo
echo "TCP Download End"
echo
echo $line
echo $line
echo
echo "TCP Upload Start with 1G"
iperf3 -b1G -c dein-wlan-test.de -p 9000 -V --get-server-output # TCP Upload with 1G Stream
echo
echo $line
echo
echo "TCP Upload End with 1G"
echo
echo $line
echo $line
echo
echo "TCP Download Start with 1G"
iperf3 -b1G -c dein-wlan-test.de -p 9000 -R -V --get-server-output # TCP Download with 1G Stream
echo
echo $line
echo
echo "TCP Download End with 1G"
echo
echo $line
echo $line
echo
echo "UDP Upload Start with 100m"
iperf3 -u -b100M -c dein-wlan-test.de -p 9000 -V --get-server-output # UDP Upload
echo
echo $line
echo
echo "UDP Upload End with100m"
echo
echo $line
echo $line
echo
echo "UDP Upload Start with 100m"
iperf3 -u -b100M -c dein-wlan-test.de -p 9000 -V --get-server-output # UDP Download
echo
echo $line
echo
echo "UDP Upload End with 100m"
echo
echo $line
echo $line
echo
echo "UDP Upload Start with 1G"
iperf3 -u -b1G -c dein-wlan-test.de -p 9000 -V --get-server-output # UDP Upload with 1G Stream
echo
echo $line
echo
echo "UDP Upload End with 1G"
echo
echo $line
echo $line
echo
echo "UDP Download Start with 1G"
iperf3 -u -b1G -c dein-wlan-test.de -p 9000 -R -V --get-server-output # UDP Download with 1G Stream
echo
echo $line
echo
echo "UDP Download End with 1G"
echo
echo $line
echo $line
echo
echo "Start with wget 1G file"
#wget aray with
wget -O /dev/null http://speedtest.belwue.net/1G 2>&1 | tee -a $datetime.wget_log.txt
#wget -O /dev/null http://speedtest.belwue.net/10G
echo "Stop with wget 1G file"
echo
echo $line
echo $line
echo
echo
echo $line
echo $line
toilet finish!
echo $line
echo "$datetime Test finish"
echo $line
echo $line