]> git.ipfire.org Git - thirdparty/cups.git/blame - man/lpstat.man
Merge pull request #5112 from paulmenzel/remove-libgcrypt-detection
[thirdparty/cups.git] / man / lpstat.man
CommitLineData
ef416fc2 1.\"
27e0d6f8 2.\" lpstat man page for CUPS.
ef416fc2 3.\"
4b17d76f 4.\" Copyright 2007-2017 by Apple Inc.
27e0d6f8 5.\" Copyright 1997-2006 by Easy Software Products.
ef416fc2 6.\"
27e0d6f8
MS
7.\" These coded instructions, statements, and computer programs are the
8.\" property of Apple Inc. and are protected by Federal copyright
9.\" law. Distribution and use rights are outlined in the file "LICENSE.txt"
10.\" which should have been included with this file. If this file is
11.\" file is missing or damaged, see the license at "http://www.cups.org/".
ef416fc2 12.\"
4b17d76f 13.TH lpstat 1 "CUPS" "26 May 2017" "Apple Inc."
ef416fc2 14.SH NAME
15lpstat \- print cups status information
16.SH SYNOPSIS
17.B lpstat
27e0d6f8
MS
18[
19.B \-E
20] [
21.B \-H
22] [
23.B \-U
fa73b229 24.I username
27e0d6f8
MS
25] [
26\fB\-h \fIhostname\fR[\fB:\fIport\fR]
27] [
28.B \-l
29] [
30.B \-W
ef416fc2 31.I which-jobs
27e0d6f8
MS
32] [
33.B \-a
34[
ef416fc2 35.I destination(s)
27e0d6f8
MS
36] ] [
37.B \-c
38[
ef416fc2 39.I class(es)
27e0d6f8
MS
40] ] [
41.B \-d
42] [
4b17d76f
MS
43.B \-e
44] [
27e0d6f8
MS
45.B \-o
46[
ef416fc2 47.I destination(s)
27e0d6f8
MS
48] ] [
49.B \-p
50[
ef416fc2 51.I printer(s)
27e0d6f8
MS
52] ] [
53.B \-r
54] [
55.B \-R
56] [
57.B \-s
58] [
59.B \-t
60] [
61.B \-u
62[
ef416fc2 63.I user(s)
27e0d6f8
MS
64] ] [
65.B \-v
66[
ef416fc2 67.I printer(s)
68] ]
69.SH DESCRIPTION
27e0d6f8
MS
70\fBlpstat\fR displays status information about the current classes, jobs, and printers.
71When run with no arguments, \fBlpstat\fR will list active jobs queued by the current user.
bd7854cb 72.SH OPTIONS
27e0d6f8 73The \fBlpstat\fR command supports the following options:
ef416fc2 74.TP 5
27e0d6f8 75.B \-E
ef416fc2 76Forces encryption when connecting to the server.
77.TP 5
27e0d6f8 78.B \-H
49d87452
MS
79Shows the server hostname and port.
80.TP 5
27e0d6f8 81.B \-R
bd7854cb 82Shows the ranking of print jobs.
83.TP 5
27e0d6f8 84\fB\-U \fIusername\fR
bd7854cb 85Specifies an alternate username.
86.TP 5
27e0d6f8
MS
87\fB\-W \fIwhich-jobs\fR
88Specifies which jobs to show, "completed" or "not-completed" (the default).
89This option \fImust\fR appear before the \fI-o\fR option and/or any printer names, otherwise the default ("not-completed") value will be used in the request to the scheduler.
90.TP 5
91\fB\-a \fR[\fIprinter(s)\fR]
92Shows the accepting state of printer queues.
93If no printers are specified then all printers are listed.
94.TP 5
95\fB\-c \fR[\fIclass(es)\fR]
bd7854cb 96Shows the printer classes and the printers that belong to them.
97If no classes are specified then all classes are listed.
ef416fc2 98.TP 5
27e0d6f8 99.B \-d
ef416fc2 100Shows the current default destination.
101.TP 5
4b17d76f
MS
102.B \-e
103Shows all available destinations on the local network.
104.TP 5
27e0d6f8 105\fB\-h \fIserver\fR[\fB:\fIport\fR]
bd7854cb 106Specifies an alternate server.
ef416fc2 107.TP 5
27e0d6f8 108.B \-l
ef416fc2 109Shows a long listing of printers, classes, or jobs.
110.TP 5
27e0d6f8
MS
111\fB\-o \fR[\fIdestination(s)\fR]
112Shows the jobs queued on the specified destinations.
113If no destinations are specified all jobs are shown.
ef416fc2 114.TP 5
27e0d6f8
MS
115\fB\-p \fR[\fIprinter(s)\fR]
116Shows the printers and whether they are enabled for printing.
117If no printers are specified then all printers are listed.
ef416fc2 118.TP 5
27e0d6f8 119.B \-r
bd7854cb 120Shows whether the CUPS server is running.
ef416fc2 121.TP 5
27e0d6f8
MS
122.B \-s
123Shows a status summary, including the default destination, a list of classes and their member printers, and a list of printers and their associated devices.
124This is equivalent to using the \fI\-d\fR, \fI\-c\fR, and \fI\-v\fR options.
125.TP 5
126.B \-t
127Shows all status information.
128This is equivalent to using the \fI\-r\fR, \fI\-d\fR, \fI\-c\fR, \fI\-v\fR, \fI\-a\fR, \fI\-p\fR, and \fI\-o\fR options.
129.TP 5
130\fB\-u \fR[\fIuser(s)\fR]
131Shows a list of print jobs queued by the specified users.
132If no users are specified, lists the jobs queued by the current user.
133.TP 5
134\fB\-v \fR[\fIprinter(s)\fR]
135Shows the printers and what device they are attached to.
136If no printers are specified then all printers are listed.
137.SH CONFORMING TO
138Unlike the System V printing system, CUPS allows printer names to contain any printable character except SPACE, TAB, "/", and "#".
bd7854cb 139Also, printer and class names are \fInot\fR case-sensitive.
ef416fc2 140.LP
4b17d76f 141The \fI\-h\fR, \fI-e\fR, \fI\-E\fR, \fI\-U\fR, and \fI\-W\fR options are unique to CUPS.
ef416fc2 142.LP
27e0d6f8 143The Solaris \fI\-f\fR, \fI\-P\fR, and \fI\-S\fR options are silently ignored.
ef416fc2 144.SH SEE ALSO
27e0d6f8
MS
145.BR cancel (1),
146.BR lp (1),
147.BR lpq (1),
148.BR lpr (1),
149.BR lprm (1),
150CUPS Online Help (http://localhost:631/help)
ef416fc2 151.SH COPYRIGHT
bd5a2f28 152Copyright \[co] 2007-2017 by Apple Inc.