RECV and Xferfaxstats

The command "xferfaxstats" (and a similar "recvstats" for incoming) will summarize the stats from the call log /var/spool/hylafax/etc/xferfaxlog. When you just run xferfaxstats with no additional parameters, it runs on the current xferfaxlog file - which is rotated on the 1st of every month. The output might look something like this (on this example server, one user did almost all the faxing):

[root@fax01 etc]# xferfaxstats Sender Pages Time Pg/min Errs TypRate TypData faxuser@fax01 (faxuser) 481447 5204:07:34 1.5 8570 14400 2-D MMR faxuserb@fax01 (faxuserb) 12 5:58 2.0 0 14400 2-D MMR faxuserc@fax01 (faxuserc) 6 2:59 2.0 0 14400 2-D MMR faxuserd@fax01 (faxuserd) 10 7:03 1.4 0 14400 2-D MMR


Total 481475 5204:23:34 1.5 8570

You can uncompress earlier xferfaxlogs - there are three months worth of compressed logs in /var/spool/hylafax/etc - and run those through xferfaxstats similarly. For example, this would get you last months's outgoing stats:

cd /var/spool/hylafax/etc gunzip xferfaxlog.1.gz xferfaxstats xferfaxlog.1

Afterwards, compress the log file again so that it will go back into the regular rotation management:

gzip xferfaxlog.1

XFERFAXSTATS OPTIONS −age days Show information only for the facsimile transmitted in the last specified number of days. −csi* Sort output by the remote party’s CSI. −dest* Sort output by the phone number called. −dev* Sort output by the output device (i.e. modem) used. −format Sort output by the negotiated data format. −job* Sort output by client-specified job tag identifiers. −nomap Do not perform the account name mapping by which statistics for the ‘‘root’’ and ‘‘guest’’ accounts are merged and leading hostname part of domain names are stripped. This is the default behavior. −map Perform the account name mapping by which statistics for the ‘‘root’’ and ‘‘guest’’ accounts are merged and leading hostname part of domain names are stripped. −send* Sort output by sender’s account name (default). −since time Show information only for the facsimile transmitted since the specified time; where time is of the form ‘‘MM/DD/YY HH:MM’’ (the date(1) format string %D %H:%M). −end time Show information only for the facsimile transmitted before the specified time; where time is of the same form as since. −speed Sort output by the signalling rate.

RECVSTATS OPTIONS −age days Show information only for the facsimile received in the last specified number of days. −csi* Sort output by caller’s CSI. −cidname Sort output by CIDName −cidnumber Sort output by CIDNumber −format Sort output by data format. −send* Sort output by sender (i.e. caller’s CSI ). −speed Sort output by signalling rate. −since time Show information only for the facsimile received since the specified time; where time is of the form ‘‘MM/DD/YY HH:MM’’ (the date(1) format string %D %H:%M). −end time Show information only for the facsimile received before the specified time; where time is of the same form as since.