Lire support for CUPS?

Kurt Pfeifle kpfeifle at danka.de
Mon Oct 22 12:23:15 CEST 2001


Egon Willighagen wrote:
> 
> On Friday 19 October 2001 08:46, Egon Willighagen wrote:
> > On LinuxFocus Talkback you wrote:
> > > To have lire analyze the "page_log" file produced by CUPS
> > > (http://www.cups.org/ , the Common UNIX Printing System, would be really
> > > cool. 

[....]

> > > Would this be easy? (I can provide you with a sample of a pag_log file,
> > > if none of you folks knows or uses CUPS so far...)
> 
> It actually took me just two hours... That easy is it... (though i have
> some insight knowledge).
> 
> > Yes, that would be an excellent extension to Lire, since printing services
> > fit perfectly in our target environment. Please send us your sample log
> > file, which we will use for test purposes.
> 
> I currently have a 1 line log file, so a larger one is needed for real testing
> purposes...

Here is one -- another one from a different server will follow in the afternoon.

> > I assume the CUPS webpage explains the log format? If not, could you give
> > some explanation on the fields?
> 
> Ok, found that after some browsing...
> 
> The output looks like:
> 
> Report generated: 2001-10-20 11:31:55 CEST
> Reporting on period:
> 1999-05-20 21:21:05 CEST - 1999-05-20 21:21:05 CEST
> 
>   Jobs By Printer
> 
>    DeskJet ................................................... 1
> 
> This afternoon i shall add more reports. Requests can be emailed
> to me. All the code is in CVS.

I'd like to draw your attention to a Perl script that does s.th.
similar:

http://amaru.ti6.tu-harburg.de/mitarbeiter/tm/Arbeiten/Projekte/
http://amaru.ti6.tu-harburg.de/mitarbeiter/tm/Arbeiten/Projekte/PrintAnalyzer

Its output is plain text only (output in relation to attached page_log):


Queue Heuristic
Queue                      Requests        Pages
-------------------------------------------------
                CS2100         1.87            4
               CS2100m         9.81           67
          CS2100socket         4.67           45
          CS2100toFile         0.93            2
    DANKA_infotec_P450         0.93            2
         HP_PhotoSmart         0.47            1
                  P450         1.87           35
                 P450l        14.95          436
               devnull         0.47            1
    gimpprint_epson870         0.47            1
infotecs_P320_und_P450         0.47            1
                  is70         4.21            9
               is70esp         3.27           44
             mop240esp        44.86          962
                mop320         3.27            7
       pdfmaker_level2         1.87            4
       pdfmaker_level3         3.74            8
            psfiletest         0.93            2
           psfiletest2         0.93            2

Heuristic
JobSize         %Requests
---------------------------
 1.    0-10         80.84
 2.   20-30          7.94
 3.   30-40          7.48
 4.   40-50          0.93
 7. 200-             0.47


Daily Usage
Date               Requests        Pages
-----------------------------------------
10/Aug/2001               1           10
11/Aug/2001               1           22
15/Aug/2001               2            3
19/Aug/2001              19          254
21/Aug/2001               5           59
22/Aug/2001               8           64
23/Aug/2001               2           61
06/Sep/2001               4            4
12/Sep/2001               2            2
13/Sep/2001               8           24
14/Sep/2001               4           16
16/Sep/2001               2            2
20/Sep/2001               2            2
22/Sep/2001               5            7
24/Sep/2001               8           21
25/Sep/2001               4            4
27/Sep/2001              21           67
28/Sep/2001               2            2
29/Sep/2001               4            8
30/Sep/2001              37          314
01/Oct/2001              18           59
03/Oct/2001               9          291
04/Oct/2001               1            8
06/Oct/2001               3           40
07/Oct/2001               8           20
08/Oct/2001               8           41
09/Oct/2001              11           64
10/Oct/2001              12          101
11/Oct/2001               2           62
13/Oct/2001               1            1

Hour Usage
Hour        Requests
---------------------
00               12
01               21
02               14
03                7
04                4
05                2
10                1
11                1
12                1
13                2
14               19
15                4
16                3
17               36
18               19
19               18
20                4
21                8
22               18
23               20

PrinterAccounting
Username            Requests      Pages   Pages/Request
--------------------------------------------------------
kurt                     148       1027           7
remroot                   42        473          12
kdetest                   18        127           8
root                       6          6           1


Will lire's output include grafical representation sinilar to the 
"webalizer"?

> regards,
> 
> Egon

Bye,
Kurt
-------------- next part --------------
A non-text attachment was scrubbed...
Name: CUPS-page_log.tar.gz
Type: application/x-gzip
Size: 7865 bytes
Desc: not available
Url : http://lists.logreport.org/pipermail/questions/attachments/20011022/20f918a2/attachment.gz 


More information about the Questions mailing list