#!/bin/sh ############################################################################### ## ## Copyright (C) 1997 Chris Johnson (sixie@nccnet.co.uk) ## ############################################################################### # # These hosts are colon delimited and contain three fields: # 1. The name of the destination (use a _ for a space in this field). # 2. The gateway for the destination # 3. The URL of the owner of the gateway/backbone without the http:// bit HOSTS=' NCC_Net:alpha.nccnet.co.uk:www.nccnet.co.uk NCC_Net_gateway:skynet-nccnet-s2.sky.net.uk:www.skynet.co.uk America_(1):905.Hssi5-0.GW1.TCO1.ALTER.NET:www.alter.net America_(2):ds2.internic.net:www.internic.net Canada:core1.Montreal.iSTAR.net:www.istar.net The_LINX:london.linx.net:www.linx.net Europe:stockholm5.att-unisource.net:www.att-unisource.net Janet:smds-gw.thouse.ja.net:www.ja.net' cat <<-! Content-type: text/html How far can I get?

Access to the World

In the table shown below, is the current state of some of the worlds gateways and routers. If one of these routers is shown as not responding then this dose not automatically mean that you can not access that part of the world, as there are often backups and other routes that can be taken.

! for i in $HOSTS do echo '' ping -c 1 $whathost > /dev/null 2>&1 if [ $? -eq 0 ] then echo "" echo "" else echo "" echo "" fi done cat <<-!
Gateway
Status
Part of the world
' whereami=`echo $i | cut -d: -f1 | sed 's/_/ /g'` whathost=`echo $i | cut -d: -f2` url=`echo $i | cut -d: -f3` echo "$whathost" echo '
UP
$whereami is reachable
DOWN
$whereami is not reachable

This page automatically updates every 15 seconds. If you leave your browser on this page, you can watch as routers don't respond for a couple of moments before continuing to work. Routers rarely fail - if a router is down for more than a couple of minutes, then it has died. Usually the router does not respond as it is too busy. The link will take you to the owner of the backbone/router.


CGI by Chris Johnson (Sixie) !