Changeset 780 for pykota/trunk/pykota/requesters/snmp.py
- Timestamp:
- 02/10/03 01:42:17 (21 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
pykota/trunk/pykota/requesters/snmp.py
r773 r780 15 15 # 16 16 # $Log$ 17 # Revision 1.5 2003/02/10 00:42:17 jalet 18 # External requester should be ok (untested) 19 # New syntax for configuration file wrt requesters 20 # 17 21 # Revision 1.4 2003/02/09 13:05:43 jalet 18 22 # Internationalization continues... … … 36 40 class Requester : 37 41 """A class to send queries to printers via SNMP.""" 38 def __init__(self, config, printername ) :42 def __init__(self, config, printername, arguments) : 39 43 """Sets instance vars depending on the current printer.""" 40 44 self.printername = printername 41 self.community = config.config.get(printername, "snmpcmnty")42 self.oid = config.config.get(printername, "snmpoid")45 self.community = arguments[0] 46 self.oid = arguments[1] 43 47 44 48 def getPrinterPageCounter(self, hostname) :