• Home
  • History
  • Annotate
  • Line#
  • Navigate
  • Raw
  • Download
  • only in /asuswrt-rt-n18u-9.0.0.4.380.2695/release/src-rt/router/LPRng/DOCS/LPRng-Reference-Multipart/
1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
2
3<html>
4  <head>
5    <meta name="generator" content="HTML Tidy, see www.w3.org">
6    <title>Accounting</title>
7    <meta name="GENERATOR" content=
8    "Modular DocBook HTML Stylesheet Version 1.7">
9    <link rel="HOME" title=" LPRng Reference Manual" href=
10    "index.htm">
11    <link rel="PREVIOUS" title="Adding Authentication Support"
12    href="x9556.htm">
13    <link rel="NEXT" title="Accounting Information" href=
14    "x9682.htm">
15  </head>
16
17  <body class="CHAPTER" bgcolor="#FFFFFF" text="#000000" link=
18  "#0000FF" vlink="#840084" alink="#0000FF">
19    <div class="NAVHEADER">
20      <table summary="Header navigation table" width="100%" border=
21      "0" cellpadding="0" cellspacing="0">
22        <tr>
23          <th colspan="3" align="center">LPRng Reference Manual: 5
24          Sep 2003 (For LPRng-3.8.22)</th>
25        </tr>
26
27        <tr>
28          <td width="10%" align="left" valign="bottom"><a href=
29          "x9556.htm" accesskey="P">Prev</a></td>
30
31          <td width="80%" align="center" valign="bottom">
32          </td>
33
34          <td width="10%" align="right" valign="bottom"><a href=
35          "x9682.htm" accesskey="N">Next</a></td>
36        </tr>
37      </table>
38      <hr align="LEFT" width="100%">
39    </div>
40
41    <div class="CHAPTER">
42      <h1><a name="ACCOUNTINGREF"></a>Chapter 18. Accounting</h1>
43
44      <div class="TOC">
45        <dl>
46          <dt><b>Table of Contents</b></dt>
47
48          <dt>18.1. <a href=
49          "accountingref.htm#ACCOUNTINGSERVER">Accounting Printcap
50          Options</a></dt>
51
52          <dt>18.2. <a href="x9682.htm">Accounting
53          Information</a></dt>
54
55          <dt>18.3. <a href="x9696.htm">Accounting File</a></dt>
56
57          <dt>18.4. <a href="x9736.htm">Authorization and
58          Quotas</a></dt>
59
60          <dt>18.5. <a href="x9761.htm">Accessing Printer Hardware
61          Pagecounters</a></dt>
62
63          <dt>18.6. <a href="x9772.htm">Reliable
64          Accounting</a></dt>
65
66          <dt>18.7. <a href="x9787.htm"><b class=
67          "APPLICATION">LPRng</b> accounting.pl Utility</a></dt>
68        </dl>
69      </div>
70
71      <p>In Academic institutions, avoiding printing accounting has
72      been regarded as a challenge, an ongoing game of fat cat and
73      poor starving mouse, between the brutal and corrupt
74      Administration and the poor, downtrodden, over-charged
75      student. We will disregard the fact that if most students put
76      as much effort into their studies as in finding ways to avoid
77      accounting procedures then they would be Rhodes Scholar
78      material, but I digress...</p>
79
80      <p>There are two approaches to printing accounting: use
81      software determine the number of pages that should be printed
82      or use a hardware pagecounter facility on the printer to
83      accurately determine the number of pages used. While the
84      software method works well in a relatively error and security
85      compromise free environment and where print jobs do not jam,
86      for accurate account a hardware level pagecounter or some
87      other method must be used. LPRng provides facilities to use
88      either method to determine page counts.</p>
89
90      <p>There are also two methods available to store the actual
91      accounting information: the simple <span class="emphasis"><i
92      class="EMPHASIS">save to file</i></span> method and the more
93      complex <span class="emphasis"><i class="EMPHASIS">save to
94      program</i></span> method. LPRng provides support for both
95      methods.</p>
96
97      <div class="SECT1">
98        <h1 class="SECT1"><a name="ACCOUNTINGSERVER">18.1.
99        Accounting Printcap Options</a></h1>
100
101        <p>The accounting facilities are controlled and enabled by
102        the following entries in the printcap file.</p>
103
104        <div class="INFORMALTABLE">
105          <a name="AEN9651"></a>
106
107          <table border="1" frame="border" rules="all" class=
108          "CALSTABLE">
109            <col>
110            <col>
111            <col>
112
113            <thead>
114              <tr>
115                <th>Tag</th>
116
117                <th>Default Value</th>
118
119                <th>Purpose</th>
120              </tr>
121            </thead>
122
123            <tbody>
124              <tr>
125                <td>af</td>
126
127                <td>NULL</td>
128
129                <td>accounting file name</td>
130              </tr>
131
132              <tr>
133                <td>as</td>
134
135                <td>"jobstart $H $n $P $k $b $t"</td>
136
137                <td>accounting info for job start</td>
138              </tr>
139
140              <tr>
141                <td>ae</td>
142
143                <td>"jobend $H $n $P $k $b $t"</td>
144
145                <td>accounting info for job end</td>
146              </tr>
147
148              <tr>
149                <td>achk</td>
150
151                <td>FALSE</td>
152
153                <td>&nbsp;</td>
154              </tr>
155
156              <tr>
157                <td>la</td>
158
159                <td>TRUE</td>
160
161                <td>do accounting for 'local' printer</td>
162              </tr>
163
164              <tr>
165                <td>ar</td>
166
167                <td>FALSE</td>
168
169                <td>do accounting for 'remote' transfers</td>
170              </tr>
171            </tbody>
172          </table>
173        </div>
174      </div>
175    </div>
176
177    <div class="NAVFOOTER">
178      <hr align="LEFT" width="100%">
179
180      <table summary="Footer navigation table" width="100%" border=
181      "0" cellpadding="0" cellspacing="0">
182        <tr>
183          <td width="33%" align="left" valign="top"><a href=
184          "x9556.htm" accesskey="P">Prev</a></td>
185
186          <td width="34%" align="center" valign="top"><a href=
187          "index.htm" accesskey="H">Home</a></td>
188
189          <td width="33%" align="right" valign="top"><a href=
190          "x9682.htm" accesskey="N">Next</a></td>
191        </tr>
192
193        <tr>
194          <td width="33%" align="left" valign="top">Adding
195          Authentication Support</td>
196
197          <td width="34%" align="center" valign="top">&nbsp;</td>
198
199          <td width="33%" align="right" valign="top">Accounting
200          Information</td>
201        </tr>
202      </table>
203    </div>
204  </body>
205</html>
206
207