Table of Contents
The UCS print service allows the use of print quotas. Print quotas can be defined for printers and printer groups using policies.
Print quotas are implemented using the component PyKota. It creates an interface between the print server CUPS and the connected printer. Before the print job is sent to the printer, the system checks whether the user is authorized to print. In addition, every print job is logged, which allows cost evaluations.
There are two thresholds for the print quotas:
cups/quota/inform
to yes. This
notification is disabled in the standard setting.
PyKota interprets print jobs in the following print formats: PostScript
, PDF
, PCL1
, PCL2
,
PCL3
, PCL4
, PCL5
, PCLXL
, PCL6
and ESC/P2
.
The print quota status is not saved in the LDAP directory service, but rather in a separate PostgreSQL database set up automatically via the univention-printquotadb package on the print server.
Print quota support is disabled as standard. It must be subsequently set up by installing the univention-printquota package.
Enabling the print quotas results in an internal change to the printer management. For this reason, univention-printquota must be installed on all print servers.
Before a print quota can be assigned to a printer or printer group, the option
must be activated in the Univention Management Console.
Print quotas can only be used for printers connected via the protocols
lpd
, ipp
, http
,
socket
and smb
. It is not possible to set up
print quotas for printers connected via usb
,
parallel
and file
URIs.
The printer quotas can then be assigned in two ways; via a policy or specifically for each user in the UMC module
.The quota can be configured as a soft limit (warning threshold) and a hard limit (maximum number of printable pages) respectively via a print quota policy. The set values are always interpreted minus 1. I.e., if the user has a hard limit of 100, a maximum of 99 pages can be printed. This gives the following special values:
The assignment is possible in the following ways:
The UMC module Section 1.3.1) under . A list of all users for which quotas are configured is displayed. can now be used to add an additional entry: A user is selected under and a and has to be specified. The page counter can be reset to zero under .
allows the configuration of user-specific printer quotas. Quotas can be assigned to users for all printers on which a quota is enabled (see
The quota data can only be queried if print quota is enabled on at least one printer
share; otherwise, repykota
delivers an error message: /usr/bin/repykota : There's
no printer matching *
.
The quota status can be viewed for all users using the command repykota
or alternatively for a single user with repykota USERNAME
:
:~# repykota Report for user quota on printer HP () Pages grace time: 7 days Price per job: 0.000 Price per page: 0.000 User overcharge used soft hard balance grace total ------------------------------------------------------------------ Administrator -Q 1.0 0 500 1000 0.00 20 user -Q 1.0 20 100 200 0.00 20 Total : 40 Real : 0
The page counter for a user can be reset either with the UMC module Section 1.3.2.2) or in the command line
using the command edpykota reset
:
:~# edpykota --reset user01 Extracting datas... Modification... Done.
The following command removes the print quota for a user on all printer shares:
edpykota --delete user01
or on a specific printer:
edpykota --delete user01 --printer labelprinter