14.4. Stopping the print queue

In the following scenario, you have a job printing on a print queue, but you need to stop the queue so that you can put more paper in the printer.

Check the print queue using the lpstat command, as shown in the following example. The reason for the -v flag is so that you do not get a listing of all the printers. See Table 14-4 on page 403 for a list of lpstat command flags.

# lpstat -vlpforu
Queue  Dev  Status   Job Files            User       PP % Blks Cp Rnk
------ ---- -------- --- ---------------- -------- ---- -- ---- -- ---
lpforu lp0 RUNNING     3 /etc/passwd      root        1 100  1  1   1

Disable the print queue using the enq command, as shown in the following example. See Table 14-2 for a list of enq command flags.

 # enq -D -P 'lpforu:lp0' ...

Get IBM eServer Certification Study Guide - pSeries AIX System Administration now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.