> From [EMAIL PROTECTED] Sat Aug 24 15:23:29 2002 > Date: Sat, 24 Aug 2002 14:37:29 -0700 > From: Sam Noble <[EMAIL PROTECTED]> > To: [EMAIL PROTECTED] > Subject: LPRng: pagecounting and the hp 4100 > > A number of you responded to my previous question regarding the HP > 4100 and its tendancy to report that a job is finished long before the > last page comes out of the printer. > > I've had considerable success using snmp to determine printer > status (works for pagecounting, too). > > The IFHP distribution includes UTILS/use_snmp_for_status, which > includes some perl code for ifhp's status, waitend, sync, and pagecount > hooks. > > > for status (idle, printing, other, and a few others. other, in my > experience, typically indicates an error condition of some kind which > can be checked in another variable): > > host.hrDevice.hrPrinterTable.hrPrinterEntry.hrPrinterStatus.1 > > for pagecounting: > printmib.prtMarker.prtMarkerTable.prtMarkerEntry.prtMarkerLifeCount.1.1 > >
I have looked at the code, and it appears that the SNMP query is given with the N.N notation. I suppose that this solves the problem of not wanting to deal with parsing the SNMP MIB each time. Very clever. I will fling some time at this... Again, if you have a printer available please give me a buzz. Patrick ----------------------------------------------------------------------------- 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. -----------------------------------------------------------------------------
