Displays line printer status information.
lpstat [ -aList ] [ -cList ] [ -d ] [ -oList ] [ -pList ] [ -r ] [ -s ] [ -t ] [ -uList ] [ -vList ]
The lpstat command displays information about the current status of the line printer.
If no flags are given, lpstat prints the status of all requests made by the lp command.
Flags can appear in any order and can be repeated. Some flags take an optional list as a parameter. Enter the list as either a list of items separated by commas, as in lpstat -aQueue1,Queue2 , or as a list of items enclosed in single or double quotes and separated either by commas or one or more spaces, as in, for example, lpstat -a"Queue1 Queue2" or lpstat -a"Queue1,Queue2" or lpstat -a'Queue1 Queue2' or lpstat -a'Queue1,Queue2' .
If you specify a flag with no parameters, all information pertaining to that flag is printed.
The display generated by the lpstat command contains two entries for remote queues. The first entry contains the client's local queue and local device name and its status information. The second entry contains the client's local queue name followed by the remote queue name. The spooling subsystem first displays remote print requests on the local queue. When the remote machine begins to process the remote print job, the status display for the print job moves to the remote queue.
When a status command communicates with a remote host, the display occasionally appears to hang while the command waits for a response from the remote machine. The command eventually times out if no connection is established between the two machines.
This command returns the following exit values:
0 | Successful completion. |
>0 | An error occurred. |
lpstat
lpstat -t
lpstat -plp0This command displays a list similar to the following:
Queue Dev Status Job Files User PP % Blks CP Rnk lp0 dlp0 running 39 motd guest 10 83 12 1 1
lpstat -u"root,ghandi,king"
/var/spool/lpd/* | Contains temporary copies of remote enqueued files. |
The disable command, enable command, enq command, lp command, lpr command, qchk command.
Checking Print Job Status in AIX Version 4.3 System User's Guide: Operating System and Devices.
Printers, Print Jobs and Queues Overview for Users in AIX Version 4.3 System User's Guide: Operating System and Devices.
Queuing System Overview for System Management in AIX Version 4.3 System Management Guide: Operating System and Devices.