System Administration Guide: Printing

ProcedureHow to Check the Status of Printers

  1. Log in to any system on the network.

  2. Check the status of printers.

    Only the most commonly used options are shown here. For other options, see thelpstat(1) man page.


    $ lpstat [-d] [-p] printer-name [-D] [-l] [-t]
    -d

    Shows the system's default printer.

    -p printer-name

    Shows if a printer is active or idle, when the printer was enabled or disabled, and whether the printer is accepting print requests.

    You can specify multiple printer names with this command. Use a space or a comma to separate printer names. If you use spaces, enclose the list of printer names in quotation marks. If you don't specify printer-name, the status of all printers is displayed.

    -D

    Shows the description of the specified printer-name.

    -l

    Shows the characteristics of the specified printer-name.

    -t

    Shows status information about the LP print service, including the status of all printers, such as whether they are active and whether they are accepting print requests.


Example 8–1 Checking the Status of Printers

The following example shows how to display the system's default printer.


$ lpstat -d
system default destination: luna

The following example shows how to display the status of the printer luna.


$ lpstat -p luna
printer luna is idle. enabled since Jul 12 11:17 2001. available.

The following example shows how to display the description of the printers asteroid and luna.


$ lpstat -p "asteroid luna" -D
printer asteroid faulted. enabled since Jan 5 11:35 2004. available.
unable to print: paper misfeed jam

Description: Printer by break room
printer luna is idle. enabled since Jan 5 11:36 2004. available.
Description: Printer by server room.

The following example shows how to display the characteristics of the printer luna.


$ lpstat -p luna -l
printer luna is idle. enabled since Thu Jul 12 15:02:32 PM PDT
        Form mounted: 
        Content types: postscript
        Printer types: PS
        Description:
        Connection: direct
        Interface: /usr/lib/lp/model/standard
				PPD: none
        After fault: continue
        Users allowed:
                (all)
        Forms allowed:
                (none)
        Banner not required
        Character sets:
							 (none)
				Default pitch:
        Default page size: 80 wide 66 long
        Default port settings: