]> git.ipfire.org Git - thirdparty/cups.git/blame - doc/help/ref-printers-conf.html
Merge changes from CUPS 1.4svn-r8628.
[thirdparty/cups.git] / doc / help / ref-printers-conf.html
CommitLineData
ef416fc2 1<HTML>
2<!-- SECTION: References -->
3<HEAD>
4 <TITLE>printers.conf</TITLE>
178cb736 5 <LINK REL="STYLESHEET" TYPE="text/css" HREF="../cups-printable.css">
ef416fc2 6</HEAD>
7<BODY>
8
178cb736
MS
9<H1 CLASS="title">printers.conf</H1>
10
ef416fc2 11<P>The CUPS scheduler (cupsd) uses the
12<VAR>/etc/cups/printers.conf</VAR> file to store the list of
13available printers. This file contains only locally defined
14printers, not remote printers that are created automatically via
15browsing. Each directive is listed on a line by itself followed
16by its value. Comments are introduced using the number sign ("#")
17character at the beginning of a line.</P>
18
19<P>While the printer configuration file consists of plain text
20and can be modified using your favorite text editor, you should
480ef0fe 21normally use the <A HREF="man-lpadmin.html">lpadmin(8)</A>
22command, web interface, or any of the available GUIs to manage
23your printers instead. If you do choose to edit this file
24manually, you will need to restart the scheduler to make them
25active.</P>
ef416fc2 26
27
480ef0fe 28<H2 CLASS="title"><A NAME="Accepting">Accepting</A></H2>
ef416fc2 29
480ef0fe 30<H3>Examples</H3>
ef416fc2 31
32<PRE CLASS="command">
480ef0fe 33&lt;Printer name&gt;
34 ...
35 Accepting yes
36&lt;/Printer&gt;
ef416fc2 37</PRE>
38
480ef0fe 39<H3>Description</H3>
ef416fc2 40
41<P>The <CODE>Accepting</CODE> directive defines the initial state
42of the <VAR>printer-is-accepting-jobs</VAR> attribute. This state
58dc1933
MS
43is also set by the <CODE>cupsaccept(8)</CODE> and
44<CODE>cupsreject(8)</CODE> commands:</P>
ef416fc2 45
46<PRE CLASS="command">
58dc1933
MS
47<KBD>/usr/sbin/cupsaccept printername
48/usr/sbin/cupsreject printername</KBD>
ef416fc2 49</PRE>
50
51<P>This directive must appear inside a <A
52HREF="#Printer"><CODE>Printer</CODE></A> or <A
53HREF="#DefaultPrinter"><CODE>DefaultPrinter</CODE></A>
480ef0fe 54section.</P>
ef416fc2 55
56
480ef0fe 57<H2 CLASS="title"><A NAME="AllowUser">AllowUser</A></H2>
ef416fc2 58
480ef0fe 59<H3>Examples</H3>
ef416fc2 60
61<PRE CLASS="command">
480ef0fe 62&lt;Printer name&gt;
63 ...
64 AllowUser foo_user
65 AllowUser @bar_group
66&lt;/Printer&gt;
ef416fc2 67</PRE>
68
480ef0fe 69<H3>Description</H3>
ef416fc2 70
71<P>The <CODE>AllowUser</CODE> directive adds a username or group
72name to the <VAR>requesting-user-name-allowed</VAR> attribute
73which can be set by the <CODE>lpadmin(8)</CODE> command:</P>
74
75<PRE CLASS="command">
76<KBD>/usr/sbin/lpadmin -p printername -u allow:foo_user,@bar_group</KBD>
77</PRE>
78
79<P>This directive must appear inside a <A
80HREF="#Printer"><CODE>Printer</CODE></A> or <A
81HREF="#DefaultPrinter"><CODE>DefaultPrinter</CODE></A> directive.
82This directive cannot be used with <A
83HREF="#DenyUser"><CODE>DenyUser</CODE></A>.</P>
84
85
480ef0fe 86<H2 CLASS="title"><A NAME="DefaultPrinter">DefaultPrinter</A></H2>
ef416fc2 87
480ef0fe 88<H3>Examples</H3>
ef416fc2 89
90<PRE CLASS="command">
91&lt;DefaultPrinter name&gt;
480ef0fe 92 ...
ef416fc2 93&lt;/Printer&gt;
94</PRE>
95
480ef0fe 96<H3>Description</H3>
ef416fc2 97
98<P>The <CODE>DefaultPrinter</CODE> directive begins a printer
99definition as the default server destination. The default server
100destination can be set using the <CODE>lpadmin(8)</CODE>
101command:</P>
102
103<PRE CLASS="command">
104<KBD>/usr/sbin/lpadmin -d printername</KBD>
105</PRE>
106
107<P>Note that the server default destination settings can be
108overridden by the user's default destination settings which are
109normally set using the <CODE>lpoptions(1)</CODE> command.</P>
110
111
480ef0fe 112<H2 CLASS="title"><A NAME="DenyUser">DenyUser</A></H2>
ef416fc2 113
480ef0fe 114<H3>Examples</H3>
ef416fc2 115
116<PRE CLASS="command">
480ef0fe 117&lt;Printer name&gt;
118 ...
119 DenyUser foo_user
120 DenyUser @bar_group
121&lt;/Printer&gt;
ef416fc2 122</PRE>
123
480ef0fe 124<H3>Description</H3>
ef416fc2 125
126<P>The <CODE>DenyUser</CODE> directive adds a username or group
127name to the <VAR>requesting-user-name-denied</VAR> attribute
128which can be set by the <CODE>lpadmin(8)</CODE> command:</P>
129
130<PRE CLASS="command">
131<KBD>/usr/sbin/lpadmin -p printername -u deny:foo_user,@bar_group</KBD>
132</PRE>
133
134<P>This directive must appear inside a <A
135HREF="#Printer"><CODE>Printer</CODE></A> or <A
136HREF="#DefaultPrinter"><CODE>DefaultPrinter</CODE></A> directive.
137This directive cannot be used with <A
138HREF="#AllowUser"><CODE>AllowUser</CODE></A></P>
139
140
480ef0fe 141<H2 CLASS="title"><A NAME="DeviceURI">DeviceURI</A></H2>
ef416fc2 142
480ef0fe 143<H3>Examples</H3>
ef416fc2 144
145<PRE CLASS="command">
480ef0fe 146&lt;Printer name&gt;
147 ...
148 DeviceURI socket://foo.bar.com:9100
149&lt;/Printer&gt;
ef416fc2 150</PRE>
151
480ef0fe 152<H3>Description</H3>
ef416fc2 153
154<P>The <CODE>DeviceURI</CODE> directive defines the value of the
155<VAR>device-uri-attribute</VAR> attribute. It is normally set
156using the <CODE>lpadmin(8)</CODE> command:</P>
157
158<PRE CLASS="command">
159<KBD>/usr/sbin/lpadmin -p printername -v device-uri</KBD>
160</PRE>
161
162<P>This directive must appear inside a <A
163HREF="#Printer"><CODE>Printer</CODE></A> or <A
164HREF="#DefaultPrinter"><CODE>DefaultPrinter</CODE></A>
480ef0fe 165section.</P>
ef416fc2 166
167
480ef0fe 168<H2 CLASS="title"><SPAN CLASS="info">CUPS 1.2</SPAN><A NAME="ErrorPolicy">ErrorPolicy</A></H2>
ef416fc2 169
480ef0fe 170<H3>Examples</H3>
ef416fc2 171
172<PRE CLASS="command">
480ef0fe 173&lt;Printer name&gt;
174 ...
07725fee 175 ErrorPolicy abort-job
480ef0fe 176&lt;/Printer&gt;
ef416fc2 177</PRE>
178
480ef0fe 179<H3>Description</H3>
ef416fc2 180
181<P>The <CODE>ErrorPolicy</CODE> directive defines the policy that
182is used when a backend is unable to send a print job to the
183printer. The <CODE>lpadmin(8)</CODE> command sets the current
184error policy:</P>
185
186<PRE CLASS="command">
187<KBD>/usr/sbin/lpadmin -p printername -o printer-error-policy=stop-printer</KBD>
188</PRE>
189
190<P>The following values are supported:</P>
191
192<UL>
193
07725fee 194 <LI><CODE>abort-job</CODE> - Abort the job and proceed
ef416fc2 195 with the next job in the queue</LI>
196
ee571f26
MS
197 <LI><CODE>retry-current-job</CODE> - Retry the current job
198 immediately</LI>
199
ef416fc2 200 <LI><CODE>retry-job</CODE> - Retry the job after waiting
201 for N seconds; the <VAR>cupsd.conf</VAR> <A
4744bd90 202 HREF="ref-cupsd-conf.html#JobRetryInterval"><CODE>JobRetryInterval</CODE></A>
ef416fc2 203 directive controls the value of N</LI>
204
205 <LI><CODE>stop-printer</CODE> - Stop the printer and keep
206 the job for future printing; this is the default
207 value</LI>
208
209</UL>
210
211<P>This directive must appear inside a <A
212HREF="#Printer"><CODE>Printer</CODE></A> or <A
213HREF="#DefaultPrinter"><CODE>DefaultPrinter</CODE></A>
480ef0fe 214section.</P>
ef416fc2 215
216
58dc1933
MS
217<H2 CLASS="title"><SPAN CLASS="info">CUPS 1.4</SPAN><A NAME="Filter">Filter</A></H2>
218
219<H3>Examples</H3>
220
221<PRE CLASS="command">
222&lt;Printer name&gt;
223 ...
224 Filter mime/type 100 program
225&lt;/Printer&gt;
226</PRE>
227
228<H3>Description</H3>
229
230<P>The <CODE>Filter</CODE> directive lists a single filter program as defined
231in the printer's PPD file.</P>
232
233<P>This directive must appear inside a
234<A HREF="#Printer"><CODE>Printer</CODE></A> or
235<A HREF="#DefaultPrinter"><CODE>DefaultPrinter</CODE></A> section.</P>
236
237
480ef0fe 238<H2 CLASS="title"><A NAME="Info">Info</A></H2>
ef416fc2 239
480ef0fe 240<H3>Examples</H3>
ef416fc2 241
242<PRE CLASS="command">
480ef0fe 243&lt;Printer name&gt;
244 ...
245 Info My Printer
246&lt;/Printer&gt;
ef416fc2 247</PRE>
248
480ef0fe 249<H3>Description</H3>
ef416fc2 250
251<P>The <CODE>Info</CODE> directive defines the string for the
252<VAR>printer-info</VAR> attribute. It is normally set using the
253<CODE>lpadmin(8)</CODE> command:</P>
254
255<PRE CLASS="command">
256<KBD>/usr/sbin/lpadmin -p printername -D "My Printer"</KBD>
257</PRE>
258
259<P>This directive must appear inside a <A
260HREF="#Printer"><CODE>Printer</CODE></A> or <A
261HREF="#DefaultPrinter"><CODE>DefaultPrinter</CODE></A>
480ef0fe 262section.</P>
ef416fc2 263
264
480ef0fe 265<H2 CLASS="title"><A NAME="JobSheets">JobSheets</A></H2>
ef416fc2 266
480ef0fe 267<H3>Examples</H3>
ef416fc2 268
269<PRE CLASS="command">
480ef0fe 270&lt;Printer name&gt;
271 ...
272 JobSheets none,standard
273&lt;/Printer&gt;
ef416fc2 274</PRE>
275
480ef0fe 276<H3>Description</H3>
ef416fc2 277
278<P>The <CODE>JobSheets</CODE> directive specifies the default
279banner pages to print before and after a print job. In the above
280example, only a <VAR>standard</VAR> banner will print after each
281job. The <CODE>lpadmin(8)</CODE> command is normally used to set
282the default banners:
283
284<PRE CLASS="command">
285<KBD>/usr/sbin/lpadmin -p printername -o job-sheets-default=none,standard</KBD>
286</PRE>
287
288<P>If only one banner file is specified, it will be printed
289before the files in the job. If a second banner file is
290specified, it is printed after the files in the job.</P>
291
292<P>The available banner pages depend on the local system
293configuration; CUPS includes the following standard banner
294files:</P>
295
296<UL>
297
298 <LI><CODE>none</CODE> - Do not produce a banner
299 page.</LI>
300
301 <LI><CODE>classified</CODE> - A banner page with a
302 &quot;classified&quot; label at the top and bottom.</LI>
303
304 <LI><CODE>confidential</CODE> - A banner page with a
305 &quot;confidential&quot; label at the top and bottom.</LI>
306
307 <LI><CODE>secret</CODE> - A banner page with a
308 &quot;secret&quot; label at the top and bottom.</LI>
309
310 <LI><CODE>standard</CODE> - A banner page with no label
311 at the top and bottom.</LI>
312
313 <LI><CODE>topsecret</CODE> - A banner page with a
314 &quot;top secret&quot; label at the top and bottom.</LI>
315
316 <LI><CODE>unclassified</CODE> - A banner page with an
317 &quot;unclassified&quot; label at the top and bottom.</LI>
318
319</UL>
320
321<P>This directive must appear inside a <A
322HREF="#Printer"><CODE>Printer</CODE></A> or <A
323HREF="#DefaultPrinter"><CODE>DefaultPrinter</CODE></A>
480ef0fe 324section.</P>
ef416fc2 325
326
480ef0fe 327<H2 CLASS="title"><A NAME="KLimit">KLimit</A></H2>
ef416fc2 328
480ef0fe 329<H3>Examples</H3>
ef416fc2 330
331<PRE CLASS="command">
480ef0fe 332&lt;Printer name&gt;
333 ...
334 KLimit 1234
335&lt;/Printer&gt;
ef416fc2 336</PRE>
337
480ef0fe 338<H3>Description</H3>
ef416fc2 339
340<P>The <CODE>KLimit</CODE> directive defines the value of the
341<VAR>job-k-limit</VAR> attribute. It is normally set using the
342<CODE>lpadmin(8)</CODE> command:</P>
343
344<PRE CLASS="command">
345<KBD>/usr/sbin/lpadmin -p printername -o job-k-limit=1234</KBD>
346</PRE>
347
348<P>This directive must appear inside a <A
349HREF="#Printer"><CODE>Printer</CODE></A> or <A
350HREF="#DefaultPrinter"><CODE>DefaultPrinter</CODE></A>
480ef0fe 351section.</P>
ef416fc2 352
353
480ef0fe 354<H2 CLASS="title"><A NAME="Location">Location</A></H2>
ef416fc2 355
480ef0fe 356<H3>Examples</H3>
ef416fc2 357
358<PRE CLASS="command">
480ef0fe 359&lt;Printer name&gt;
360 ...
361 Location Building 3321
362&lt;/Printer&gt;
ef416fc2 363</PRE>
364
480ef0fe 365<H3>Description</H3>
ef416fc2 366
367<P>The <CODE>Location</CODE> directive defines the string for the
368<VAR>printer-location</VAR> attribute. It is normally set using the
369<CODE>lpadmin(8)</CODE> command:</P>
370
371<PRE CLASS="command">
372<KBD>/usr/sbin/lpadmin -p printername -L "Building 3321"</KBD>
373</PRE>
374
375<P>This directive must appear inside a <A
376HREF="#Printer"><CODE>Printer</CODE></A> or <A
377HREF="#DefaultPrinter"><CODE>DefaultPrinter</CODE></A>
480ef0fe 378section.</P>
ef416fc2 379
380
480ef0fe 381<H2 CLASS="title"><SPAN CLASS="info">CUPS 1.2</SPAN><A NAME="OpPolicy">OpPolicy</A></H2>
ef416fc2 382
480ef0fe 383<H3>Examples</H3>
ef416fc2 384
385<PRE CLASS="command">
480ef0fe 386&lt;Printer name&gt;
387 ...
388 OpPolicy default
389&lt;/Printer&gt;
ef416fc2 390</PRE>
391
480ef0fe 392<H3>Description</H3>
ef416fc2 393
394<P>The <CODE>OpPolicy</CODE> directive sets the operation policy
395that is used for the printer. The <CODE>lpadmin(8)</CODE> command
396sets the current operation policy:</P>
397
398<PRE CLASS="command">
399<KBD>/usr/sbin/lpadmin -p printername -o printer-op-policy=default</KBD>
400</PRE>
401
402<P>The default policy is named "default". All policies correspond
403to those defined using the <VAR>cupsd.conf</VAR> <A
4744bd90 404HREF="ref-cupsd-conf.html#Policy"><CODE>Policy</CODE></A>
480ef0fe 405section.</P>
ef416fc2 406
407<P>This directive must appear inside a <A
408HREF="#Printer"><CODE>Printer</CODE></A> or <A
409HREF="#DefaultPrinter"><CODE>DefaultPrinter</CODE></A>
480ef0fe 410section.</P>
ef416fc2 411
412
480ef0fe 413<H2 CLASS="title"><SPAN CLASS="info">CUPS 1.2</SPAN><A NAME="Option">Option</A></H2>
ef416fc2 414
480ef0fe 415<H3>Examples</H3>
ef416fc2 416
417<PRE CLASS="command">
480ef0fe 418&lt;Printer name&gt;
419 ...
420 Option name value
421 Option scaling 100
422 Option page-left 72
423&lt;/Printer&gt;
ef416fc2 424</PRE>
425
480ef0fe 426<H3>Description</H3>
427
428<P>The <CODE>Option</CODE> directive specifies a default job
429template attribute value. It is mapped to
430<CODE>name-default</CODE> in the printer attributes and applied
431to jobs as <CODE>name</CODE>.</P>
432
433<P>This directive must appear inside a <A
434HREF="#Printer"><CODE>Printer</CODE></A> or <A
435HREF="#DefaultPrinter"><CODE>DefaultPrinter</CODE></A>
436section.</P>
437
438
439<H2 CLASS="title"><A NAME="PageLimit">PageLimit</A></H2>
440
441<H3>Examples</H3>
442
443<PRE CLASS="command">
444&lt;Printer name&gt;
445 ...
446 PageLimit 1234
447&lt;/Printer&gt;
448</PRE>
449
450<H3>Description</H3>
ef416fc2 451
452<P>The <CODE>PageLimit</CODE> directive defines the value of the
453<VAR>job-page-limit</VAR> attribute. It can be set using the
454<CODE>lpadmin(8)</CODE> command:</P>
455
456<PRE CLASS="command">
457<KBD>/usr/sbin/lpadmin -p printername -o job-page-limit=1234</KBD>
458</PRE>
459
460<P>This directive must appear inside a <A
461HREF="#Printer"><CODE>Printer</CODE></A> or <A
462HREF="#DefaultPrinter"><CODE>DefaultPrinter</CODE></A>
480ef0fe 463section.</P>
ef416fc2 464
465
480ef0fe 466<H2 CLASS="title"><SPAN CLASS="info">CUPS 1.2</SPAN><A NAME="PortMonitor">PortMonitor</A></H2>
ef416fc2 467
480ef0fe 468<H3>Examples</H3>
ef416fc2 469
470<PRE CLASS="command">
480ef0fe 471&lt;Printer name&gt;
472 ...
473 PortMonitor bcp
474&lt;/Printer&gt;
ef416fc2 475</PRE>
476
480ef0fe 477<H3>Description</H3>
ef416fc2 478
479<P>The <CODE>PortMonitor</CODE> directive sets the filter program that
480is used for every print job, typically to encode or package the print
481data in a format acceptable for a particular printer interface. It is
482set using the <CODE>lpadmin(8)</CODE> command:</P>
483
484<PRE CLASS="command">
485<KBD>/usr/sbin/lpadmin -p printername -o port-monitor=tbcp</KBD>
486</PRE>
487
488<P>The following standard port monitors are included with CUPS:</P>
489
490<UL>
491
492 <LI><CODE>bcp</CODE> - Encode PostScript print data using
493 the Adobe Binary Control Protocol (BCP)</LI>
494
495 <LI><CODE>none</CODE> - Do not use a port monitor</LI>
496
497 <LI><CODE>tbcp</CODE> - Encode PostScript print data
498 using the Adobe Tagged Binary Control Protocol
499 (TBCP)</LI>
500
501</UL>
502
503<P>This directive must appear inside a <A
504HREF="#Printer"><CODE>Printer</CODE></A> or <A
505HREF="#DefaultPrinter"><CODE>DefaultPrinter</CODE></A>
480ef0fe 506section.</P>
ef416fc2 507
508
58dc1933
MS
509<H2 CLASS="title"><SPAN CLASS="info">CUPS 1.4</SPAN><A NAME="PreFilter">PreFilter</A></H2>
510
511<H3>Examples</H3>
512
513<PRE CLASS="command">
514&lt;Printer name&gt;
515 ...
516 PreFilter mime/type 100 program
517&lt;/Printer&gt;
518</PRE>
519
520<H3>Description</H3>
521
522<P>The <CODE>PreFilter</CODE> directive lists a single pre-filter program as
523defined in the printer's PPD file.</P>
524
525<P>This directive must appear inside a
526<A HREF="#Printer"><CODE>Printer</CODE></A> or
527<A HREF="#DefaultPrinter"><CODE>DefaultPrinter</CODE></A> section.</P>
528
529
480ef0fe 530<H2 CLASS="title"><A NAME="Printer">Printer</A></H2>
ef416fc2 531
480ef0fe 532<H3>Examples</H3>
ef416fc2 533
534<PRE CLASS="command">
535&lt;Printer name&gt;
480ef0fe 536 ...
ef416fc2 537&lt;/Printer&gt;
538</PRE>
539
480ef0fe 540<H3>Description</H3>
ef416fc2 541
542<P>The <CODE>Printer</CODE> directive begins a printer
543definition. Printers are added using the <CODE>lpadmin(8)</CODE>
544command:
545
546<PRE CLASS="command">
547<KBD>/usr/sbin/lpadmin -p printername ...</KBD>
548</PRE>
549
550
58dc1933
MS
551<H2 CLASS="title"><SPAN CLASS="info">CUPS 1.4</SPAN><A NAME="Product">Product</A></H2>
552
553<H3>Examples</H3>
554
555<PRE CLASS="command">
556&lt;Printer name&gt;
557 ...
558 Product Acme PaperWriter
559&lt;/Printer&gt;
560</PRE>
561
562<H3>Description</H3>
563
564<P>The <CODE>Product</CODE> directive defines the main product string from the
565printer's PPD file and is used when advertising the queue via DNS-SD.</P>
566
567<P>This directive must appear inside a
568<A HREF="#Printer"><CODE>Printer</CODE></A> or
569<A HREF="#DefaultPrinter"><CODE>DefaultPrinter</CODE></A> section.</P>
570
571
480ef0fe 572<H2 CLASS="title"><A NAME="QuotaPeriod">QuotaPeriod</A></H2>
ef416fc2 573
480ef0fe 574<H3>Examples</H3>
ef416fc2 575
576<PRE CLASS="command">
480ef0fe 577&lt;Printer name&gt;
578 ...
579 QuotaPeriod 604800
580&lt;/Printer&gt;
ef416fc2 581</PRE>
582
480ef0fe 583<H3>Description</H3>
ef416fc2 584
585<P>The <CODE>QuotaPeriod</CODE> directive defines the value of
586the <VAR>job-quota-period</VAR> attribute. Typical values are
58786400 (1 day), 604800 (1 week), 2592000 (1 month), and 31536000
588(1 year). It is set using the <CODE>lpadmin(8)</CODE>
589command:</P>
590
591<PRE CLASS="command">
592<KBD>/usr/sbin/lpadmin -p printername -o job-quota-period=604800</KBD>
593</PRE>
594
595<P>This directive must appear inside a <A
596HREF="#Printer"><CODE>Printer</CODE></A> or <A
597HREF="#DefaultPrinter"><CODE>DefaultPrinter</CODE></A>
480ef0fe 598section.</P>
ef416fc2 599
600
480ef0fe 601<H2 CLASS="title"><SPAN CLASS="info">CUPS 1.2</SPAN><A NAME="Shared">Shared</A></H2>
ef416fc2 602
480ef0fe 603<H3>Examples</H3>
ef416fc2 604
605<PRE CLASS="command">
480ef0fe 606&lt;Printer name&gt;
607 ...
608 Shared yes
609&lt;/Printer&gt;
ef416fc2 610</PRE>
611
480ef0fe 612<H3>Description</H3>
ef416fc2 613
614<P>The <CODE>Shared</CODE> directive defines the initial value of
615the <VAR>printer-is-shared</VAR> attribute. The strings
616<VAR>yes</VAR> and <VAR>no</VAR> correspond to the true and false
617values, respectively. The <CODE>lpadmin(8)</CODE> command sets
618the current state:</P>
619
620<PRE CLASS="command">
621<KBD>/usr/sbin/lpadmin -p printername -o printer-is-shared=true</KBD>
622</PRE>
623
624<P>This directive must appear inside a <A
625HREF="#Printer"><CODE>Printer</CODE></A> or <A
626HREF="#DefaultPrinter"><CODE>DefaultPrinter</CODE></A>
480ef0fe 627section.</P>
ef416fc2 628
629
480ef0fe 630<H2 CLASS="title"><A NAME="State">State</A></H2>
ef416fc2 631
480ef0fe 632<H3>Examples</H3>
ef416fc2 633
634<PRE CLASS="command">
480ef0fe 635&lt;Printer name&gt;
636 ...
637 State idle
638&lt;/Printer&gt;
ef416fc2 639</PRE>
640
480ef0fe 641<H3>Description</H3>
ef416fc2 642
643<P>The <CODE>State</CODE> directive defines the initial value of
644the <VAR>printer-state</VAR> attribute. The strings
645<VAR>idle</VAR> and <VAR>stopped</VAR> correspond to the IPP
646enumeration values 3 and 5, respectively. The
647<CODE>cupsenable(8)</CODE> and <CODE>cupsdisable(8)</CODE>
648commands set the current state:</P>
649
650<PRE CLASS="command">
651<KBD>/usr/sbin/cupsenable printername</KBD>
652<KBD>/usr/sbin/cupsdisable printername</KBD>
653</PRE>
654
655<P>This directive must appear inside a <A
656HREF="#Printer"><CODE>Printer</CODE></A> or <A
657HREF="#DefaultPrinter"><CODE>DefaultPrinter</CODE></A>
480ef0fe 658section.</P>
ef416fc2 659
660
480ef0fe 661<H2 CLASS="title"><A NAME="StateMessage">StateMessage</A></H2>
ef416fc2 662
480ef0fe 663<H3>Examples</H3>
ef416fc2 664
665<PRE CLASS="command">
480ef0fe 666&lt;Printer name&gt;
667 ...
668 StateMessage Ready to print.
669&lt;/Printer&gt;
ef416fc2 670</PRE>
671
480ef0fe 672<H3>Description</H3>
ef416fc2 673
674<P>The <CODE>StateMessage</CODE> directive defines the initial
675string for the <VAR>printer-state-message</VAR> attribute. The
676following are some example messages:</P>
677
678<PRE CLASS="command">
679StateMessage Connected to host_name...
680StateMessage Connecting to printer_queue on port port_number...
681StateMessage Network host host_name is busy; will retry in 30 seconds...
682StateMessage Printer busy; will retry in 10 seconds...
683StateMessage Printer is busy; retrying print job...
684StateMessage Print file accepted - job ID id_number.
685StateMessage Ready to print.
686StateMessage Waiting for job to complete
687</PRE>
688
689<P>This directive must appear inside a <A
690HREF="#Printer"><CODE>Printer</CODE></A> or <A
691HREF="#DefaultPrinter"><CODE>DefaultPrinter</CODE></A>
480ef0fe 692section.</P>
ef416fc2 693
694
480ef0fe 695<H2 CLASS="title"><SPAN CLASS="info">CUPS 1.2</SPAN><A NAME="StateTime">StateTime</A></H2>
ef416fc2 696
480ef0fe 697<H3>Examples</H3>
ef416fc2 698
699<PRE CLASS="command">
480ef0fe 700&lt;Printer name&gt;
701 ...
702 StateTime 1133542425
703&lt;/Printer&gt;
ef416fc2 704</PRE>
705
480ef0fe 706<H3>Description</H3>
ef416fc2 707
708<P>The <CODE>StateTime</CODE> directive defines the UNIX time
709(seconds since Jan 1, 1970) for the last state change of the
710queue. It is mapped to the <VAR>printer-state-change-time</VAR>
711attribute.</P>
712
713<P>This directive must appear inside a <A
714HREF="#Printer"><CODE>Printer</CODE></A> or <A
715HREF="#DefaultPrinter"><CODE>DefaultPrinter</CODE></A>
480ef0fe 716section.</P>
ef416fc2 717
718
719</BODY>
720</HTML>