On Tue, 21 Oct 2003 23:31:16 +0200 (CEST) Henrik Edlund <[EMAIL PROTECTED]> wrote:
> JP> Solution: query the printer for status via SNMP; no TCP connection is > JP> held open, and one can reliably see if the printer is still printing > JP> or not. And the pagecount you get via SNMP gets updated as expected, > JP> since no TCP connections are being held open. > > So basically you say that you can get any reading over PJL/PS that the > printer is done printing and what state it is in (printing, idle, down)? Not certain what you're asking here. Using PJL/PS, a TCP connection is held open, periodicly querying the printer whether the job is done. Eventually the job finishes. The same TCP connection is used to ask the pagecount. It will be the number from the beginning of the job. ifhp then thinks the job printed zero pages and goes on about its business. Using SNMP to query the printer, SNMP is used to get the job status on the printer (job printing/job finished/job cancelled/etc.). Once the job is finished (or cancelled), the job is reported as finished. Then use SNMP to get the pagecount, do the math, log the result, and go on to the next job. Since no TCP connection is held open, the pagecounter updates once the job is finished. -- ============================================================================ John Perkins | University of Wisconsin-Madison Associate Researcher | Department of Computer Science [EMAIL PROTECTED] | 1210 W. Dayton St. 608-262-0438/608-262-9997 FAX | Madison, WI 53706-1685 ============================================================================ ----------------------------------------------------------------------------- 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. -----------------------------------------------------------------------------
