|
DIALD Usage Time Report
Problem: Keeping track of the on-line time for my network.
This is a Perl script program that will scan your diald log
file and generate a report of your on-line time for the month.
The normal usage will read the entire log file then print a
summary of on-line time usage for each month. If your
ISP anniversary date is not the first of the month, there
is a control variable that is used to report time from an offset
start day of the month. This will report usage time between
offset start days of each month.
This program is written in Perl Script. The two user
options in the program; one is for setting the path to the log
file and the second is the off-set start day of month.
==============================
# Set the location of your Diald Log file
$LOGFILE = "/var/log/diald.log";
#
# If Your ISP has an offset day set sday to day of month
$sday = 15;
==============================
To support simple troubleshooting, there is an option to the
URL call that can be used to pass a debug level flag to the
program. This debug flag will allow watching the processing
of the log file.
Normal call is:
../cgi-xxx/diald.pl Where ... is the address
of your server and xxx is the cgi-bin or cgi-local directory.
Debug option call:
.../cgi-xxx/diald.pl/debug=y Where y is the
debug level 0 (default), 1 or 2 for full trace..
Author: Glenn Seaton/President
Space Coast Computers, Inc.
Versioni 1.0 on 2/7/98
Download Version 1.0 of diald.pl
This program is a Copyright product of Space Coast Computers,
Inc. (SCCI) of Titusville, Florida, All Rights Reserved
. It is distributed freely for personal usage. It can
not be sold or incorporated in another program without the express
written permission of SCCI.
|