home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
ftp.wwiv.com
/
ftp.wwiv.com.zip
/
ftp.wwiv.com
/
pub
/
BBS
/
NSTAT14.ZIP
/
NETSTAT.DOC
< prev
next >
Wrap
Text File
|
1994-11-22
|
6KB
|
144 lines
╓────────────────────────────────────────────────╖
║ NETSTAT v1.4 Last Mail Run & Import/Export ║
║ Statistics Bulletin Generator ║
║ Copyright (C) 1992-94 by Kevin Cummins ║
╙────────────────────────────────────────────────╜
WHAT IT IS:
───────────
NETSTAT creates ASCII and ANSI bulletins for your network mail runs to
provide your users with up-to-date info of the last date/time and number of
messages imported and exported. NETSTAT can display info for up to a total
of 5 Networks, and is designed to be used in conjunction with the GOODRUN
utility, also included with this archive.
NETWORK SOFTWARE SUPPORTED:
───────────────────────────
This version of NETSTAT supports POSTLINK, PCRELAY, TNET, JNET, & SHILOH.
(Can also be used with non-supported net-types, see config file)
IN COMPARISON:
──────────────
Other utilities of this type that I have seen read a file that Postlink or
PcRelay creates called LASTTIME.TXT. I chose another method, because
LASTTIME.TXT records a successful run even if -1- message is imported, or
actually -0- I suppose in the case of Postlink.
My definition of 'Success' is when a REASONABLE number of messages are
received and posted to the BBS. Hence, the reason for GOODRUN. GOODRUN is a
utility that runs prior to NETSTAT, that distinguishes between good and bad
runs based on filesize (a 'Reasonable' one that you specify).
INSTALLATION:
─────────────
Installation can be accomplished by following the 5-step procedure outlined
below.
1. Edit the file 'NETSTAT.CFG'. Additional notes are found in the config
file.
2. Copy files NETSTAT.EXE and NETSTAT.CFG to each of your network mail
directories. These should be the ones specified in NETSTAT.CFG.
3. Copy file GOODRUN.EXE to a directory in your 'PATH'.
4. Edit your mail run batch files to do something similar to the example
given below.
5. <Optional> Go to each directory now containing NETSTAT, and execute.
(Execution notes are found below) This will initialize the datafile for
each directory, and also assure you that everything is set up properly.
If you have something not quite right, hopefully NETSTAT will complain
and give you a helpful error message. You may bypass this, however, as
NETSTAT will just insert some bogus numbers that will be overwritten the
first time that NETSTAT is later executed in that directory via your
batch files.
The following is an example of how to use GOODRUN & NETSTAT in your mail
run batch file. This is obviously a Postlink run, and my download file is
referenced as 'D1390.ZIP'. This is only a portion of the batch file,
starting immediately after the download:
--------------------------------------
CD\POSTLINK
GOODRUN D1390.ZIP 25
IF ERRORLEVEL 2 GOTO ERROR2
IF ERRORLEVEL 1 GOTO ERROR1
IF ERRORLEVEL 0 GOTO ERROR0
:ERROR2
rem File Not Found!
GOTO CONTINUE
:ERROR1
rem File Size Too Small!
GOTO CONTINUE
:ERROR0
rem File Size Greater than 25K, So run POSTLINK/NETSTAT.
POSTLINK CALLER.CFG /CONTINUE
NETSTAT 1
GOTO END
:CONTINUE
POSTLINK CALLER.CFG /CONTINUE
GOTO END
:END
--------------------------------
OK, if you did everything correctly, nothing more should be required, and
you should have a successful installation!
EXECUTION:
──────────
NETSTAT execution consists of simply typing 'NETSTAT' plus one command line
parameter on the command line, or more likely in a batch file as in the
above example. The parameter is the number of the net as listed in the
configuration file. NETSTAT searches the .log file specified in the config
file for imports and exports on today's date. If set up correctly with
GOODRUN, NETSTAT should never report -0- imports, because it should not
have even run after an empty or absent mail packet!
REGISTRATION:
─────────────
Registration fee for NETSTAT is only $3. Complete and mail the provided
registration form. As soon as your form is received, your registration will
be processed and a file made available for you to download from Crimson
Cross. Inside will be your registration number and instructions.
ADDITIONAL NOTES:
─────────────────
GOODRUN returns an errorlevel to be used in your mail run batch file, that
would allow you to bypass running NETSTAT if the filesize requirement you
set up is not met. Please read the documentation for GOODRUN, to make sure
you know how it works, and how to make it work for you.
NETSTAT uses the current system time and date when creating the bulletins.
So, NETSTAT needs to be run immediately following your import procedure in
your mail run batch file. And, since it does read the current system date and
time, using the GOODRUN utility is almost a must so that you don't get false
results in your bulletins.
One final suggestion....if you would like execution time to be minimal,
routine packing of your network log file is recommended. The larger that
file grows, the longer execution time will be.
I hope this explanation has been comprehensive enough, but if something has
been overlooked, or you have questions, comments, or requests for
additional network software support by NETSTAT I can be reached at the
BBS number listed below.
I will be happy to include other network software types in future versions
of NETSTAT if at all possible.
Crimson Cross BBS I can also be reached on RIME,
USR Dual Standard 28.8 and PhiloeNet Networks.
Harrisburg, Ill.
618-253-3608 RIME Node id: ->CCBBS
Kevin Cummins, Sysop