Use the Mailstats command to print the
statistics contained in the statistics file.
Format
>>-mailstats--+- - C--<conf filename>-+------------------------><
+- - f--<stat filename>-+
+- - o------------------+
+- - p------------------+
'- - P------------------'
Parameters
- -C <conf filename>
- Specifies the name of the sendmail configuration file to be used
to locate and analyze the z/OS UNIX sendmail
statistics file. If not specified, /etc/mail/sendmail.cf is used as
the default.
- -f <stat filename>
- Specifies the name of the z/OS UNIX sendmail
statistics file to be analyzed. If not specified, the statistics file
is located on the StatusFile (S) option specified in the z/OS UNIX sendmail
configuration file.
- -o
- Requests mailer names be omitted from the formatted output.
- -p
- Specifies that output information is to be in program-readable
mode and statistics are cleared. If both -p and -P are
specified, the statistics file is cleared.
- -P
- Specifies that output information is to be in program-readable
mode and statistics are not cleared. If both -p and -P are
specified, the statistics file is cleared.
Results
The following example shows the
result of a MAILSTAT command.
Statistics from Sat Feb 15 12:51:09 2003
M msgsfr bytes_from msgsto bytes_to msgsrej msgsdis Mailer
=============================================================
T 0 0K 0 0K 0 0
C 0 0 0
The first
line of output shows the time the statistics file was begun. The M
column shows the index into the internal array of delivery agents,
and the Mailer shows the symbolic name. The lines that follow show:
- msgsfr
- The number of messages and the total size in kilobytes of the
messages received for each delivery agent.
- msgsto
- The number of messages and the total size in kilobytes of the
messages sent for each delivery agent.
- msgsrej
- The number of message rejects by each mailer.
- msgsdis
- The number of message discards by each mailer.
The bottom line shows the totals.
Note: A delivery
agent that has handled no traffic is excluded from the report.