lpstat

-p[list]

Display the status of printers. list is a list of printer names. By default, all printers

 

are shown. An example listing is:

 

 

printer lj3 is idle. enabled since Mar 4 3:16 pm

 

fence priority : 0

 

 

printer lj4 now printing lj4-166. enabled since Mar 24 5:01 pm

 

fence priority : 0

 

 

Note that for remote printers, only the status of the printers on the local system is

 

shown. The full status of printers on remote hosts is unknown. A remote printer

 

that is enabled on the local system will transfer requests to the remote host.

 

However, the printer on the remote host may be disabled.

-r

Display whether or not the printer scheduler, lpsched, is running.

-s

Display status summary. The same as entering –r–d–c–v".

-t

Display all status. The same as entering –s–a–p–o".

-u[list]

Display the status of output requests by user name. list is a list of user login names,

 

optionally qualified by an at sign (@) and a host name. By default, all requests are

 

shown. To select the information shown by other criteria, see the -o option. The

 

report shown is identical to that shown by the -o option. Example runstrings are:

 

lpstat -uwoody

Show all local requests for user •woody".

 

lpstat -uwoody@vanguard

Show all requests for user •woody" that

 

 

originated on host •vanguard".

 

If remote printers exist on the system, then both local and remote status may be

 

displayed. Local requests that match the list are shown first, followed by a listing

 

of matching requests in the queue for each remote printer. Remote status display

 

may be inhibited by specifying the -i option.

–v[list]

Display the following device information for printers:

SIf the printer is local, show the device LU number.

SIf the printer is remote, show the remote host name and the name of the printer on that host.

SIf the printer is a network peripheral, as on an HP JetDirect card, the network peripheral name is shown.

list is a list of printer names. By default, all printers are shown. An example listing is:

device for lj3: lu 114

device for rlj4: remote to lj4 on hpdsolab

device for rlj5: remote to jetdirect on hpswt06

LP Spool System 233