# 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 # -------------------- # SRV-FR (Valdeblore ; ASN 3215 Orange S.A.) to SRV-CA (Montréal ; ASN 16276 OVHCloud) mtr 158.69.126.137 -c 1000 -rw > /var/www/html/infos/my-traceroute/mtr-result-srv-ca-ipv4-$(date +%Y%m%d-%H%M00-GMT%z).txt & # SRV-FR (Valdeblore ; ASN 3215 Orange S.A.) to VPS-DE (Frankfort ; ASN 16276 OVHCloud) mtr 135.125.133.51 -c 1000 -rw > /var/www/html/infos/my-traceroute/mtr-result-vps-de-ipv4-$(date +%Y%m%d-%H%M00-GMT%z).txt & # SRV-FR (Valdeblore ; ASN 3215 Orange S.A.) to VPS-AU (Sydney ; ASN 16276 OVHCloud) mtr 139.99.171.39 -c 1000 -rw > /var/www/html/infos/my-traceroute/mtr-result-vps-au-ipv4-$(date +%Y%m%d-%H%M00-GMT%z).txt & # SRV-FR (Valdeblore ; ASN 3215 Orange S.A.) to VPS-GB (London ; ASN 16276 OVHCloud) mtr 57.128.171.43 -c 1000 -rw > /var/www/html/infos/my-traceroute/mtr-result-vps-gb-ipv4-$(date +%Y%m%d-%H%M00-GMT%z).txt & # SRV-FR (Valdeblore ; ASN 3215 Orange S.A.) to HST-FR (Paris ; ASN 47583 Hostinger ) mtr 147.79.115.130 -c 1000 -rw > /var/www/html/infos/my-traceroute/mtr-result-hst-fr-ipv4-$(date +%Y%m%d-%H%M00-GMT%z).txt & # SRV-FR (Valdeblore ; ASN 3215 Orange S.A.) 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-dns-google-ipv4-$(date +%Y%m%d-%H%M00-GMT%z).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 * * * sh /root/mtr-command.sh 2>/dev/null 2>&1