lpstat - print information about the status of the print service
lpstat [-d] [-r] [-R] [-s] [-t] [-a [list]] [-c [list]] [-f [list]] [-o [list]] [-p [list] [-D]] [-S [list]] [-u [login- ID -list]] [-v [list]] [-l level]
The lpstat utility displays information about the current status of the LP print service to standard output.
If no options are given, lpstat prints the status of all the user's print requests made by lp. See lp(1). Any arguments that are not options are assumed to be request-IDs as returned by lp. The lpstat command prints the status of such requests. options appears in any order and can be repeated and intermixed with other arguments. Some key letters can 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 separated from one another by spaces enclosed in quotes. For example:
example% lpstat -u "user1 user2 user3"
Specifying all after any key letter that takes list as an argument causes all information relevant to the key letter to be printed. For example, the command:
example% lpstat -o all
prints the status of all output requests.
The omission of a list following such key letters causes all information relevant to the key letter to be printed. For example, the command:
example% lpstat -o
prints the status of all output requests.
The print client commands locate destination information using the "printers" database in the name service switch. See nsswitch.conf(4), printers(4), and printers.conf(4) for details.
The following options are supported:
-a [list]
If the print queue is remote and IPP is in use, the information provided is very close to that reported for local queues. If the print queue is remote and IPP is not in use (the print server is older than Solaris 9, Update 6 or another RFC-1179-based print service), this option does not report any useful information.
-c [list]
If the print queue is remote and IPP is in use, the information provided is very close to that reported for local queues. If the print queue is remote and IPP is not in use (the print server is older than Solaris 9, Update 6 or another RFC-1179-based print service), this option does not report any useful information.
-d
-f[list] [-l]
If the print queue is remote and IPP is in use, the information provided is very close to that reported for local queues. If the print queue is remote and IPP is not in use (the print server is older than Solaris 9, Update 6 or another RFC-1179-based print service), this option does not report any useful information.
-l [level]
If the print queue is remote and IPP is in use, the information provided is very close to that reported for local queues. If the print queue is remote and IPP is not in use (the print server is older than Solaris 9, Update 6 or another RFC-1179-based print service), this option does not report any useful information.
-o [list]
Specify printer and class names using atomic, URI-style (scheme://endpoint), or POSIX-style (server:destination) names. See printers.conf(4) for more information.
-p [list] [-D]
-r
-R
-s
-S [list]
If the print queue is remote and IPP is in use, the information provided is very close to that reported for local queues. If the print queue is remote and IPP is not in use (the print server is older than Solaris 9, Update 6 or another RFC-1179-based print service), this option does not report any useful information.
-t
-u [login-ID-list]
login-ID
system_name!login-ID
system_name!all
all!login-ID
all
-v [list]
The following exit values are returned:
0
non-zero
/etc/printers.conf
$HOME/.printers
ou=printers
printers.conf.byname
printers.org_dir
See attributes(5) for descriptions of the following attributes:
|
cancel(1), lp(1), lpq(1B), lpr(1B), lprm(1B), nsswitch.conf(4), printers(4), printers.conf(4), attributes(5), standards(5)
For remote print queues, the BSD print protocol provides a very limited set of information. The Internet Print Protocol (IPP) is preferred.
When IPP is in use, the user is prompted for a passphrase if the remote print service is configured to require authentication.
Закладки на сайте Проследить за страницей |
Created 1996-2024 by Maxim Chirkov Добавить, Поддержать, Вебмастеру |