System Administration Guide

How to Check the Status of Print Requests

  1. Log in on any system on the network.

  2. Check the status of printers and print requests by using the lpstat command.

    Only the most commonly used options are shown here. See the lpstat(1) man page for other valid options.


    $ lpstat -o [list] | -u [user-list]
    -o list
    

    Shows the status of print requests on a specific printer. list can be one or more printer names, printer class names, or print request IDs.

    You can specify multiple printer names, class names, and IDs for list. Use a space or a comma to separate values. If you use spaces, enclose the list of values in quotes.

    If you don't specify list, the status of print requests to all printers is displayed.

    -u user-list
    

    Shows the status of print requests for a specific user. user-list can be one or more user names.

    You can specify multiple users with this command. Use a space or a comma to separate user names. If you use spaces, enclose the list of names in quotes. 

    If you don't specify user-list, the status of print requests for all users is displayed.

    When used to check the status of print requests, the lpstat command displays one line for each print request. From left to right, the line shows the request ID, the user, the output size in bytes, the date and time of the request, and information about the request, such as "being filtered."

Examples--Checking the Status of Print Requests

In the following example, the command shows that user fred has one print request queued to the printer luna.


$ lpstat
luna-1    fred     1261    Mar 12 17:34

In the following example, the command shows that the user paul currently has no print requests in queue.


$ lpstat -u paul

In the following example, the command shows that there are two print requests on the printer moon.


$ lpstat -o moon
moon-78    root     1024   Jan 14 09:07
moon-79    root     1024   Jan 14 09:08