Changeset 919

Show
Ignore:
Timestamp:
04/15/03 19:39:57 (21 years ago)
Author:
jalet
Message:

Support for AppleTalk? requester was added and tested successfully with
an Apple LaserWriter? 16/600 PS and an HP 2100 TN with Ethertalk enabled.

Location:
pykota/trunk
Files:
4 modified

Legend:

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

    r903 r919  
    9999#     requester: external(npadmin --pagecount %(printer)s) 
    100100# 
     101# Another example, for AppleTalk printers which works fine : 
     102# (You need the pap CUPS backend installed, and copy the  
     103# pagecount.ps file from untested/netatalk into /etc) 
     104#     requester: external(/usr/bin/pap -p "%(printer)s:LaserWriter" /etc/pagecount.ps  2>/dev/null | grep -v status | grep -v Connect) 
     105# 
    101106# This value can be set either globally or per printer or both. 
    102107# If both are defined, the printer option has priority. 
  • pykota/trunk/NEWS

    r917 r919  
    7777           
    7878        - Some minor bugs which happened in rare situations were fixed. 
     79         
     80        - Support for AppleTalk printers was added, see sample configuration 
     81          file for details. 
    7982         
    8083    - 1.02 : 
  • pykota/trunk/README

    r900 r919  
    9797  future.  
    9898   
    99 PyKota is known to work fine with HP Laserjet 2100 and 2200    
    100 networked printers, and should work with any SNMP-enabled  
    101 network printer capable of outputing its lifetime printed pages  
    102 number. 
    103  
    104 If your printers don't support SNMP, then making them work with  
    105 PyKota is up to you. Some sample scripts which can query non-SNMP  
    106 printers for their lifetime page counter are included in the  
    107 ./untested directory. You'll have to test and adapt them though, and  
    108 define them as external requesters in the PyKota configuration file.  
     99PyKota is known to work fine with HP Laserjet 2100 and 2200, and  
     100Apple LaserWriter 16/600 PS.  
     101 
     102It should also work fine with any printer capable of outputing  
     103its lifetime printed pages counter via either SNMP or AppleTalk.  
     104 
     105If your printers don't support SNMP or AppleTalk, then making them  
     106work with PyKota is up to you. Some sample scripts which can query  
     107non-SNMP printers for their lifetime page counter are included in  
     108the ./untested directory. You'll have to test and adapt them though,  
     109and define them as external requesters in the PyKota configuration  
     110file. See the sample configuration file to learn how to do that. 
    109111 
    110112============================================================ 
     
    130132    - PostgreSQL's PygreSQL Python extension and the PostgreSQL client 
    131133      libraries. 
    132     - SNMP tools (specifically the snmpget command) 
     134    - SNMP tools (specifically the snmpget command) if you plan to 
     135      request your printer's lifetime page counter via SNMP. 
     136    - Netatalk (specifically the pap command) if you plan to 
     137      request your printer's lifetime page counter via AppleTalk. 
    133138     
    134139  You need to have the following tools installed on the Quota Storage   
  • pykota/trunk/untested/netatalk/netatalk.sh

    r918 r919  
    33# $Id$ 
    44# 
    5 # The following was adapted from a post found on usenet,  
    6 # it works with my Apple LaserWriter 16/600 PS. 
     5# The following was adapted from a post found on usenet. 
     6# 
     7# It works with my Apple LaserWriter 16/600 PS and with 
     8# my HP LasetJet 2100 TN with AppleTalk enabled. 
     9# 
    710# As always, YMMV. 
    811#  
    9 /usr/bin/pap -p "MyPrinter:LaserWriter" pagecount.ps 2>/dev/null | grep -v status | grep -v Connect 
    10  
     12echo Please uncomment one of the lines, adapt the script and restart. 
     13echo You can get AppleTalk printer\'s names with the nbplkup command. 
     14# /usr/bin/pap -p "RAMPAL-16/600:LaserWriter" pagecount.ps 2>/dev/null | grep -v status | grep -v Connect 
     15# /usr/bin/pap -p "LaserJet 2100 NT:LaserWriter" pagecount.ps 2>/dev/null | grep -v status | grep -v Connect