<?xml version="1.0"?>
<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN"
"http://www.wapforum.org/DTD/wml_1.1.xml">
<wml>
<card id="index" title="Text File" newcontext="true">
<p>
                              Table of Contents
</p>
<p>    1. How to test the gateway works
    2. Statistics
    3. The log file
</p>
<p></p>
<p>1. How to test that the gateway is working
</p>
<p>Telnet to the host running the gateway at the port number
that you used during installation, and press RETURN.
</p>
<p>Example:
</p>
<p>telnet gopher.upenn.edu 70
</p>
<p>You should see output like this:
</p>
<p>0About this Internet Gopher	Goph-TI-Gateway	lam.dccs.upenn.edu	70
1About PennInfo	M penninfo-srv.upenn.edu 9000 836	lam.dccs.upenn.edu	70
1About the University of Pennsylvania	M penninfo-srv.upenn.edu 9000 852	lam.dccs.upenn.edu	70
1What&#x27;s New on PennInfo	M penninfo-srv.upenn.edu 9000 1627	lam.dccs.upenn.edu	70
7Keyword search all nodes at this TechInfo server	K penninfo-srv.upenn.edu 9000 	lam.dccs.upenn.edu	70
7Keyword search the items in this menu	K penninfo-srv.upenn.edu 9000 0	lam.dccs.upenn.edu	70
1World Wide TechInfo	worldwide-techinfo	lam.dccs.upenn.edu	70
1World Wide Gopher	1/Other Gopher and Information Servers	gopher.tc.umn.edu	70
</p>
<p>.
Connection closed by foreign host.
</p>
<p>Specifically, look for these things
    1) &quot;About this Internet Gopher&quot;
    2) the main menu of the local Techinfo server
    3) keyword search items
    4) World wide techinfo
    5) World wide gopher
    6) the last line has just a period on it
</p>
<p>If you don&#x27;t get this output, read the DEBUGLOG file to see
if there&#x27;s a message that indicates the problem.  If the
DEBUGLOG doesn&#x27;t exist, then create an empty one, make it
owned by DAEMON, and try the test again.  If the file is
still empty, then check the spelling of the full filename
of the gateway executable in /etc/inetd.conf.  If that
doesn&#x27;t show what the problem is, check the inetd.conf file
to make sure that you&#x27;ve got 3 items after the full
filename of the executable.
</p>
<p>If all of the items show up except for #3 &amp; #4, then the
gateway was unable to contact the LOCALTI_SERVER at the
LOCALTI_PORT and get the main menu.  Check the spelling of
the domain name of the LOCALTI_SERVER.  Make sure that the
TechInfo server is up.
</p>
<p>If it still doesn&#x27;t work, send me email...
</p>
<p></p>
<p>2. Statistics (optional)
</p>
<p>The logfile contains useful information.  Once every month
or so, it&#x27;d be nice to have a summary of the usage of the
gateway.
</p>
<p>I&#x27;ve written a csh script, stats, which computes the total
number of connections, and the number of UPENN and
non-UPENN connections.
</p>
<p>Install the &quot;stats&quot; script somewhere, say
/usr/local/bin/gopher-ti-gw-stats, and run it to make sure
it works.
</p>
<p>Once it works, add a line to crontab.  For example:
0 0 1 * * /usr/local/bin/gopher-ti-gw-stats /usr/local/logs/gopher-techinfo-gw | /usr/ucb/mail -s &quot;Gopher-Techinfo GW Stats&quot; root
#
# send the stats on the first of the month to root
#
</p>
<p></p>
<p>3. The DEBUGLOG file needs to be erased on a regular basis.
   I wrote a script, called cleanuplog, which mails the log
   file to someone who cares if there are FatalErrors in
   the log, and then removes it.
</p>
<p>   Running this script once a month is probably often
   enough.  Install the script.  Since the script is
   normally silent, you should check it once in a while to
   make sure that it actually ran.
</p>
<p></p>
</card>
</wml>
