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