On Tue, Nov 04, 2003 at 07:21:08PM +0100, Henrik Edlund wrote: > On Tue, 4 Nov 2003, Jerome Alet wrote: > > JA> On Tue, Nov 04, 2003 at 04:12:37PM +0100, Henrik Edlund wrote: > JA> > > JA> > Most printers on the market today support the two MIBs needed, so this > JA> > method seems to be the best option. The same general implementation would > JA> > work with several printer models from different manufacturers, as long as > JA> > the printer supports SNMP and mentioned MIBs properly. > JA> > JA> Most (all ?) HP printers' internal counter is only updated in NVRAM > JA> every 10 impressions (pages), if you switch your printer Off at > JA> count=19, it restarts at count=10 > > Does this relate to PJL only or SNMP also? Because I tested with the > following HP printers, and it works great, it counts up for every > impressions just as it should with SNMP: > > HP LaserJet 2100TN, HP LaserJet 4300, HP LaserJet 5M
I've got an HP 2100 TN at home : [EMAIL PROTECTED]:~$ snmpget -v1 -c public -Ov imprime.ateur mib-2.43.10.2.1.4.1.1 Counter32: 34942 Now I switch it off and on again : [EMAIL PROTECTED]:~$ snmpget -v1 -c public -Ov imprime.ateur mib-2.43.10.2.1.4.1.1 Counter32: 34940 [EMAIL PROTECTED]:~$ could this be my firmware which is too old ? (I've upgraded not very long ago) see this from HP labs : http://groups.google.com/groups?q=snmp+printer+nvram&hl=fr&lr=&ie=UTF-8&selm=37BBDD14.ACFFB4B%40hplb.hpl.hp.com&rnum=1 > JA> Also some HP printers reset their counter to 0 every time they are > JA> switched off. > > Can anyone else confirm this? Do you have an online reference of this fact > documented somewhere? I think it's for lower quality models. > <rant mode="shameless"> > > Too bad it is written in Python. > > </rant> :-) Why ? Doesn't seem to be a performance problem since most work is done in database accesses (PostgreSQL or OpenLDAP), and that configuring it to use ANY accounting method doesn't need that you know Python at all. (Feel free to answer privately if you prefer) bye, Jerome Alet -- "A non-free program is a predatory social system that keeps people in a state of domination and division, and uses the spoils to dominate more." - RMS ----------------------------------------------------------------------------- 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. -----------------------------------------------------------------------------
