3 <!-- SECTION: Man Pages -->
5 <link rel=
"stylesheet" type=
"text/css" href=
"../cups-printable.css">
6 <title>lpstat(
1)
</title>
9 <h1 class=
"title">lpstat(
1)
</h1>
10 <h2 class=
"title"><a name=
"NAME">Name
</a></h2>
11 lpstat - print cups status information
12 <h2 class=
"title"><a name=
"SYNOPSIS">Synopsis
</a></h2>
22 <b>-h
</b><i>hostname
</i>[
<b>:
</b><i>port
</i>]
65 <h2 class=
"title"><a name=
"DESCRIPTION">Description
</a></h2>
66 <b>lpstat
</b> displays status information about the current classes, jobs, and printers.
67 When run with no arguments,
<b>lpstat
</b> will list active jobs queued by the current user.
68 <h2 class=
"title"><a name=
"OPTIONS">Options
</a></h2>
69 The
<b>lpstat
</b> command supports the following options:
72 <dd style=
"margin-left: 5.0em">Forces encryption when connecting to the server.
74 <dd style=
"margin-left: 5.0em">Shows the server hostname and port.
76 <dd style=
"margin-left: 5.0em">Shows the ranking of print jobs.
77 <dt><b>-U
</b><i>username
</i>
78 <dd style=
"margin-left: 5.0em">Specifies an alternate username.
79 <dt><b>-W
</b><i>which-jobs
</i>
80 <dd style=
"margin-left: 5.0em">Specifies which jobs to show,
"completed" or
"not-completed" (the default).
81 This option
<i>must
</i> appear before the
<i>-o
</i> option and/or any printer names, otherwise the default (
"not-completed") value will be used in the request to the scheduler.
82 <dt><b>-a
</b>[
<i>printer(s)
</i>]
83 <dd style=
"margin-left: 5.0em">Shows the accepting state of printer queues.
84 If no printers are specified then all printers are listed.
85 <dt><b>-c
</b>[
<i>class(es)
</i>]
86 <dd style=
"margin-left: 5.0em">Shows the printer classes and the printers that belong to them.
87 If no classes are specified then all classes are listed.
89 <dd style=
"margin-left: 5.0em">Shows the current default destination.
91 <dd style=
"margin-left: 5.0em">Shows all available destinations on the local network.
92 <dt><b>-h
</b><i>server
</i>[
<b>:
</b><i>port
</i>]
93 <dd style=
"margin-left: 5.0em">Specifies an alternate server.
95 <dd style=
"margin-left: 5.0em">Shows a long listing of printers, classes, or jobs.
96 <dt><b>-o
</b>[
<i>destination(s)
</i>]
97 <dd style=
"margin-left: 5.0em">Shows the jobs queued on the specified destinations.
98 If no destinations are specified all jobs are shown.
99 <dt><b>-p
</b>[
<i>printer(s)
</i>]
100 <dd style=
"margin-left: 5.0em">Shows the printers and whether they are enabled for printing.
101 If no printers are specified then all printers are listed.
103 <dd style=
"margin-left: 5.0em">Shows whether the CUPS server is running.
105 <dd style=
"margin-left: 5.0em">Shows a status summary, including the default destination, a list of classes and their member printers, and a list of printers and their associated devices.
106 This is equivalent to using the
<i>-d
</i>,
<i>-c
</i>, and
<i>-v
</i> options.
108 <dd style=
"margin-left: 5.0em">Shows all status information.
109 This is equivalent to using the
<i>-r
</i>,
<i>-d
</i>,
<i>-c
</i>,
<i>-v
</i>,
<i>-a
</i>,
<i>-p
</i>, and
<i>-o
</i> options.
110 <dt><b>-u
</b>[
<i>user(s)
</i>]
111 <dd style=
"margin-left: 5.0em">Shows a list of print jobs queued by the specified users.
112 If no users are specified, lists the jobs queued by the current user.
113 <dt><b>-v
</b>[
<i>printer(s)
</i>]
114 <dd style=
"margin-left: 5.0em">Shows the printers and what device they are attached to.
115 If no printers are specified then all printers are listed.
117 <h2 class=
"title"><a name=
"CONFORMING_TO">Conforming To
</a></h2>
118 Unlike the System V printing system, CUPS allows printer names to contain any printable character except SPACE, TAB,
"/", and
"#".
119 Also, printer and class names are
<i>not
</i> case-sensitive.
120 <p>The
<i>-h
</i>,
<i>-e
</i>,
<i>-E
</i>,
<i>-U
</i>, and
<i>-W
</i> options are unique to CUPS.
121 <p>The Solaris
<i>-f
</i>,
<i>-P
</i>, and
<i>-S
</i> options are silently ignored.
122 <h2 class=
"title"><a name=
"SEE_ALSO">See Also
</a></h2>
128 CUPS Online Help (
<a href=
"http://localhost:631/help">http://localhost:
631/help
</a>)
129 <h2 class=
"title"><a name=
"COPYRIGHT">Copyright
</a></h2>
130 Copyright
© 2007-
2019 by Apple Inc.