Changeset 998

Show
Ignore:
Timestamp:
05/21/03 12:07:09 (22 years ago)
Author:
jalet
Message:

Now works with net-snmp v5.0 and above.
(It already worked, but the sample configuration file didn't contain
appropriate values)

Location:
pykota/trunk
Files:
4 modified

Legend:

Unmodified
Added
Removed
  • pykota/trunk/conf/pykota.conf.sample

    r994 r998  
    8383# untested/postscript directory to another place. 
    8484# accounter: external(/usr/local/bin/pagecount.sh) 
     85# WARNING : it may produce broken pipes, I don't know why yet. YMMV. 
    8586# 
    8687# default value  
     
    123124# 
    124125# Example :  
    125 #     requester: external(snmpget -c public -Ov %(printer)s 43.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 " ") 
    126127# 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) 
    128129# are equivalent 
    129130# 
     
    140141# If both are defined, the printer option has priority. 
    141142# 
    142 # NB : The SNMP oid 43.10.2.1.4.1.1 works on HP Laserjet Printers, but it may 
     143# NB : The SNMP oid mib-2.43.10.2.1.4.1.1 works on HP Laserjet Printers, but it may 
    143144#      be different with other brands, refer to your printer's documentation  
    144145#      for details. 
    145 requester: external(snmpget -c public -Ov %(printer)s 43.10.2.1.4.1.1 | cut -f 2,2 -d " ") 
    146  
     146requester: external(snmpget -v 2c -c public -Ov %(printer)s mib-2.43.10.2.1.4.1.1 | cut -f 2,2 -d " ") 
    147147 
    148148# Default policy for inexistant users (e.g. root) 
  • pykota/trunk/NEWS

    r991 r998  
    2222PyKota NEWS : 
    2323 
     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         
    2430    - 1.07 : Release of the Shame ! 
    2531     
     
    2733          the CVS tree. Nobody could use it since it wasn't included ! 
    2834           
    29          
    3035    - 1.06 : 
    3136     
  • pykota/trunk/pykota/requesters/snmp.py

    r952 r998  
    2121# 
    2222# $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# 
    2328# Revision 1.8  2003/04/23 22:13:57  jalet 
    2429# Preliminary support for LPRng added BUT STILL UNTESTED. 
     
    7176        if hostname is None : 
    7277            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)) 
    7479        try : 
    7580            pagecounter = int(answer.readline().split()[-1].strip()) 
  • pykota/trunk/pykota/version.py

    r995 r998  
    2121# 
    2222 
    23 __version__ = "1.08alpha1_unofficial" 
     23__version__ = "1.08alpha2_unofficial" 
    2424 
    2525__doc__ = """PyKota : a complete Printing Quota Solution for CUPS and LPRng."""