Changeset 999 for pykota/trunk/pykota/requesters/snmp.py
- Timestamp:
- 05/22/03 14:56:06 (21 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
pykota/trunk/pykota/requesters/snmp.py
r998 r999 21 21 # 22 22 # $Log$ 23 # Revision 1.10 2003/05/22 12:56:06 jalet 24 # Uses SNMP version 1 instead of version 2c by default, which is probably 25 # a safer bet. 26 # 23 27 # Revision 1.9 2003/05/21 10:07:09 jalet 24 28 # Now works with net-snmp v5.0 and above. … … 76 80 if hostname is None : 77 81 raise PyKotaRequesterError, _("Unknown printer address in SNMP(%s, %s) for printer %s") % (self.community, self.oid, self.printername) 78 answer = os.popen("snmpget -v 2c-c %s -Ov %s %s" % (self.community, hostname, self.oid))82 answer = os.popen("snmpget -v1 -c %s -Ov %s %s" % (self.community, hostname, self.oid)) 79 83 try : 80 84 pagecounter = int(answer.readline().split()[-1].strip())