print cups status information
lpstat [ -E ] [ -H ] [ -U username ] [ -h hostname [ : port ] ] [ -l ] [ -W which-jobs ] [ -a [ destination(s) ] ] [ -c [ class(es) ] ] [ -d ] [ -e ] [ -o [ destination(s) ] ] [ -p [ printer(s) ] ] [ -r ] [ -R ] [ -s ] [ -t ] [ -u [ user(s) ] ] [ -v [ printer(s) ] ]
lpstat displays status information about the current classes, jobs, and printers. When run with no arguments, lpstat will list active jobs queued by the current user.
The lpstat command supports the following options:
5 -E Forces encryption when connecting to the server.
5 -H Shows the server hostname and port.
5 -R Shows the ranking of print jobs.
5 -U username Specifies an alternate username.
5 -W which-jobs Specifies which jobs to show, "completed" or "not-completed" (the default). This option must appear before the -o option and/or any printer names, otherwise the default ("not-completed") value will be used in the request to the scheduler.
5 -a [ printer(s) ] Shows the accepting state of printer queues. If no printers are specified then all printers are listed.
5 -c [ class(es) ] Shows the printer classes and the printers that belong to them. If no classes are specified then all classes are listed.
5 -d Shows the current default destination.
5 -e Shows all available destinations on the local network.
5 -h server [ : port ] Specifies an alternate server.
5 -l Shows a long listing of printers, classes, or jobs.
5 -o [ destination(s) ] Shows the jobs queued on the specified destinations. If no destinations are specified all jobs are shown.
5 -p [ printer(s) ] Shows the printers and whether they are enabled for printing. If no printers are specified then all printers are listed.
5 -r Shows whether the CUPS server is running.
5 -s 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. This is equivalent to using the -d , -c ,and -v options.
5 -t Shows all status information. This is equivalent to using the -r , -d , -c , -v , -a , -p ,and -o options.
5 -u [ user(s) ] Shows a list of print jobs queued by the specified users. If no users are specified, lists the jobs queued by the current user.
5 -v [ printer(s) ] Shows the printers and what device they are attached to. If no printers are specified then all printers are listed.
Unlike the System V printing system, CUPS allows printer names to contain any printable character except SPACE, TAB, "/", and "#". Also, printer and class names are not case-sensitive.
The -h , -e , -E , -U ,and -W options are unique to CUPS.
The Solaris -f , -P ,and -S options are silently ignored.
Copyright co] 2007-2019 by Apple Inc.