Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Path: utzoo!mnetor!uunet!husc6!necntc!ncoast!allbery
From: artp@seismo.CSS.GOV@motbos.UUCP
Newsgroups: comp.sources.misc
Subject: Submission to comp.sources.unix
Message-ID: <4116@ncoast.UUCP>
Date: Mon, 10-Aug-87 20:17:22 EDT
Article-I.D.: ncoast.4116
Posted: Mon Aug 10 20:17:22 1987
Date-Received: Thu, 13-Aug-87 00:36:08 EDT
Sender: allbery@ncoast.UUCP
Lines: 391
Approved: allbery@ncoast.UUCP
X-Archive: comp.sources.misc/8708/11
Motorola System 1131 System V Release 2 Version 3 (Bourne and Korn Shells)
Motorola Delta System 2016 System V Release 3 Version 1 (Bourne Shell)
Several processing options are available as well as an option for syntax (-h).
A shell archive follows the sample display:
==================== start of sample display ================================
UUCP NETWORK TRANSACTION STATISTICS
(NODE: motbos Thu Jul 9 13:59:05 EDT 1987)
(Processing Transactions of: 7/8/87)
NODE USER XACT BYTES TIME (Sec) RATE (Bytes/Sec)
______________________________________________________________________________
mcdbos artp 3 22396 26 861
mcdbos bin 2 9460 12 788
mcdbos lp 18 58943 71 830
mcdbos root 2 1103 2 551
mcdbos TOTAL: 25 91902 111 827
motatl usenet 10 266605 2461 108
motatl TOTAL: 10 266605 2461 108
motham artp 2 807 6 134
motham usenet 10 266605 2424 109
motham TOTAL: 12 267412 2430 110
motrhr usenet 2 54581 496 110
motrhr TOTAL: 2 54581 496 110
motsj1 usenet 8 168336 1564 107
motsj1 TOTAL: 8 168336 1564 107
wdc202 usenet 1 55871 508 109
wdc202 TOTAL: 1 55871 508 109
______________________________________________________________________________
motbos TOTAL: 58 904707 7570 119
========================= end of sample display ============================
Run the un-archive as root or bin user.
================================ cut here =================================
#! /bin/sh
# This is a shell archive, meaning:
# 1. Remove everything above the #! /bin/sh line.
# 2. Save the resulting text in a file.
# 3. Execute the file with /bin/sh (not csh) to create the file:
# uucp.stat
# This archive created: Thur July 9, 1987 @ 12:00 EDT
export PATH; PATH=/bin:$PATH
if test -f 'uucp.stat'
then
echo shar: will not over-write existing file "'uucp.stat'"
else
cat << \SHAR_EOF > 'uucp.stat'
# uucp.stat: script to print the UUCP transaction statistics (aap 7/9/87)
# for System V Release 2 or 3 formatted UUCP transaction files
# Version 1.0
#
# This program will process the uucp transactions for each node and report
# total transaction statistics. Processing is performed on the file $UUCP_LOG
# which defaults to:
# /usr/spool/uucp/SYSLOG (Rlse 2) or /usr/spool/uucp/.Admin/xferstats (Rlse 3).
# Processing defaults to statistics for the current day. Options allow
# processing of all transactions found (usually the current week's
# transactions are maintained) or a specific day's transactions.
# Output is directed to standard output.
#
# INSTALLATION NOTES -
#
# uucp.stat is non-intrusive and should be installed with 755 permissions.
# Set the variable: $RLSE_LVL to the System V major release level that
# you are running prior to installation.
#
# syntax: uucp.stat [