Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 24 Feb 1999 15:25:44 +0100 (CET)
From:      Wolfram Schneider <wosch@panke.de.freebsd.org>
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   docs/10240: We need a script which check if our web mirrors are up to date
Message-ID:  <199902241425.PAA33279@paula.panke.de.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         10240
>Category:       docs
>Synopsis:       We need a script which check if our web mirrors are up to date
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-doc
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          doc-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Feb 25 10:20:01 PST 1999
>Closed-Date:
>Last-Modified:
>Originator:     Wolfram Schneider
>Release:        FreeBSD 4.0-CURRENT i386
>Organization:
>Environment:


We need a script which check if our web mirrors are up to date
and in sync with the main FreeBSD webserver www.freebsd.org

The list of official web mirror site is available
from the homepage http://www.freebsd.org

http://www.freebsd.org/index.html
<OPTION VALUE="http://www.au.freebsd.org/">Australia/1</OPTION>;
<OPTION VALUE="http://www2.au.freebsd.org/">Australia/2</OPTION>;
<OPTION VALUE="http://www3.au.freebsd.org/">Australia/3</OPTION>;
<OPTION VALUE="http://www.br.freebsd.org/www.freebsd.org/">Brazil/1</OPTION
>Description:
 >;
 <OPTION VALUE="http://www2.br.freebsd.org/www.freebsd.org/">Brazil/2</OPTIO
 N>;
 <OPTION VALUE="http://www3.br.freebsd.org/">Brazil/3</OPTION>;
 <OPTION VALUE="http://www.bg.freebsd.org">Bulgaria</OPTION>;
 [...]
 
 
 Now you can do a HEAD request for every mirror
 and check if
         a) the server is up and running
         b) is up to date - field 'Last-Modified'
         c) the 'Content-Length' is correct
 
 $ lynx -dump -head http://www.freebsd.org/
 HTTP/1.1 200 OK
 Date: Tue, 08 Dec 1998 17:55:26 GMT
 Server: Apache/1.3.x (Unix)
 Last-Modified: Fri, 04 Dec 1998 00:02:32 GMT
 ETag: "ac907-2c14-36672698"
 Accept-Ranges: bytes
 Content-Length: 11284
 Connection: close
 Content-Type: text/html
 
 The FreeBSD homepage does not changed often. It should
 be possible to check other pages than the hompage too, e.g.
 
 http://www.freebsd.org/handbook/
 http://www.freebsd.org/FAQ/
 http://www.freebsd.org/ports/
 http://www.freebsd.org/news/qnewsletter.html
 
 
 The result should be a short message, e.g.
 
 44 Mirrors, 40 up, 4 down
 35 mirrors up to date, 3 mirrors are older than 2 weeks
 [List of outdated mirrors ...]
 
 
 
 We have a similar script for FTP Servers, see
 
 http://www.itworks.com.au/~gavin/FBSDsites.php3
 RELEASE/SNAP finder for FreeBSD FTP servers. A resource that would
 allow anyone to find a FTP server that contains particular releases
 and SNAP of FreeBSD. The database is updated daily at 3am Melbourne
 time (10 hours ahead of GMT).
 
 Wolfram
 
>How-To-Repeat:
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted:


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-doc" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199902241425.PAA33279>