# cat /root/mtr-command.sh # --------------------------------------------------------------------------------------------- #!/bin/bash # MTR : My Traceroute # Reading MTR Output Network Diagnostic Tool : https://www.exavault.com/blog/reading-mtr-output # Linux MTR command : https://cloudns-net.medium.com/linux-mtr-command-d1b21299dc23 # Example command : "mtr addr_IP" -> trace run for 10-15 minutes for best results. # Other example : mtr -o 'J M X LSR NA B W V' -wzbc 50 addr_IP # -------------------- # VPS-DE (Frankfort ; ASN 16276 OVHCloud) to SRV-CA (Montreal ; ASN 16276 OVHCloud) mtr 158.69.126.137 -c 1000 -rw > /var/www/html/infos/my-traceroute/mtr-result_$(date +%Y%m%d-%H%M00-GMT%z)_vps-de_2_srv-ca_ipv4.txt & # VPS-DE (Frankfort ; ASN 16276 OVHCloud) to HST-FR (Paris ; ASN 47583 Hostinger) mtr 147.79.115.130 -c 1000 -rw > /var/www/html/infos/my-traceroute/mtr-result_$(date +%Y%m%d-%H%M00-GMT%z)_vps-de_2_hst-fr_ipv4.txt & # VPS-DE (Frankfort ; ASN 16276 OVHCloud) to VPS-AU (Sydney ; ASN 16276 OVHCloud) mtr 139.99.171.39 -c 1000 -rw > /var/www/html/infos/my-traceroute/mtr-result_$(date +%Y%m%d-%H%M00-GMT%z)_vps-de_2_vps-au_ipv4.txt & # VPS-DE (Frankfort ; ASN 16276 OVHCloud) to VPS-GB (London ; ASN 16276 OVHCloud) mtr 57.128.171.43 -c 1000 -rw > /var/www/html/infos/my-traceroute/mtr-result_$(date +%Y%m%d-%H%M00-GMT%z)_vps-de_2_vps-gb_ipv4.txt & # VPS-DE (Frankfort ; ASN 16276 OVHCloud) to GATE-FR (Valdeblore ; ASN 3215 Orange S.A.) mtr 90.116.205.63 -c 1000 -rw > /var/www/html/infos/my-traceroute/mtr-result_$(date +%Y%m%d-%H%M00-GMT%z)_vps-de_2_gate-fr_ipv4.txt & # VPS-DE (Frankfort ; ASN 16276 OVHCloud) to DNS-GOOGLE (Mountain View ; ASN 15169 Google LLC) mtr 8.8.8.8 -c 1000 -rw > /var/www/html/infos/my-traceroute/mtr-result_$(date +%Y%m%d-%H%M00-GMT%z)_vps-de_2_dns-google_ipv4.txt & #--------------------------------------------------------------------------------------------------- # crontab -l # m h dom mon dow command #minute (0-59) #| hour (0-23) #| | day of the month (1-31) #| | | month of the year (1-12) #| | | | day of the week (0-6 with 0=Sun) #| | | | | commands #| | | | | | #--------------------------------------------------------------------------------------------------- # -------------------- # A Traceroute every 6 hours 0 */6 * * * sleep $(shuf -i 10800-10800 -n1) ; sh /root/mtr-command.sh 2>/dev/null 2>&1