Guest User

Untitled

a guest
May 21st, 2018
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.92 KB | None | 0 0
  1. #!/bin/bash
  2. trap "kill 0" SIGINT
  3. SERVER_NAMES_SA=("Interworks (Cape Town)" "SAIX (Cape Town)" "MTN SA (Cape Town)" "MTN SA (Port Elizabeth)" "Vox Telecom (Johannesburg)" "Seacom (Johannesburg)")
  4. SERVERS_SA=(14749 1270 2962 16107 7254 5889)
  5.  
  6. SERVER_NAMES_INT=("Vodafone UK (London)" "SEACOM (Amsterdam)" "Orange (Barcelona)" "Cybera (Calgary)" "Comcast (Richmond)" "QTS (Hong Kong)")
  7. SERVERS_INT=(2789 16534 4374 4637 1770 12990)
  8.  
  9. echo "South African server tests:"
  10. echo "==========================="
  11. echo
  12.  
  13. for ((i=0; i < ${#SERVERS_SA[@]}; i++))
  14. do
  15. echo "Testing ${SERVER_NAMES_SA[$i]} (#${SERVERS_SA[$i]})"
  16. speedtest-cli --simple --server ${SERVERS_SA[$i]}
  17. echo
  18. done
  19.  
  20. echo
  21.  
  22. echo "International server tests:"
  23. echo "==========================="
  24. echo
  25.  
  26. for ((i=0; i < ${#SERVERS_INT[@]}; i++))
  27. do
  28. echo "Testing ${SERVER_NAMES_INT[$i]} (#${SERVERS_INT[$i]})"
  29. speedtest-cli --simple --server ${SERVERS_INT[$i]}
  30. echo
  31. done
Add Comment
Please, Sign In to add comment