Changeset 998 for pykota/trunk/pykota
- Timestamp:
- 05/21/03 12:07:09 (21 years ago)
- Location:
- pykota/trunk/pykota
- Files:
-
- 2 modified
Legend:
- Unmodified
- Added
- Removed
-
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."""