Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ lpstat(C) — OpenDesktop 3.0.0

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

enable(C)

lp(C)


 lpstat(C)                       19 June 1992                       lpstat(C)


 Name

    lpstat - print information about status of [remote] lp print service

 Syntax

    lpstat options

 Description

    lpstat prints information about the current status of the lp print ser-
    vice.

    If no options are given, lpstat prints the status of all local requests
    made to lp(C) by the 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 inter-
    mixed 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 local information relevant to the keyletter to be printed.
    For example, the command lpstat -oall prints the status of all local out-
    put requests.

    For remote printing, lpstat only supports -o, and -v options.

    The arguments to lpstat are as follows:

    -a [list]   Print acceptance status (with respect to lp) of destinations
                for requests (see accept(ADM)).  list is a list of intermixed
                printer names and class names; the default is all.

    -c [list]   Print class names and their members.  list is a list of class
                names; the default is all.

    -d          Print the system default destination for lp.

    -f [list] [-l]
                Print a verification that the forms in form-list are recog-
                nized by the lp print service.  The -l option will list the
                form descriptions.

    -o [list] [-l]
                Print 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]
                Print the status of printers named in list.  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 descrip-
                tion, the interface used, and so on.

    -r          Print the status of the lp request scheduler.

    -s          Print a status summary, including the system default destina-
                tion, 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]
                Print a verification that the character sets or the print
                wheels specified in list are recognized by the lp print ser-
                vice.  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 speci-
                fies the built-in character set into which it maps.

    -t          Print all status information.

    -u [list]   Print status of output requests for users.  list is a list of
                login names.  The default is all.

    -v [list]   Print 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.


 File

    /usr/spool/lp/*
    /usr/spool/lpd/*
    /etc/printcap/*
    /etc/hosts.equiv/*

 See also

    enable(C), lp(C)

 Standards conformance

    lpstat is conformant with:

    AT&T SVID Issue 2;
    and X/Open Portability Guide, Issue 3, 1989.


Typewritten Software • bear@typewritten.org • Edmonds, WA 98026