[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Monitoring from one place on the globe



Running Harald's script, I get this result through our verio link in
San Jose:

2000-08-14T10:39 SUCCESS 12 579.459 embratel-fapesp.NewYork.cw.net

>From a connection from a website connected via MAE-west, I get
this traceroute:

1  216.218.190.21 (216.218.190.21)  1.203 ms  1.435 ms  1.36 ms
 2  gige-f6-0-0.mae-west.he.net (216.218.130.4)  3.567 ms  2.49 ms  1.962 ms
 3  100tx-he-gate.above.net (207.126.96.97)  3.356 ms  2.51 ms  22.513 ms
 4  core1-mae-west-oc3-1.maew.above.net (209.133.31.177)  3.322 ms  3.033 ms  2.698 ms
 5  core4.sjc2-core1.maew-oc12.sjc2.above.net (216.200.254.73)  3.066 ms  10.084 ms  8.851 ms
 6  core3-core4-oc12.sjc2.above.net (208.184.102.197)  2.292 ms  2.608 ms  3.642 ms
 7  core5-core3-oc48.sjc2.above.net (208.185.156.66)  3.309 ms  2.541 ms  2.216 ms
 8  nyc-sjc-oc12.nyc.above.net (208.185.156.162)  91.968 ms  92.129 ms  92.562 ms
 9  core2-core1-oc48.nyc.above.net (209.133.31.202)  91.717 ms  92.309 ms  92.241 ms
10  swisscom-above-oc3.nyc.ip-plus.net (164.128.236.29)  102.651 ms  92.774 ms  92.515 ms
11  164.128.236.74 (164.128.236.74)  93.499 ms  93.076 ms  92.815 ms
12  swiEG1-P1-0-0.switch.ch (192.65.93.249)  181.341 ms  313.537 ms  180.76 ms
13  swiGEX-A4-0-7.switch.ch (130.59.33.117)  187.774 ms  187.6 ms  193.18 ms
14  swiCE1-A4-0-0-5.switch.ch (130.59.33.66)  390.681 ms  187.604 ms  187.512 ms
15  mbone-cern.switch.ch (192.65.185.100)  189.396 ms *  186.931 ms


I'll set the script to run every hour as well.
				Regards,
					Ted


> 
> Since I've got lots of other things to do, the enclosed Perl script fell 
> out of my keyboard today.
> I've set it to run every hour at a machine in a remote machine room in 
> Trondheim. It will be interesting to see if it records anything interesting.
> 
> Example output:
> 
> 2000-08-14T12:05 SUCCESS 20 574.342 embratel-fapesp.NewYork.cw.net
> ^                ^       ^    ^     ^
> timestamp        result  hops delay last router before aroot.psg.com
> 
> The result is SUCCESS if the last response came from aroot.psg.com, FAILURE 
> otherwise (and the router name is then the last router on traceroute output).
> 
> Currently, the aroot closest to Norway seems to be in Brazil.
> 
>                Harald
> 
> #!/usr/bin/perl
> # Ping the aroot nameserver, finding out where it is
> $date = `date +%Y-%m-%dT%H:%M`;
> chop $date;
> $tracert = `/usr/sbin/traceroute -f 9 aroot.psg.com 2>/dev/null | tail -2`;
> ($prev, $last) = split(/\n/, $tracert);
> ($hopc, $hostp, $ip, $delay) = split(/\s+/, $prev);
> ($hopc, $host, $ip, $delay) = split(/\s+/, $last);
> if ($host =~ /^aroot.psg.com/i) {
>      print "$date SUCCESS $hopc $delay $hostp\n";
> } else {
>      print "$date FAILURE $hopc $delay $host\n";
> }
> 
> --
> Harald Tveit Alvestrand, alvestrand@cisco.com
> +47 41 44 29 94
> Personal email: Harald@Alvestrand.no
> 
> 
>