home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Simtel MSDOS 1992 June
/
SIMTEL_0692.cdr
/
msdos
/
bbs
/
asla_120.arc
/
ASLA.DOC
< prev
next >
Wrap
Text File
|
1989-08-22
|
21KB
|
380 lines
════════════════════════════════════
▄█▄ ▄██▄ ███ ▄█▄
▀██▄ ▀███▄ ███ ▀██▄
▄▄▀██▄ ▀███▄ ███ ▄▄▀██▄
██▀ ▀██ ███ ███ ██▀ ▀██
██▄▄▄▄██ ▄▄▄▄████ ███▄▄▄▄▄ ██▄▄▄▄██
▀▀▀▀▀▀▀▀ ▀▀▀▀▀▀▀ ▀▀▀▀▀▀▀▀ ▀▀▀▀▀▀▀▀
────────────────────────────────────
Advanced System.Log Analyzer v1.20 for QuickBBS v2.04
Written by Gerard van der Land in Microsoft QuickBASIC 4.5
(C) Copyright 1989 Holland Computer Software. All rights reserved.
Released 22-Aug-89
■══════════════════════════════════════════════════════════════════■
WHAT IS ASLA?
■─────────────■
ASLA analyzes your SYSTEM.LOG, makes a statistical report in ASLA.A??, creates
LASTUSER.A?? with the last 20 users on the system (with baud rate), updates the
download counters like FILESCNT (Tony Bauman) for files downloaded with both
FileDoor and QuickBBS, and also makes a Bulletin Board with read-counters. ASLA
can be started after each user, because the program always continues analyzing
where it ended the last times, which makes it very fast.
DISCLAIMER AND OTHER IMPORTANT STUFF
■────────────────────────────────────■
The following points must be considered, understood and agreed upon BEFORE you
use ASLA v1.20:
■ This documentation and the accompanying program is copyrighted material by
Gerard van der Land and Holland Computer Software.
■ Although care has been taken to write and test a program that does what this
documentation states, the program is provided as it is, without warranty or
guarantee of any kind, either expressed or implied, as to the quality or
performance of this program, except that it will occupy disk space.
■ The author will not be held liable to you or anyone for any direct, indirect,
incidental or consequential damages, including any lost profits, lost savings
which may result from the use or inability to use this program.
Your use of the program constitutes your agreement to this disclaimer and
your release of the author from any form of liability or litigation.
■ I grant you a limited license to use ASLA v1.20 and encourage you to copy and
distribute it in the self-extracting archive in which it came (ASLA_120.COM)
as much as you want as long as you still abide to the conditions mentioned
here and no money or other compensation is asked or accepted.
HOW DOES IT WORK?
■─────────────────■
1. ASLA analyzes you SYSTEM.LOG and counts the following things:
■ Number of callers at 300, 1200, 2400 and 9600 baud, number of new users and
total number of callers.
ASLA will put "N/A" after the baudrate that are not supported on your BBS. It
wil get this information from CONFIG.BBS.
ASLA creates LASTUSER.A?? with date, time, name and baud rate of the last 20
users in LASTUSER.A??. When the sysop logs on without "fast logon", ASLA
doesn't count that for a call at the highest baud rate, but mentions it as
"Loc." (local) in the LASTUSER.A?? files, even if the sysop called from the
outside. There's just no way to see the difference as long as Adam Hudson
doesn't put a "on-line at 0 baud" in the SYSTEM.LOG.
■ Usage of the Xmodem (including 1k), Ymodem, Zmodem and SEAlink protocols,
total number of downloads and uploads.
ASLA puts the full path names of the downloaded files in FILEDIFF.LOG. Later
this file will be used to update the download counters and erased. ASLA also
updates a special Download and Uploads log file, just like FileDoor does with
the name of the user after each file, but they include the PE-transfers too!
■ Number of messages written and deleted, number of times the sysop was paged
and chatted with a user and the number of bulletins that were read.
If you enabled the "Bulletin" keyword in ASLA.CFG, ASLA can produce a .A??
version of a Bulletin Board with 13 subjects and read-counters. Therefore it
needs the file BULLETIN.DAT. The first line of that file looks like this:
"BULLET_","Title of the Bulletin Board comes here"
"BULLET_" is the filename of the master file used with QuickBBS menu type 6
"Selection menu". It can be maximum 7 characters long, but I recommend NOT to
use a shorter filename, since QuickBBS will then allow the user to enter more
than one character when selecting a bulletin. The title will be centered on
top of the board. After that, 13 lines follow, which all like this:
"A","Subject of this Bulletin Board comes here ",8
"A" is the character the user has to enter and also the last character of the
sub file, in this example "BULLET_A.A??". You are free to choose a character,
only "L" is not allowed, since it is used by QuickBBS to display the master
file "BULLET_.A??". The digit 8 is the number of times this Bulletin was
read. When you replace it, fist run ASLA to make sure there no more info in
SYSTEM.LOG that could update this counter, change the subject and zero the
counter. After that you can type "ASLA /BUL" to make a new Bulletin Board.
2. After analyzing SYSTEM.LOG, the ASCII and ANSI files are created in the
QuickBBS text files directory (at least if ASLA could find the CONFIG.BBS,
otherwise in the current directory).
3. If you enabled the "FilesCount" keyword in ASLA.CFG, then the second half
of the program starts: FILEDIFF.LOG is loaded, sorted on directory name and
truncated. After that for each directory from which a file was downloaded
(or all directories found in FLSEARCH.CTL if you used the /ALL switch):
a. FILES.BBS is loaded and FILES.$$$ created. If ASLA can't find a FILES.BBS,
then all files downloaded from that directory go back to FILEDIFF.LOG. ASLA
will re-try to update them next time until you should either make sure that
ASLA can find that FILES.BBS or change/delete FILEDIFF.LOG.
b. With every line that contains a filename, the following things are done:
■ Missing [0] will be added.
■ Missing description "New File. Description unknown" will be added.
This text can be changed with the keyword Description in ASLA.CFG.
■ Superfluous spaces will be removed.
■ If you enabled the "Space" keyword in ASLA.CFG, ASLA will put a space
behind [nn], otherwise existing space(s) will be removed.
■ The download counter will be increased if that file was downloaded.
■ The filename will be expanded so it always fills 12 characters
■ The description will be trimmed if it is longer than 47 characters, to
make sure that a file won't occupy more than one line when you use
QuickBBS menu type 31 "List FILES.BBS".
c. FILES.BAK will be deleted if it exists.
d. FILES.BBS will be renamed to FILES.BAK
e. FILES.$$$ will be renamed to FILES.BBS. This file will NOT contain a
End Of File character ^Z, so you don't need to strip it.
4. Finally ASLA will update BULLETIN.DAT and ASLA.SYS. This file contains info
to make ASLA continue next time where ended this time, which makes it
possible to run ASLA after each user instead of each 24 hours. Don't forget:
┌──────────────────────────────────────────────────────────────────┐
│ ■ When SYSTEM.LOG is deleted, you HAVE TO delete ASLA.SYS too! ■ │
└──────────────────────────────────────────────────────────────────┘
Some checking is done which makes ASLA abort if ASLA.SYS and SYSTEM.LOG
don't match, so it can't do any harm if you forget. An other way is to use
the /KILL switch, which will make ASLA delete the SYSTEM.LOG when done (so
if you want a backup, make one BEFORE running ASLA) but keeps ASLA.SYS, so
the statistics/lastusers are over a longer period. It is up to you to delete
ASLA.SYS when the numbers are getting too high.
EXAMPLES
■────────■
Here are some examples of ASLA's output in FILES.BBS when the keywords
"FilesCount", "Digits", "Space" and "Description" are enabled in ASLA.CFG:
I: "demo.dat" or
I: "DEMO.DAT [0]"
O: "DEMO.DAT [00] New File, Description Unknown"
I: "DEMO.DAT [124]This is a demonstration"
O: "DEMO.DAT [124] This is a demonstration"
I: "DEMO.DAT [001] To much spaces"
O: "DEMO.DAT [01] Exactly enough spaces" <== Artificial Intelligence :-)
INSTALLATION & CONFIGURATION
■────────────────────────────■
■ Fill in the info in ASLA.CFG and BULLETIN.DAT with your favorite ASCII-editor
like EDLIN (ahum...). Keywords known by ASLA are: "QuickBBSPath", "BBSName",
"LastUserPages", "Bulletin", "DownloadLog", "UploadLog", "FilesCount",
"Digits", "Space" and "Description". You won't find this too hard (I hope).
■ ===> IMPORTANT IF YOU USED THE FILESCOUNT KEYWORD IN FILEDOOR <===
It is impossible to detect whether a file was downloaded using FileDoor or
using the Protocol Engine, and that's why you can only use ASLA to only the
PE-downloads by disabling the "LogFile" keyword in FILEDOOR.CFG, but that
will corrupt the statistical info.
The best thing is to let ASLA do everything, by disabling the "FilesCount",
"DownloadLog" and "UploadLog" keywords in FILEDOOR.CFG and enabling them in
ASLA.CFG. Make sure you enable the "Logfile SYSTEM.LOG" keyword, else ASLA
can't find out FileDoor has been doing.
If don't have a SYSTEM.LOG at this moment or you didn't use download counters
until known, you can install ASLA now, otherwise you'll have to run it the
first time with the "FilesCount" keyword in ASLA.CFG DISABLED!
■ If you enabled "FilesCount" in ASLA.CFG, you can start ASLA /ALL switch to
let it update FILES.BBS in all directories found in FLSEARCH.CTL. This is
handy is you are using ASLA for the first time or when you put a big number
of new files on line.
■ Put ASLA in the batch file that runs your mailer with QuickBBS. Here is an
example for RUNFD.BAT (FrontDoor) to run ASLA after each user. Lines that
begin with | have to be inserted/added.
■──────── RUNFD.BAT
:Start
| If "%ASLA%"=="ASLA" Goto ASLA
Cls
Echo Starting FrontDoor 1.99 with QuickBBS v2.04
Cd \Fd
FD and so on...
:After_Quick
| SET ASLA=ASLA
If ErrorLevel and so on...
Goto Start
| :ASLA
| Cd\QuickBBS
| ASLA
| SET ASLA=
| Goto Start
■────────
If you don't have a mailer or you don't want ASLA to run after each user, you
can run ASLA during your daily event. You can also put ASLA with the /KILL
switch in a weekly event. (See previous page for details about this).
QUESTIONS AND ANSWERS
■─────────────────────■
Q: ASLA reports: "SYSTEM.LOG not found"
A: Yep. It is kind of hard to analyze a file that doesn't not even exist! Make
sure the "QuickBBSPath" keyword in ASLA.CFG points to the right directory.
Q: ASLA reports: "ASLA.SYS and SYSTEM.LOG don't match" or "Incorrect version
number in ASLA.SYS"
A: Never change anything in ASLA.SYS or SYSTEM.LOG and delete ASLA.SYS when you
delete SYSTEM.LOG, otherwise ASLA will give this error (again?)...
Q: ASLA reports: "Could not find .....\FILES.BBS, x download counters were not
updated."
A: This only happens if ASLA wants to update a FILES.BBS, but can't find it.
It will sent the names of files downloaded from this directory back to
FILEDIFF.LOG and continue. You should either change/delete FILEDIFF.LOG or
make sure ASLA can find the FILES.BBS next time.
Q: ASLA reports: "Updating x download counters in yyyy\FILES.BBS, found y",
but y is less or even more than x.
A: The reason that ASLA finds less than x files can be that you (re)moved a
downloaded file from that FILES.BBS before ASLA was started.
The reason that ASLA finds more than x files can be that a filename is in a
FILES.BBS more than once.
Q: ASLA puts the .A?? files in my current directory instead of the text files
directory. If I log on, LASTUSER.A?? doesn't show "Loc." behind my name.
A: You have to run ASLA from the QuickBBS directory as you current directory,
otherwise it can't find CONFIG.BBS (in this case the things you mentioned
will happen), or ASLA.EXE. If ASLA.SYS doesn't exist or you typed "ASLA ?",
a build-in virus-protection will see if ASLA.EXE was changed.
Q: Why do all windows have shadow?
A: Because I happen to like that! But don't panic: in the future you will be
able to create your own ugly .A?? files. :-)
Q: Which versions of QuickBBS and DOS does ASLA need?
A: ASLA was written for QuickBBS v2.04. Since I don't have v2.03 anymore, I
don't know what will happen, but why would you still be using that version?
It would however still be nice if some told me his experinces with v2.03.
The checksum routine opens ASLA.EXE with READ access only to prevent anti-
virus software from saying that ASLA is actually a virus itself, and this
seems only to be supported in DOS 3.0 or higher.
Q: Can ASLA be start remotely by a (co)-sysop when he wants to update the
Bulletin Board for example?
A: Yes, it can. All output is done though DOS, and can be redirected using CTTY
COMn:/GATEWAY or even ASLA >COMn.
Q: In what language was in written and is the source code available?
A: Don't you know by now? ASLA was written in and compiled with Microsoft
QuickBASIC Version 4.5, but also uses four routines from the Advanced Basic
library v99. The 856 lines of source code are not available, I'm sorry!
Q: Why did you write this program anyway?
A: ■ I saw some other SYSTEM.LOG analyzers and I wanted to write one too, but
then better a little better of course...
■ My sysop, Onno Hagers, wanted to have a bulletin board with read-counters.
■ The Protocol Engine in QuickBBS doesn't update the download counters.
■ BOXBEL, a German lastuser-program kept the BBS busy for several minutes
when the log files were getting very big.
Well this seemed enough reason for me to write ASLA, because it combines a
lot of tasks in one fast program.
Q: ASLA reports: "Thanks for using ASLA!"
A: Yeah! I really like it if you use my program, could you please tell me that
you are using it and what you think about it? In that case, thanks again!
ACKNOWLEDGEMENTS:
─────────────────
■ Adam Hudson for writing QuickBBS v2.04, the best BBS program in the world!
■ Joaquim Homrighausen for not putting a download counter updater in his
Protocol Engine, for Xrobot and also for the free copy of FrontDoor 1.99.
■ The programmers at Microsoft for writing there unbeatable great program
QuickBASIC 4.5 and many other good software.
■ Thomas Hanklin III for writing the library Advanced Basic v99, a very useful
supplement for QuickBASIC. (Now available as ProBas).
■ Jeroen Langeveld (FIBBS) for beta testing and his financial contribution.
■ Onno Hagers (Advanced BBS) and Michiel Wiegers (Fast BBS) for beta testing
and other help.
╔════════════════════════════════════════════════════════════════════════════╗
║ I am not a sysop yet. If anyone is interested in sponsoring me, I'll start ║
║ my own BBS! Software is no problem, I just need some hardware and money... ║
║ ■■■> You can contact me at Advanced BBS! (address on this page) <■■■ ║
╚════════════════════════════════════════════════════════════════════════════╝
SOFTWARE/HARDWARE USED:
■───────────────────────■
■ Microsoft Disk Operating System 3.30, also known as MS-DOS :-)
■ Microsoft QuickBASIC Compiler 4.5
■ WordPerfect 5.0, for writing this documentation
■ Norton Commander 2.00, WordPerfect Program Editor 4.2 and TheDraw 3.20, for
designing the output screens.
■ LASER TURBO XT-2, 10 Mhz Intel 8086, 640k RAM, 30 Mb HD, EGA, mouse
■ VENDEX HeadStart III, 12 Mhz Intel 80286, 1024k RAM, 30 Mb HD, VGA, mouse
Have fun with this program. I hope it can be useful to you. Everyone who has
questions/suggestions/money/bugs for me can reach me at Advanced BBS. There you
can always request the latest version using the "ASLA" as well.
___ __
/ \ _ _ _ _ __/ _ _ _ __ __/ _ _ / _ __ __/
( --+ /_) / | __) / | / / | / __) / / / / /_) / | / __) / / / /
\__/|(_ / (_/ / (_/ |/ (_/ / / (_/ (_ / (___/(_/ / / (_/ ,
Co-Sysop Advanced BBS Holland (2:283/308) +31-08384-2605, 300/1200/2400, 24h
HISTORY/FUTURE:
■───────────────■
Until know I spent a lot of time thinking, writing, debugging and documenting
ASLA, and I will keep on doing that. So if you use this program for a period of
time and find it to be of use, a financial contribution would be appreciated.
(Suggested: $7, but anything from $1 to $1000000 is welcome!). You can transfer
the money to giro 5.245.162 in Holland. But at least let me know if you are
using ASLA and tell me what you think about it. Thanks a lot!
┌───────────┬───────┬─────────────────────────────────────────────────────────┐
│ 10-Aug-89 │ v1.00 │ First release of ASLA │
├───────────┼───────┼─────────────────────────────────────────────────────────┤
│ 19-Aug-89 │ v1.10 │ ■ Translated documentation in to English. │
│ │ │ ■ ASLA now checks if the DOS version is ≥ 3.0 │
│ │ │ ■ /ALL will now automatically invoke the /BUL switch │
│ │ │ ■ All unimportant screen output has been removed. │
│ │ │ ■ Increased speed and reduced size of ASLA.EXE │
│ │ │ ■ Added 9600 Baud, Sysop Paged and Chatted counters. │
│ │ │ ■ ASLA can now update Download/Uploads.Log if you are │
│ │ │ not using the "FilesCount" keyword │
│ │ │ ■ Added "N/A" to those baud rates that aren't supported │
│ │ │ ■ LASTUSER.A?? now shows a * in front of new users │
│ │ │ ■ Number of digit in download counters can be fixed to │
│ │ │ 1 (default), 2, 3 or 4 (that seems enough to me!) │
│ │ │ ■ Fixed bug that ASLA didn't place the text defined by │
│ │ │ the "Description" keyword but the description of the │
│ │ │ previous file after a filename that missed both it's │
│ │ │ description and download counter. Thanks to Jeroen │
│ │ │ Langeveld of FIBBS, who noticed this one... │
├───────────┼───────┼─────────────────────────────────────────────────────────┤
│ 22-Aug-89 │ v1.20 │ ■ Now you can choose the number of pages in LASTUSER │
│ │ │ in the range from 1-8. │
│ │ │ ■ Error 9 would occur if you tried to put more than 13 │
│ │ │ subjects in BULLETIN.DAT. This has been fixed. │
│ │ │ ■ ASLA will now create a MSGSPOST.A?? that shows how │
│ │ │ many messages were posted in each message board. │
│ │ │ ■ The new commandline switch /KILL deletes SYSTEM.LOG │
│ │ │ after processing but keeps ASLA.SYS │
│ │ │ ■ Some other small changes and improvements. │
├───────────┼───────┼─────────────────────────────────────────────────────────┤
│ Future │ v?.?? │ ■ Now you can create your own .ASC and .ANS screens and │
│ │ │ let ASLA put it's info in there using variables │
│ │ │ ■ ASLA can create a TOPxx.A?? and an ALLFILES.BBS list │
│ (Under │ │ ■ More protocols are counted (BiModem, JMODEM, etc.) │
│ Reverse) │ │ ■ ASLA can now analyze FrontDoor's FD.LOG too. It puts │
│ │ │ the systems that (were) called in LASTUSER, and also │
│ │ │ updated the download counters for requested files. │
│ │ │ ■ Maybe you have some suggestions? Drop me a message! │
└───────────┴───────┴─────────────────────────────────────────────────────────┘
────────────────────────────────■ End Of File ■────────────────────────────────