|
Summarizing UUCP Logs |
A Perl program that summarizes information from the HoneyDanBer UUCP logs and a Korn shell random-number generatorThe logs that track the activity of the UUCP subsystem can
often be a confusing mishmash of timestamps and host, user, and
file names. To help make better sense of the data, Mike
Brininstool provides a Perl program that summarizes information
from the otherwise hard-to-read logs written by the Peter Turnbull submits a Korn shell script that provides a handy way to generate a random number whose value is distributed uniformly within a specified range. This utility would be useful in other shell scripts as well as interactively. History Repeats ItselfDear Editor: I run a small site that uses UUCP to transfer electronic mail and Usenet articles and decided to write some utilities for monitoring communications. Originally I wrote them in the Korn shell language, but they were so slow that I rewrote them in Perl, improving their execution speed significantly. I'm submitting Invoke Configuration Note. You can use
Implementation Strategy. The The ``complete'' entry indicates the end of the transaction. The ``OK'' keyword indicates success, whereas the ``FAILED'' entry says that the closing handshake wasn't successful. Presumably, the transaction was terminated prematurely. Other keywords indicate receipt of a signal, such as ``CAUGHT'' or ``INTREXIT''. Note that the ``->'' and ``<-'' symbols are used in the report to indicate an outbound or inbound connection relative to the local host, respectively, not the file-transfer direction. Implementation Notes. Line 7 defines the top-level directory, which may need to be changed for your implementation. Lines 16-31 process the command-line arguments. The
Line 34 opens a pipe to write data to the system
The program is driven by several loops. The outermost loop
(lines 37-115) performs one iteration for each host. Within this
loop are three primary sections to the program: the first
analyzes the transaction logs written by the If the user specifies a file to analyze with the Space limitations prevent more extensive analysis and summary of the logs in this month's column. However, you can apply the principles illustrated by this program to customize the report to your particular needs. Random ThoughtsDear Editor: I often find it helpful to generate random numbers without
resorting to C language code. The Explanation of Lines 10-14 process command-line arguments. If two arguments
were specified, line 11 stores their values in the
Next, several ``sanity'' checks are made: Lines 16-24 make sure
that the lower, upper, and seed values are integers. The
If all these ``sanity'' checks pass, line 40 initializes the
Korn shell's random-number facility by assigning an integer to
the built-in AcknowledgmentsI wish to thank the following readers for their help with testing this month's contributions (operating system): Kees Hendrikse, Echelon Consultancy, Enschede, The Netherlands (current SCO Unix and Xenix versions) and Endre Balint Nagy, Walton Networking Ltd., Hungary (UnixWare Application Server, 1.0). |
Print This Page Send as e-mail |
Best of the Web
Data deduplication: Declawing the clones
Data deduplication is emerging as a critically important new arrow in the storage administrator's quiver to answer hard questions about the increasing problem in storage growth costs.
Compression, Encryption, Deduplication, and Replication: Strange Bedfellows
One of the great ironies of storage technology is the inverse relationship between efficiency and security: Adding performance or reducing storage requirements almost always results in reducing the confidentiality, integrity, or availability of a system.
WAN Optimization Whitelists and Blacklists
Optimization is a fantastic way of saving money and creating really happy customers at the same time, but it doesn't work flawlessly for all applications.
WAN Optimization as a Managed Service: It's Not About the Cost
This insight examines how organizations outsourcing their WAN optimization initiatives to a third-party go about achieving their goals for application performance, reducing operational costs, and streamlining enterprise infrastructure.





