1lpstat(1)                        OpenPrinting                        lpstat(1)
2
3
4

NAME

6       lpstat - print cups status information
7

SYNOPSIS

9       lpstat [ -h hostname[:port] ] [ -E ] [ -H ] [ -U username ] [ -l ] [ -W
10       which-jobs ] [ -a [ destination(s) ] ] [ -c [ class(es) ] ] [ -d ] [ -e
11       ]  [ -o [ destination(s) ] ] [ -p [ printer(s) ] ] [ -r ] [ -R ] [ -s ]
12       [ -t ] [ -u [ user(s) ] ] [ -v [ printer(s) ] ]
13

DESCRIPTION

15       lpstat displays status information about the current classes, jobs, and
16       printers.   When  run  with  no arguments, lpstat will list active jobs
17       queued by the current user.
18

OPTIONS

20       The lpstat command supports the following options:
21
22       -E   Forces encryption when connecting to the server.
23
24       -H   Shows the server hostname and port.
25
26       -R   Shows the ranking of print jobs.
27
28       -U username
29            Specifies an alternate username.
30
31       -W which-jobs
32            Specifies which jobs to show, "completed" or "not-completed"  (the
33            default).  This option must appear before the -o option and/or any
34            printer names, otherwise the default ("not-completed") value  will
35            be used in the request to the scheduler.
36
37       -a [printer(s)]
38            Shows  the  accepting state of printer queues.  If no printers are
39            specified then all printers are listed.
40
41       -c [class(es)]
42            Shows the printer classes and the printers that  belong  to  them.
43            If no classes are specified then all classes are listed.
44
45       -d   Shows the current default destination.
46
47       -e   Shows all available destinations on the local network.
48
49       -h server[:port]
50            Specifies  an  alternate server.  Note: This option must occur be‐
51            fore all others.
52
53       -l   Shows a long listing of printers, classes, or jobs.
54
55       -o [destination(s)]
56            Shows the jobs queued on the specified destinations.  If no desti‐
57            nations are specified all jobs are shown.
58
59       -p [printer(s)]
60            Shows  the printers and whether they are enabled for printing.  If
61            no printers are specified then all printers are listed.
62
63       -r   Shows whether the CUPS server is running.
64
65       -s   Shows a status summary, including the default destination, a  list
66            of  classes  and their member printers, and a list of printers and
67            their associated devices.  This is equivalent to using the -d, -c,
68            and -v options.
69
70       -t   Shows all status information.  This is equivalent to using the -r,
71            -d, -c, -v, -a, -p, and -o options.
72
73       -u [user(s)]
74            Shows a list of print jobs queued by the specified users.   If  no
75            users are specified, lists the jobs queued by the current user.
76
77       -v [printer(s)]
78            Shows  the  printers  and what device they are attached to.  If no
79            printers are specified then all printers are listed.
80

CONFORMING TO

82       Unlike the System V printing system, CUPS allows printer names to  con‐
83       tain  any  printable  character except SPACE, TAB, "/", and "#".  Also,
84       printer and class names are not case-sensitive.
85
86       The -h, -e, -E, -U, and -W options are unique to CUPS.
87
88       The Solaris -f, -P, and -S options are silently ignored.
89

SEE ALSO

91       cancel(1), lp(1), lpq(1), lpr(1), lprm(1), CUPS Online Help (http://lo
92       calhost:631/help)
93
95       Copyright © 2021-2023 by OpenPrinting.
96
97
98
992022-05-02                           CUPS                            lpstat(1)
Impressum