Changeset 998
- Timestamp:
- 05/21/03 12:07:09 (22 years ago)
- Location:
- pykota/trunk
- Files:
-
- 4 modified
Legend:
- Unmodified
- Added
- Removed
-
pykota/trunk/conf/pykota.conf.sample
r994 r998 83 83 # untested/postscript directory to another place. 84 84 # accounter: external(/usr/local/bin/pagecount.sh) 85 # WARNING : it may produce broken pipes, I don't know why yet. YMMV. 85 86 # 86 87 # default value … … 123 124 # 124 125 # Example : 125 # requester: external(snmpget - c public -Ov %(printer)s43.10.2.1.4.1.1 | cut -f 2,2 -d " ")126 # requester: external(snmpget -v 2c -c public -Ov %(printer)s mib-2.43.10.2.1.4.1.1 | cut -f 2,2 -d " ") 126 127 # and : 127 # requester: snmp(public, 43.10.2.1.4.1.1)128 # requester: snmp(public, mib-2.43.10.2.1.4.1.1) 128 129 # are equivalent 129 130 # … … 140 141 # If both are defined, the printer option has priority. 141 142 # 142 # NB : The SNMP oid 43.10.2.1.4.1.1 works on HP Laserjet Printers, but it may143 # NB : The SNMP oid mib-2.43.10.2.1.4.1.1 works on HP Laserjet Printers, but it may 143 144 # be different with other brands, refer to your printer's documentation 144 145 # for details. 145 requester: external(snmpget -c public -Ov %(printer)s 43.10.2.1.4.1.1 | cut -f 2,2 -d " ") 146 146 requester: external(snmpget -v 2c -c public -Ov %(printer)s mib-2.43.10.2.1.4.1.1 | cut -f 2,2 -d " ") 147 147 148 148 # Default policy for inexistant users (e.g. root) -
pykota/trunk/NEWS
r991 r998 22 22 PyKota NEWS : 23 23 24 - 1.08alpha2 : 25 26 - Now works with net-snmp v5.0 and above. 27 It already worked, but the sample configuration 28 file didn't contain appropriate values... 29 24 30 - 1.07 : Release of the Shame ! 25 31 … … 27 33 the CVS tree. Nobody could use it since it wasn't included ! 28 34 29 30 35 - 1.06 : 31 36 -
pykota/trunk/pykota/requesters/snmp.py
r952 r998 21 21 # 22 22 # $Log$ 23 # Revision 1.9 2003/05/21 10:07:09 jalet 24 # Now works with net-snmp v5.0 and above. 25 # (It already worked, but the sample configuration file didn't contain 26 # appropriate values) 27 # 23 28 # Revision 1.8 2003/04/23 22:13:57 jalet 24 29 # Preliminary support for LPRng added BUT STILL UNTESTED. … … 71 76 if hostname is None : 72 77 raise PyKotaRequesterError, _("Unknown printer address in SNMP(%s, %s) for printer %s") % (self.community, self.oid, self.printername) 73 answer = os.popen("snmpget - c %s -Ov %s %s" % (self.community, hostname, self.oid))78 answer = os.popen("snmpget -v 2c -c %s -Ov %s %s" % (self.community, hostname, self.oid)) 74 79 try : 75 80 pagecounter = int(answer.readline().split()[-1].strip()) -
pykota/trunk/pykota/version.py
r995 r998 21 21 # 22 22 23 __version__ = "1.08alpha 1_unofficial"23 __version__ = "1.08alpha2_unofficial" 24 24 25 25 __doc__ = """PyKota : a complete Printing Quota Solution for CUPS and LPRng."""