TUA(8L) | LOCAL USER COMMANDS | TUA(8L) |
TUA - The Uucp Analyzer
tua [ option ]
This manual page is no longer supported. See tua.texinfo for up-to-dated information.
The purpose of the TUA utility is to produce a readable and complete analysis of the HoneyDanBer UUCP connections. This manual page describes the TUA command line options and shortly explains its output.
To specify any of the options, you can use either the short form or the more mnemonic long form. In the latter case, you can abbreviate the name as long as it is unique. For more information on the long format, please refer to the GNU getopt package description.
and every user name that begins with uu will be mapped in a meta user called UUCPUSERS sh(1) for a description of meta-characters
tua +glob-user-alias uu*=UUCPUSERS
All reports are printed on the standard output, so you can easily
redirect them wherever you want. Assuming, unless otherwise stated, that you
do not explicity request to disable some of the reports (eg. when you do not
specify any command line option), here is a short description of what you
get.
By System
With this report, you get all the information relative to all the
nodes that talk with your machine but those which didn't sent or received
something. The data are divided in inbound and outbound. For
each system, displayed in alphabetical order, you have the total count of
the files transferred, with the relative bytes and times, as well as an
average transfer rate (ATP). If +commands-lists was specified, next
there is the list of the commands invoked by that node, or directed to it.
If a command is preceeded by a number between brackets, that number
indicates how many times that command was invoked.
By User
This report is similar to the previous one, but it shows, in
alphabetical order for each local user, all the commands the user invoked,
and the transfers he caused.
By Day
This report summarize the per day activity on the local machine.
It doesn't depend on the destinations and on the users.
SUMMARY by System
It shows a summary of the activity of each system, and the number
of calls (inbound and outbound) for it. Please note that sometimes
TUA fails in calculating the exact number of calls, because of the
misleading log of uucico. Note also that the "total connection
time" always differs from the sum of the trasmissions times, because it
takes care also of the various uucp dead time. In fact, it is calculated
from the difference between the time in which the nodes are really connected
(ie. at the end of dial phase, when the modem answers) and the time in which
the link is dropped, due to the the end of the conversation as well as to
any error. Then comes the time of the last connection with that system.
There is also the subdivision of the connection time based on the phone
costs, ie "day", "evening", "night". This is
completely configurable, so if your telephone company uses a different
hourly division you can adjust it (see config.h and
phonesw.c.)
SUMMARY by System (table format)
Substancially, this report summarizes some of the previous
informations in a tabular form. Nothing new...
and since ...
This is the historical data maintained by TUA. It looks
like the previous table, but it includes the history of the system,
incrementally.
Last 12 Months Activity
This table shows the activity of the local machine during the last
12 months. Only the transferred amounts are computed.
The months are displayed in a manner so that the last column contains the
current one, so it is very readable (of course, it is a matter of opinions!)
Hourly Activity (per communication port)
This chart shows the uucp hourly load for each used communication
port. Each hour is divided in 20 minutes slices.
Global Hourly Activity
The same as the previous chart, but it reports the sums of all the ports.
TUA maintains a database with the history of each system and of the activity in each of the last 12 months activities. It is usually located in /usr/spool/uucp/.Admin/tua.history and it is actually an ASCII file. It is up to you to update it or not, because probably you will like to run TUA simply to have a notion of what is going on. To make it working correctly, you have to run TUA with the option +update-hist just before you run uuclean. So probably you will have to modify that script including in it a line like
tua +update-hist {whatever options you like} ⎪ mail lele
before it cleans up the uucp logs.
Since HDB-Uucp doesn't put a complete datestamp in its logs, but omits the year, it may be possible that TUA fails to compute the various times in the first analysis of the year. This is in my opinion its major weakness. For this silliness, TUA cannot correctly handle logs that cover several years. There is little that I can do to correct the situation; I tried to adjust the year when the to-be-parsed date refers obviously to the previous year, but this is just a work-around...
There is a limit: if your system spent more than 9999 hours linked with someone (or the sum exceed that value), the reports will be garbaged...
TUA is free, and it is redistribuitable under the terms of the GNU General Public License. You can find a copy of it in the file COPYING in the distribution package. I reject any responsability about it. It is simple and safe, but I did not try it under all the possible conditions and environments, so if it causes you some trouble, I'll be sad for a while, but that's it. However, I will try to correct any bugs you will tell me.
And please, forgive my poor english, but I put my soul in it...
Lele Gaifas, Idea Informatica, Rovereto (TN) - Italy
( piggy@idea.sublink.org )
.../.Log/uucico/* uucico's logs
.../.Log/uucp/* uucp's logs
.../.Log/uux/* uux's logs
.../.Log/uuxqt/* uuxqt's logs
.../.Admin/xferstat Transfer stats
.../.Admin/tua.history TUA's system history
Lele Gaifas, piggy@idea.sublink.org
I want to thank expecially Marco Lorenzini
(marlor@gear.sublink.org) for his help in debugging the previous releases of
TUA on the SCO Unix architecture, and for his suggestions on the
layout of the reports. And to the "omnipresent" Paolo Ventafridda
(venta@i2ack.sublink.org) for his support and interest, and several other
people that encouraged me to add more and more functionality, or that let me
scan their huge logs.
Thanks also to all the people that, with their PD or GPL software, helped me
indirectly with ideas or examples.
16 November 1991 | Release 3.4 |