home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 2 BBS
/
02-BBS.zip
/
maxal104.zip
/
MAXALL.DOC
< prev
next >
Wrap
Text File
|
1993-09-21
|
15KB
|
286 lines
MaxAll - Maximus All Reports Generator v1.04
Written and Copyright by Craig Allsop
┌─────────────────────────────────────────────────────────────────────────────┐
│░░ General Overview ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 1 ░░│
└─────────────────────────────────────────────────────────────────────────────┘
1.1 This utility is intended for use with Maximus 2.0/2.01, to generate
today's callers, yesterday's callers, top callers, top downloaders
(kb), top uploaders (kb), best ratio, worst ratio, usage graphs for
the last week, month and quarter year, and some overall system
statistics. I've designed this utility to run as fast as possible, on
my system (a 386-33, multitasking with Desqview and Hyperdisk cache,
all the reports with 600 users takes about 4 seconds, which isn't all
that long.) The time taken to process is shown at the end of each run,
if anyone is getting times of longer than 20-30 seconds then something
must be wrong, or you need a hardware upgrade.
-> This is a public release, although I have done plenty of testing,
there may still be problems that have not yet arisen. If you find
something strange happening, then please let me know.
Although I have been using this utility on my system for a few months
now and everything is running smoothly, I will not take responsibility
if this utility does not perform, fails or causes damage to anything
else. Use it at your own risk.
This utility maybe used by any Maximus SysOp.
┌─────────────────────────────────────────────────────────────────────────────┐
│░░ Notes & Key Items ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 2 ░░│
└─────────────────────────────────────────────────────────────────────────────┘
2.1 Special marks:
-> A special note to be aware of.
x.x A process number/point number/instruction step, to follow.
These are used to make instructions easier to follow and so I
can redirect your attention elsewhere if needed. Or if my
document needs alteration/updating then you can direct ME to
the closest position.
2.2 I assume that SysOps will be reading this document so I have written
it accordingly. I also assume that you know how to operate your system
in regards to the file system and the BBS system, its operation and
files.
-> I am no expert at writing documentation so if you find errors, or lack
of information then please make me aware of them/it. I do not have
time for perfect documentation, its not necessary as I'm sure you can
get my drift. (hopefully)
2.3 MaxAll REQUIRES SHARE to be loaded! If it is not, then it will not
operate correctly. (I'm not sure on what will happen without share, I
haven't got time to test this. For those people with single line
systems with no multitasker you maybe able to get away without share,
but people with multiline systems will require it.)
2.4 MaxAll is aware of multinode operation, if MaxAll is already running
in another task then it will wait until the other is finnished or
timeout after a minute. Usually it will only take a few seconds to run
anyway so I haven't had any problems under two lines.
If a user is online and looking at a report, and MaxAll is processing
in another task, this report will be skipped if its not made avaliable
within a few seconds. This doesn't affect the operation of MaxAll, and
the report can be updated next time its executed.
2.5 The system stats report requires a day before it will be generated, as
of course will the yesterday's callers.
The worst ratio and best ratio reports are caculated on the assumption
that a ratio is download/upload and that if uploads equal zero then a
one is subsituted. Thus a user who has uploaded nothing and a user who
has uploaded 1k but both downloaded say 200k will both have a 200:1
ratio. Anyone object to this caculation method?
┌─────────────────────────────────────────────────────────────────────────────┐
│░░ Installation (With Mailer) ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 3 ░░│
└─────────────────────────────────────────────────────────────────────────────┘
3.1 It is assumed that you have extracted MaxAll into a tempory directory.
So I would recommend a home directory of MaxAll\ off your Maximus
directory be created and all the files placed in it.
3.2 Now so that the today's callers can display the caller's baud rate and
node number, you will need a few additional dos variables in the batch
file that drives the BBS or however you load up Maximus. The following
batch commands to initilise two variables 'baud' and 'node' to
approprate values for each call that comes in. Usually your can
determine this from errorlevels returned from the mailer or the mailer
might generate a batch file with arguments containing these values.
These variables are then used by MaxAll for the today's callers.
SET BAUD=?????
SET NODE=??
So simply put, when a call comes in, set BAUD to the baud rate of the
incomming call, and NODE to the current node number for this call, or
1 for single line system. (NODE is a two digit number in HEX)
3.3 After Maximus is called and before the mailer is loaded again, you
will need to do something similar to this: (Thus you can see what the
variables are used for) The 'rtyu' tells MaxAll to generate reports,
today's callers, yesterday's callers and the usage graphs every time.
-> (replace 'cdd maxall' with approprate directory change for your system
depending on where you placed the MaxAll files. I have assumed that
MaxAll is "off" your Maximus directory, therefore, you will notice I
use "..\" in front of arguments, this can be replaced with the full
path to your Maximus directory if you do not want MaxAll's files off
the Maximus directory.)
cdd maxall
maxall rtyu ..\lastus%node.bbs ..\user.bbs ..\misc\ -n%node -b%baud
Required Arguments:
rtyu Generate these reports: Reports, Today's,
Yesterday's and Usage Graphs. NOTE: For
multinode systems which have local node(s) or
if a node you do NOT wish to have usage time
added to the useage reports then add an "l" to
this argument.
..\lastus%node%.bbs Path and name to LASTUSxx.BBS - This reads the
last user called. Can be replaced with
"..\lastus01.bbs" for single line systems.
..\user.bbs Path and name to USER.BBS - Maximus's user
file.
..\misc\ Path with trailing slash, the directory you
wish the reports to be generated in.
-n%node% Current node number MaxAll is running on. (Can
be replaced with "-n01" for single line
systems.)
Optional Arguments:
-b%baud% Current caller's baud rate. This is required
for displaying the user's baud rate on the
today's callers reports.
cdd maxall
maxall rtyu ..\lastus%node%.bbs ..\user.bbs ..\misc\ -n%node% -b%baud%
3.4 For speedy return to the mailer, only use 't' here, this will save the
caller's details and only generate a today's callers list, then in a
maintenance event, you can generate the rest of the reports. Ie. the
following after Maximus:
cdd maxall
maxall t \lastus%node%.bbs \user.bbs ..\misc\ -n%node% -b%baud%
And this in a daily maintenance: (Notice the 'maint' used for the last
user file, MaxAll ignores this as there is no last caller!)
cdd maxall
maxall rtyui maint \user.bbs ..\misc\
┌─────────────────────────────────────────────────────────────────────────────┐
│░░ Installation (in WFC mode) ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 4 ░░│
└─────────────────────────────────────────────────────────────────────────────┘
4.1 Included with MaxAll is MAXALL.MEC which will create a batch file to
be run after the caller logs off. To use it, place it in your MISC
directory and edit it to suit the paths you are using - (The included
MEC assumes the Maximus directory is G:\ so one should replace these
with approprate paths) Also if you are not using a .PRG user file
which is created with UEdit 2.01 then remove this file and the
semi-colon seperating it.
Edit your WELCOME bbs file and include the following line near the top
of the file:
[link]g:\misc\maxall
(Again replacing the approprate directory for your system) As a user
logs on, Maximus will create a batch file named MAXALLxx.BAT (xx =
current node number) so one simply adds the following line in their
AFTERMAX.BAT file to call MaxAll: (Refer to paragraph 3.2 for what is
required to set the %node% environment variable in multiline systems)
call g:\maxall%node%.bat
Or for single line systems;
call g:\maxall01.bat
In MAXALL.MEC you will notice the batch file created will only
generate today's callers report, so if you intend to create the others
on an event see paragraph 3.4, or add the other report generating
letters "ryu" to the maxall line. Eg:
[isremote][write]maxall tryu g:\lastuser.bbs ... etc.
^^^^
┌─────────────────────────────────────────────────────────────────────────────┐
│░░ Installation (with Maximus) ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 5 ░░│
└─────────────────────────────────────────────────────────────────────────────┘
5.1 You will then need to create menu options for the reports, the
following is an example (cut from mine accually):
Display_File F:\Misc\Ma_calls Disgrace "1Top Callers"
Display_File F:\Misc\Ma_brati Disgrace "2Best File Ratio"
Display_File F:\Misc\Ma_wrati Disgrace "3Worst File Ratio"
Display_File F:\Misc\Ma_kdls Disgrace "4Top Kb Downloaded"
Display_File F:\Misc\Ma_kuls Disgrace "5Top Kb Uploaded"
Display_File F:\Misc\Ma_sys Disgrace "6System Stats"
Display_File F:\Misc\Ma_uweek Disgrace "7Weekly Usage"
Display_File F:\Misc\Ma_umon Disgrace "8Monthly Usage"
Display_File F:\Misc\Ma_uquar Disgrace "9Quartly Usage"
Display_File F:\Misc\Ma_info Disgrace "0MaxAll Info"
Display_File F:\Misc\Ma_today Disgrace "Today's Callers"
Display_File F:\Misc\Ma_yeday Disgrace "Yesterday's"
After these options are in your MENUS.CTL, run SILT to update the
menus and everything should be done.
5.2 The batch file RUN.BAT is useful for updating the reports manually.
You can now run this batch file to generate the reports.
*5.3 MaxAll will read the CMOS date & time, so hopefully this clock will
return the correct local time.
5.4 If anyone can not work out my instructions or has problems installing
this utility please drop me a message and I'll try and sort it out for
you. See below for contact.
┌─────────────────────────────────────────────────────────────────────────────┐
│░░ Known Problems ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 6 ░░│
└─────────────────────────────────────────────────────────────────────────────┘
6.1 Time banks may cause my program to miscaculate the time spent online
by a user as these programs alter the lastcallers record. It maybe
possible to run my program before you run a time bank's maintenance to
solve this problem. I don't have the time to find a suitable solution
for this. Also the Kb downloaded on users call maybe incorrect if a
time bank supports saving of Kb's. The OnFor and Kbdn items on the
today's callers configuration maybe left out of the report if you get
this problem.
6.2 The generation of system stats like downloads/uploads (kb), calls in a
week will not be exact if user records are removed from the user file
on a daily basis. But on large systems with many users & lines a few
users deleted is not going to affect the reports significantly. This
does not mean I recommened NOT removing users from your user file - it
would grow too big otherwise!
-> This can be solved by including a 2nd user file seperated by a
semi-colon as produced by a utility such as UEdit 2.01.
┌─────────────────────────────────────────────────────────────────────────────┐
│░░ Credits, Contacts, Etc. ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 7 ░░│
└─────────────────────────────────────────────────────────────────────────────┘
7.1 MaxAll (Maximus All Reports Generator) is
Copyright 1993 by Craig Allsop.
Maximus is Copyright by Scott Dudley.
7.2 The latest version of MaxAll is file requestable at 61:6700/180
Worldnet or 3:640/225 Fidonet (Australia +61-7-344-3621) under the
name "MAXALL" or beta versions under the name "MAXALLB". Notification
of releases will take place in BBS_DOORS & MUFFIN. Please note that
currently speed is limited to 2400.
7.3 If anyone has suggestions, comments, bug reports, improvement ideas
etc. then please direct them to Craig Allsop in forums BBS_DOORS
(worldnet) or MUFFIN - Maximus Support/ MAXDEV - Maximus Developers
(fidonet).
-end-