lpstat

lpstat

The lpstat program prints status information about the LP spool system. The lpstat runstring is as follows:

CI> lpstat [-option request_id] [-option request_id] ... [>[>]file]

Each parameter not starting with a dash (-) or greaterthan (>) must be a request ID. The status of that request is shown, in the same format as if –orequest_id" were given.

If >file is given, then lpstat's output is redirected to that file, overwriting an existing file. If

>>file is given, then lpstat's output is appended to an existing file. If neither of these are given, then lpstat prints its output to the scheduling terminal.

Many of the options listed below take an optional parameter named list. If given, this parameter may be either:

DA single word not containing blanks or commas. For example:-plj3

DA list of words separated by blanks or commas and enclosed in double quotes (””). For example:

-p”lj3, magiclj”

The description of each option below indicates what kind of names are expected in the list parameter. If the list parameter is given, only information pertaining to the given names is shown. If the list parameter is not given, information for all the valid names is shown. For example:

CI> lpstat -pdisplays information about all printers on the system.

Options

The options are:

-a[list]Display the acceptance status of destinations for requests, that is, whether new requests may be entered for the destinations. list is a list of printer names and/or class names. By default, all destinations are shown. An example listing is:

lj3 accepting requests since Mar 4 2:38 pm default priority : 0lj4 not accepting requests since Mar 24 11:06 pm - down for repairsdefault priority : 0

Note that for remote printers, only the status of the printers on the local system is shown. The acceptance status of printers on remote hosts is unknown. A remote printer that accepts requests will accept submissions on the local host for transfer to the remote host. However, the acceptance status of the printer on the remote host may be to reject submissions. In this case, the local host will place the remote printer in retry status with reason •remote host rejects submissions".

LP Spool System 231