Computer Hope

Other Pages

Home
Site map
Computer help

Dictionary
News
Q&A
What's new

Tools

E-mail this page
Print Preview
Edit this page



 

Linux / Unix lpstat command

Quick links

About lpstat
Syntax
Examples
Related commands
Linux / Unix main page

About lpstat

Lists status of the LP print services.

Syntax

lpstat [ -d ] [ -r ] [ -R ] [ -s ] [ -t ] [ -a [ list] ] [ -c [ list ] ] [ -f [ list ] [ -l ] ] [ -o [ list ] ] [ -p [ list ] [ -D ] [ -l ] ] [ -S [ list ] [ -l ] ] [ -u [ login- ID -list ] ] [ -v [ list ] ]

-d Print the default destination for output requests.
-r Print the status of the LP request scheduler.
-R Print a number showing the position of each request in the print queue.
-s Print a status summary, including the status of the LP scheduler, the default destination, a list of printers and their associated devices, a list of the machines sharing print services, a list of all forms currently mounted, and a list of all recognized character sets and print wheels.
-t Print all status information. This includes all the information obtained with the -s option, plus the acceptance and idle/busy status of all printers.
-a [list] Reports whether print destinations are accepting requests. list is a list of intermixed printer names and class names. Applies to Solaris 2.6 Operating Environments.
-c [list] Print name of all classes and their members. list is a list of class names.  Applies to Solaris 2.6 Operating Environments.
-f [list] -l Print 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. Applies to Solaris 2.6 Operating Environments.
-o [list] Print the status of output requests. list is a list of intermixed printer names, class names, and request-IDs. The key letter -o may be omitted. Specify printer and class names using atomic, POSIX-style (server:destination), or Federated Naming Service (FNS) (.../service/printer/...) names.
-p [list] -D -l Print the status of printers. list is a list of printer names. If the -D option is given, a brief description is printed for each printer in list. If the -l option is given and the printer is on the local machine, a full description of each printer's configuration is returned, including the form mounted, the acceptable content and printer types, a printer description, and the interface used. Applies to Solaris 2.6 Operating Environments.
-S [list] [-l] Print a verification that the character sets or the print wheels specified in list are 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. Applies to Solaris 2.6 Operating Environments.
-u login -ID -list Print the status of output requests for users. The login-ID-list argument may include any or all of the following constructs: 

login-ID a user on any system

system_name!login-ID
a user on system system_name

system_name!all
all users on system system_name

all!login-ID
a user on all systems

all
all users on all systems

-v [list] Print the names of printers and the path names of the devices associated with them or remote system names for network printers. list is a list of printer names.

Examples

lpstat -u all - prints the status of all output requests.

Related commands

cancel
lp
lpq
lpr
lprm

 

Index

Category:
Linux / Unix

Companies:
Click here

Related Pages:

 

Resolved

Were you able to locate the answer to your questions?

Home - Computer help - Contact - Dictionary - Links
Link to Computer Hope - Bookmark Computer Hope