On Fri, 5 Mar 2004, William C Beegle wrote: > Date: Fri, 5 Mar 2004 11:36:45 -0500 (EST) > From: William C Beegle <[EMAIL PROTECTED]> > Reply-To: [EMAIL PROTECTED] > To: [EMAIL PROTECTED] > Subject: Re: accurate accounting without delay (Was: Re: LPRng: Username > spoofing...) > > I can confirm that the same thing happens with both our 8150s and HP > LaserJet 4000 series printers. If you turn on accounting, a 17-18 second > delay is added between each job. It seems to be an issue with the printer > "spinning up": there is almost zero difference (less than a second) in > total print time for the first job. It's only a problem if the queue is > backed up. > > I'm hoping to talk to our HP technical rep. to find a way to keep the > printers active and rolling for 30 seconds after each job. I'm hoping > that this'll reduce the start-up lag. I'm also quite interested in > Ashley's PJL work and in software-based accounting: if we go to quotas, > they'll probably be high enough that we won't care about a few miscounted > pages. > > -willie
I have completed a filter script that does asynchronous page counting for the HP LaserJet 8150 (may work for others). It passes the job through (stdin -> stdout) and then forks. The parent returns instantly so that other jobs can be processed. The child uses SNMP to get job-based info (ststus, pages printed, was it cancelled? etc.) and does the credit deductions. It also uses PJL to add a banner page on the front of the job, which has lots of job info on. I also have a filter script that works out the (CMYK) toner usage of the job, this is simply a matter of using "gs -sDEVICE=bitcmyk" and counting the colours. These are cups filters (*sharp intake of breath from readers*), but can hopefully be easily converted to be LPRng filters. I have already half-done this for the first filter, but have not finished it due to lack of time. I wrote the filters in a standalone fashion, which I know is bad style generally, but we need filters that can be moved about without worrying about dangling config files and dependencies. Hence the credit-deducting and banner page are very specific to our requirements, but again it should be easy to taylor to specific needs. I would be happy to answer any questions and (shock horror) fix any bugs regarding these two filters, off-list of course. I am releasing these filters under the GPL. Ashley GC. PS What's that you say, URLs? Oh yes... http://www.dcs.warwick.ac.uk/~csuwf/dcs_tonercalc.perl.txt This one does the toner usage calculating, adding a single line to the _beginning_ of the job, which the _next_ filter (dcs_magic) picks up and puts on the cover page. http://www.dcs.warwick.ac.uk/~csuwf/dcs_magic.perl.txt This one does PJL banner page and page counting ----------------------------------------------------------------------------- YOU MUST BE A LIST MEMBER IN ORDER TO POST TO THE LPRNG MAILING LIST The address you post from MUST be your subscription address If you need help, send email to [EMAIL PROTECTED] (or lprng-requests or lprng-digest-requests) with the word 'help' in the body. For the impatient, to subscribe to a list with name LIST, send mail to [EMAIL PROTECTED] with: | example: subscribe LIST <mailaddr> | subscribe lprng-digest [EMAIL PROTECTED] unsubscribe LIST <mailaddr> | unsubscribe lprng [EMAIL PROTECTED] If you have major problems, send email to [EMAIL PROTECTED] with the word LPRNGLIST in the SUBJECT line. -----------------------------------------------------------------------------
