1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-29 11:21:54 +03:00
samba-mirror/examples/printer-accounting
1999-12-13 13:27:58 +00:00
..
acct-all Some examples for printer accounting that I use with samba. lp-acct is 1996-07-23 03:30:56 +00:00
acct-sum Some examples for printer accounting that I use with samba. lp-acct is 1996-07-23 03:30:56 +00:00
hp5-redir first pass at updating head branch to be to be the same as the SAMBA_2_0 branch 1999-12-13 13:27:58 +00:00
lp-acct first pass at updating head branch to be to be the same as the SAMBA_2_0 branch 1999-12-13 13:27:58 +00:00
printcap Some examples for printer accounting that I use with samba. lp-acct is 1996-07-23 03:30:56 +00:00
README Some examples for printer accounting that I use with samba. lp-acct is 1996-07-23 03:30:56 +00:00

These are just a few examples of what you can do for printer accounting;
they are really just hacks to show a manager how may pages were being
printed out on his new hp5n :)

acct-all will run acct-sum and read the log files to generate some
stats.

Here is a sample output of the raw stats :

1996-06-10.15:02:15 pkelly master.fcp.oypi.com 538 0
1996-06-10.15:06:40 pkelly master.fcp.oypi.com 537 0
1996-06-10.15:32:12 ted master.fcp.oypi.com 547 0
1996-06-11.09:06:15 violet master.fcp.oypi.com 2667 0
1996-06-11.09:48:02 violet master.fcp.oypi.com 66304 5
1996-06-11.09:50:04 violet master.fcp.oypi.com 116975 9
1996-06-11.09:57:20 violet master.fcp.oypi.com 3013 1
1996-06-11.10:13:17 pkelly master.fcp.oypi.com 3407 1
1996-06-11.12:37:06 craig master.fcp.oypi.com 13639 2
1996-06-11.12:42:23 pkelly master.fcp.oypi.com 13639 2
1996-06-11.12:45:11 marlene master.fcp.oypi.com 515 0
1996-06-11.14:17:10 lucie master.fcp.oypi.com 1405 1
1996-06-11.14:36:03 laura master.fcp.oypi.com 45486 5
1996-06-11.15:08:21 violet master.fcp.oypi.com 1923 1
1996-06-11.15:09:42 laura master.fcp.oypi.com 4821 1
1996-06-11.15:12:28 laura master.fcp.oypi.com 46277 5
1996-06-11.15:19:38 violet master.fcp.oypi.com 3503 1
1996-06-11.15:21:49 lucie master.fcp.oypi.com 493 0
1996-06-11.15:43:36 al master.fcp.oypi.com 3067 1

And the output after the acct-sum is done on a full set of files
in /var/log/lp/*

master[1072] /var/log/lp$ /etc/conf/acct-all 

Sun Jul 21 23:03:16 EDT 1996

Pages are approximate ...

User             Jobs    Pages     Size
al                  1        1        2 KB
craig               1        2       13 KB
jack               68      235     1995 KB
laura              88      328     3050 KB
lucie             221      379     3529 KB
marlene            12      151     1539 KB
melanie            83      365     3691 KB
michelle           68      219     1987 KB
mike                2       10       81 KB
neil              111      225     2753 KB
operator           44      137     1132 KB
pkelly            368      984    11154 KB
root                8        0       29 KB
ted               158      257     2337 KB
tony              244      368     2455 KB
violet            419     1002    10072 KB


Printer          Jobs    Pages         
hp2p                3        4
hp5               915     2135
lp                978     2524

<pkelly@ets.net>