ncstat

I use Mike Gleason's excellent NcFTPd FTP server for my FTP site. It comes with a small shell script to print basic statistics about the site's activity, like this:
5999 /export/home/ftp/pub/CircleMUD/3.x/circle30bpl11.tar.gz
5747 /export/home/ftp/pub/CircleMUD/3.x/circle30bpl11.zip
4062 /export/home/ftp/pub/CircleMUD/contrib/code/00Index
3754 /export/home/ftp/pub/CircleMUD/3.x/README
2974 /export/home/ftp/pub/CircleMUD/contrib/win95/circle.w95-port.txt
2910 /export/home/ftp/pub/CircleMUD/contrib/win95/oasiswin95.README
2716 /export/home/ftp/pub/CircleMUD/contrib/win95/circle.w95-port.README
2448 /export/home/ftp/pub/CircleMUD/contrib/win95/circle-gnu.README
1949 /export/home/ftp/pub/CircleMUD/contrib/win95/oasiswin95.zip
1945 /export/home/ftp/pub/CircleMUD/README
1909 /export/home/ftp/pub/CircleMUD/contrib/win95/autowiz95.zip
1896 /export/home/ftp/pub/CircleMUD/contrib/code/oasisolc.tar.gz
1859 /export/home/ftp/pub/CircleMUD/README.WIN
1756 /export/home/ftp/pub/CircleMUD/contrib/docs/3.x/class.doc
I wanted something that gave me a bit more information, so I wrote a Perl script to crunch the same log files and come up with data that are a bit more interesting, including top hosts by number of bytes transmitted and top hosts by number of files transmitted. Here's a sample run, configured to show the top 10 hosts in these categories:

Number of Days in Summary Period                      199
Number of Hosts Accessing Archive                   19822

Total Bytes Transmitted During Summary Period          16.75 GB
Maximum Bytes Transmitted in a Single Day             396.95 MB (on 30 Sep 97)
Average Bytes Transmitted Per Day                      84.20 MB

Total Files Transmitted During Summary Period      243732
Maximum Files Transmitted in a Single Day            2501 (on 16 Jul 97)
Average Files Transmitted Per Day                    1224.78

Average Transfer Speed, Files >30Kb (Kb/sec)           39.83

------------------------------------------------------------------


Top 10 hosts by number of bytes transmitted:

Host                                Bytes   Files  Avg. Size
machine_919.llandrillo.ac.uk    318.37 MB       6   53.06 MB
ftp.seed.net.tw                  85.35 MB     778  109.70 KB
134.53.147.57                    76.03 MB     560  135.77 KB
192.44.242.73                    75.28 MB     744  101.19 KB
iglou2.iglou.com                 69.57 MB      64    1.09 MB
165.112.88.2                     62.91 MB       6   10.49 MB
geek.net                         56.78 MB      28    2.03 MB
a13b032.neo.lrun.com             55.45 MB      48    1.16 MB
annex4p10.cobweb.net             53.53 MB      22    2.43 MB
134.53.140.146                   53.40 MB       3   17.80 MB


------------------------------------------------------------------


Top 10 hosts by number of files transmitted:

Host                                Bytes   Files  Avg. Size
orange.interpia.net              42.29 MB     841   50.28 KB
38.233.146.110                   36.47 MB     837   43.57 KB
130.225.92.55                    25.79 MB     791   32.60 KB
ftp.seed.net.tw                  85.35 MB     778  109.70 KB
192.44.242.73                    75.28 MB     744  101.19 KB
soback.kornet.nm.kr              42.17 MB     677   62.28 KB
mwetzel.erols.com                23.57 MB     604   39.03 KB
mgi.mgisoft.com                  36.32 MB     603   60.24 KB
sunshine.mcit.com                49.00 MB     586   83.62 KB
gw.bbt.com                       18.46 MB     581   31.78 KB


------------------------------------------------------------------


Top 10 files by number of accesses:

      Hits File
    104175 Index/Informational Files
      5999 CircleMUD/3.x/circle30bpl11.tar.gz
      5747 CircleMUD/3.x/circle30bpl11.zip
      2974 CircleMUD/contrib/win95/circle.w95-port.txt
      1949 CircleMUD/contrib/win95/oasiswin95.zip
      1909 CircleMUD/contrib/win95/autowiz95.zip
      1896 CircleMUD/contrib/code/oasisolc.tar.gz
      1756 CircleMUD/contrib/docs/3.x/class.doc
      1559 CircleMUD/contrib/docs/3.x/levels.doc
      1442 CircleMUD/Changes


Back to my software page
Back to my home page

Jeremy Elson
Last updated: 18 Dec 1997