|
|
HP-UX Reference Volume 1 of 5 > mmailstats(1) |
|
NAMEmailstats — print mail traffic statistics DESCRIPTIONmailstats reads and interprets the sendmail statistics file, /etc/mail/sendmail.st, then prints out the mail traffic statistics. If /etc/mail/sendmail.st exists, sendmail collects statistics about your mail traffic and stores them in the statistics file. This file does not grow. Statistics are gathered on a per-mailer basis for each mailer defined in the sendmail configuration file. Statistics are kept on the number of messages and the number of bytes for all inbound and outbound traffic. The mailstats utility displays the time at which statistics collection was started on the first line. Then, the statistics of each mailer is displayed on a single line, each with the following white space separated fields (see the "EXAMPLES" section below):
After this display, a line totaling the values for all of the mailers is displayed, separated from the previous information by a line containing only equals (``='') characters. OptionsThe options are as follows:
To clear the statistics file, execute, as root: cp/dev/null/etc/mail/sendmail.st DIAGNOSTICSmailstats generates error messages if the statistics file is not accessible or if the size of the statistics file has changed. Error messages are:
EXAMPLESHere is a typical example of mailstats output: Statistics from Thu Jul 11 14:12:40 1996 M msgsfr bytes_from msgsto bytes_to msgsrej msgsdis Mailer 0 0 0K 3 4K 0 0 prog 3 3 4K 0 0K 0 0 local 5 2 1K 11 11K 4 0 esmtp ============================================================= T 13 13K 14 15K 4 0 This example shows that mailers 0, 3 and 5 have handled the given amounts of mail traffic since Thursday, Jul 11th. Specifically, sendmail has sent 11 messages containing 11 kilobytes via mailer esmtp (M 5), but has 4 messages rejected via mailer esmtp (M 5). |
|