Show
Ignore:
Timestamp:
05/21/03 12:07:09 (21 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)

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • 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())