#!/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
| ' whereami=`echo $i | cut -d: -f1 | sed 's/_/ /g'` whathost=`echo $i | cut -d: -f2` url=`echo $i | cut -d: -f3` echo "$whathost" echo ' | ' ping -c 1 $whathost > /dev/null 2>&1 if [ $? -eq 0 ] then echo "$whereami is reachable | $whereami is not reachable | " fi done cat <<-!
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.