Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added Network Tester #56

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
43 changes: 43 additions & 0 deletions Network-Tester/nw-test.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
#!/bin/bash
#experiment duration in minutes
duration=1
#interval between experiments in minutes
interval=1

for i in $( eval echo {0..$duration..$interval} )
do
echo "run "$i >> script.log
date >> script.log
GATEWAY=`ip route | grep default | cut -d' ' -f3`
echo $GATEWAY >> script.log
echo >> script.log
echo "`dig +short myip.opendns.com @resolver1.opendns.com`" >> script.log
echo >> script.log
ping -s 1400 -c 10 $GATEWAY >> script.log
echo >> script.log
echo >> script.log
ping -s 1400 -c 10 10.250.200.3 >>script.log
echo >> script.log
echo >> script.log
mtr -s 1400 -c 30 -r 10.250.209.251 >>script.log
echo >> script.log
mtr -s 1400 -c 30 -r google.com >>script.log
echo >> script.log
mtr -s 1400 -c 30 -r facebook.com >>script.log
echo >> script.log
dig @10.250.200.3 A www.iitb.ac.in >>script.log
echo >> script.log
dig @10.250.200.3 A www.mit.edu >>script.log
echo >> script.log
dig @10.250.200.3 A www.iitdh.ac.in >>script.log
echo >> script.log
traceroute google.com >>script.log
echo >> script.log
traceroute facebook.com >>script.log
echo >> script.log
wget -a script.log http://ports.ubuntu.com/ubuntu-ports/dists/bionic-updates/main/installer-arm64/current/images/netboot/netboot.tar.gz
echo >> script.log
wget -a script.log http://ftp.iitdh.ac.in/os/ubuntu/archives/ubuntu/dists/bionic-updates/main/installer-amd64/current/images/hwe-netboot/netboot.tar.gz
echo >> script.log
sleep $interval"m"
done