LPSTAT(1) (Line Printer Spooling Utilities) LPSTAT(1)
NAME
lpstat - print information about the status of the LP print
service
SYNOPSIS
lpstat [options]
DESCRIPTION
lpstat prints information about the current status of the LP
print service.
If no options are given, then lpstat prints the status of
all requests made to lp(1) by users. Any arguments that are
not options are assumed to be request-ids (as returned by
lp), printers, or printer classes. lpstat prints the status
of such requests, printers, or printer classes. Options may
appear in any order and may be repeated and intermixed with
other arguments. Some of the keyletters below may be
followed by an optional list that can be in one of two
forms: a list of items separated from one another by a
comma, or a list of items enclosed in double quotes and
separated from one another by a comma and/or one or more
spaces. For example:
-u "user1, user2, user3"
Specifying "all" after any keyletters that take "list" as an
argument causes all information relevant to the keyletter to
be printed. For example, the command
lpstat -o all
prints the status of all output requests.
-a [list] Display acceptance status (with respect to lp)
of destinations for requests (see accept(1M)).
List is a list of intermixed printer names and
class names; the default is all.
-c [list] Display class names and their members. List is
Page 1 May 1989
LPSTAT(1) (Line Printer Spooling Utilities) LPSTAT(1)
a list of class names; the default is all.
-d Display the system default destination for lp.
-f [list] [-l]
Display a verification that the forms in list
are recognized by the LP print service. List
is a list of forms; the default is all. The -l
option will list the form descriptions.
-o [list] [-l]
Display the status of output requests. List is
a list of intermixed printer names, class
names, and request-ids; the default is all.
The -l option gives a more detailed status of
the request.
-p [list] [-D] [-l]
Display the status of printers named in list.
List is a list of printers; the default is all.
If the -D option is given, a brief description
is printed for each printer in list. If the -l
option is given, a full description of each
printer's configuration is given, including the
form mounted, the acceptable content and
printer types, a printer description, the
interface used, and so on.
-r Display the status of the LP request scheduler.
-s Display a status summary, including the system
default destination, a list of class names and
their members, a list of printers and their
associated devices, a list of all forms
currently mounted, and a list of all recognized
character sets and print wheels.
-S [list] [-l]
Display a verification that the character sets
or the print wheels specified in list are
Page 2 May 1989
LPSTAT(1) (Line Printer Spooling Utilities) LPSTAT(1)
recognized by the LP print service. Items in
list can be character sets or print wheels; the
default for the list is all. If the -l option
is given, each line is appended by a list of
printers that can handle the print wheel or
character set. The list also shows whether the
print wheel or character set is mounted or
specifies the built-in character set into which
it maps.
-t Display all status information.
-u [list] Display the status of output requests for
users. List is a list of login names; the
default is all.
-v [list] Display the names of printers and the path
names of the devices associated with them.
List is a list of printer names; the default is
all.
FILES
/usr/spool/lp/*
SEE ALSO
enable(1), lp(1).
Page 3 May 1989