On Mon, Apr 15, 2002 at 11:17:41AM -0500, John Perkins wrote: > In my (seemingly) never-ending battle with Xerox over my Phaser 5400 printer, > I've found I can get accurate printer status (at least regarding whether the > job has finished printing or not) via SNMP. > > Question: has anyone out there hacked ifhp (yet) to > a. send status query via SNMP rather than using PJL status commands > b. exec an external command to do the dirtywork and wait for it to > > return a status to deal with the job in question > > If I can do either of those, this printer just might actually work. :)
I have something along those lines, used to do accounting on HP's and some other printer types. Essentially I use an input filter which forks ifhp to delivery the message, while the parent watches the printer via snmp. First (before forking) it queries the printer for initial page count, then after ifhp is going loops waiting for the printer to finish. This depends on having a well-defined set of mibs that can be used to determine the printer status (eg something that goes from 'ready' to 'busy' and back again). On at least one variety Lexmark, the only status available can be set with PCL commands in the document, and then it never gets cleared, so things get royally messed up. But it can be done. John Harper ------------------------------------ Academic Computing Coordinator University of Toronto at Scarborough [EMAIL PROTECTED] ----------------------------------------------------------------------------- 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. -----------------------------------------------------------------------------
