Changeset 1746 for pykota/trunk/conf

Show
Ignore:
Timestamp:
09/27/04 21:56:27 (20 years ago)
Author:
jalet
Message:

Added internal handling for PJL queries over port tcp/9100. Now waits
for printer being idle before asking, just like with SNMP.

Files:
1 modified

Legend:

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

    r1729 r1746  
    213213#                 e.g. myprinter.example.com 
    214214# 
    215 #         Example :  
     215#         Recommended values : 
     216# 
     217#             accounter: hardware(snmp) 
     218# 
     219#               Extracts the printer's internal page counter via SNMP. 
     220# 
     221#         Or : 
     222# 
     223#             accounter: hardware(pjl) 
     224#  
     225#               Extracts the printer's internal page counter via PJL queries over port tcp/9100. 
     226# 
     227#         Other Examples :  
    216228#          
    217229#             accounter: hardware(/usr/bin/snmpget -v1 -c public -Ov %(printer)s mib-2.43.10.2.1.4.1.1 | cut -f 2,2 -d " ") 
     
    221233#             accounter: hardware(/usr/bin/npadmin --pagecount %(printer)s) 
    222234#          
    223 #         Another example, using the special 'snmp' value, which doesn't launch 
    224 #         any subprocess but instead all SNMP processing is done from PyKota's main 
    225 #         code (this is less configurable, but requires less CPU and can prevent zombies) :  
    226 # 
    227 #             accounter: hardware(snmp) 
    228 # 
    229235#         Another example, for AppleTalk printers which works fine : 
    230236#         (You may need the pap CUPS backend installed, and copy the  
     
    275281#         the printer) 
    276282#          
    277 #         YOU ABSOLUTELY HAVE TO BE SURE YOU HAVE A SCRIPT WHICH WAITS FOR THE 
    278 #         PRINTER BEING READY BEFORE ASKING FOR ITS INTERNAL PAGE COUNTER. 
    279 #          
    280 #         PYKOTA INCLUDES SUCH SCRIPTS FOR SNMP AND APPLETALK PRINTERS, MORE TO COME 
    281 # 
    282 #         SOME OF THE ABOVE EXAMPLES DON'T USE SUCH A SCRIPT, YOU HAVE BEEN WARNED 
     283#   YOU ABSOLUTELY HAVE TO BE SURE YOU HAVE A SCRIPT WHICH WAITS FOR THE 
     284#   PRINTER BEING READY BEFORE ASKING FOR ITS INTERNAL PAGE COUNTER. 
     285#          
     286#   PYKOTA INCLUDES SUCH SCRIPTS FOR SNMP AND APPLETALK PRINTERS, MORE TO COME 
     287# 
     288#   SOME OF THE ABOVE EXAMPLES DON'T USE SUCH A SCRIPT, YOU HAVE BEEN WARNED 
     289# 
     290# 
     291#   WITH THE SPECIAL MAGIC hardware(snmp) AND hardware(pjl) VALUES, PYKOTA 
     292#   TAKES CARE OF ALL THIS FOR YOU, SO PLEASE UNDERSTAND THAT IT IS PREFERABLE 
     293#   TO USE THESE TWO METHODS : THEY WORK FINE, REQUIRE LITTLE TO NO CPU, 
     294#   AND DO ALL THE HARD WORK AUTOMATICALLY. IF YOU REALLY NEED TO YOU CAN USE 
     295#   YOUR OWN EXTERNAL COMMANDS AS DESCRIBED ABOVE, JUST BE CAREFUL WITH THIS. 
    283296#          
    284297#