Open System Services Shell and Utilities Reference Manual (G06.28+, H06.05+)

lpstat(1) OSS Shell and Utilities Reference Manual
-v [list] Displays the names of spooler locations and associated devices.
The list argument is a list of printer aliases. If no value is specied for list, the infor-
mation displayed is for the rst printer alias (usually named default) in the users
printcap le or, if no printcap le exists, in the /etc/printcap le.
DESCRIPTION
The lpstat command displays information about the current status of the online accessible printer
devices, related processes, and the status of spooler job requests.
Jobs can be in one of four states: OPEN, READY, PRINT, or HOLD. When a job request is in
the process of being copied to the spooling area, it is in the OPEN state. When the job reaches
the spooler queue it is in the READY state. When a printer accepts the job from the spooler
queue, the job is in the PRINT state. If errors prevent a job from being copied to the spooler, the
job is in the HOLD state.
Status information displayed by the lpstat command can also be displayed by the Guardian
spooler utilities PERUSE and SPOOLCOM. These two Guardian utilities can be used to display
status information on jobs that are initiated using the lp command.
Use on Guardian Objects
The lpstat command displays status information on jobs that are initiated in the Guardian
environment.
Arguments
ID A job request identication number returned by the lp command. ID can be a value
from 1 through 4095.
Environment Variables
LANG Provides a default value for the internationalization variables that are unset or null. If
LANG is unset or null, the corresponding value from the implementation-speci
c
default locale is used. If any of the internationalization variables contain an invalid
setting, the lpstat command behaves as if none of the variables have been dened.
LC_ALL
When set with a nonempty string, overrides the values of all other internationalization
variables.
LC_CTYPE
Determines the locale for the interpretation of sequences of bytes of text data as char-
acters (for example, single-byte as opposed to multibyte characters in arguments and
input les).
LC_MESSAGES
Determines the locale to be used to affect the format and contents of diagnostic mes-
sages written to the standard error le and informative messages written to the standard
output le.
LC_TIME
Determines the format and contents of date and time strings displayed in the lpstat
command banner page.
NLSPATH
Determines the location of message catalogs for processing the LC_MESSAGES vari-
able.
576 Hewlett-Packard Company 527188-007