How to stop/restart printer queue
You can also use
lsallq command to quickly display all printer queues configured on an AIX machine:
# lsallq
HKPRT1
HKPRT2
1.
Displaying printer queue status. Use the lpstat
command :
# sudo lpstat -o<Printer Name>
Queue Dev Status Job Files User PP % Blks Cp Rnk ------- ----- --------- --- ------------------ ---------- ---- -- ----- --- --- HKPRT1 hp@49 READY
2. Stop a printer queue. To stop a printer queue, use the following -
# enq
-K -P 'name_of_queue':
# sudo enq -K -P 'HKPRT1'
Check the status
# sudo lpstat -oHKPRT1
Queue Dev Status Job Files User PP % Blks Cp Rnk ------- ----- --------- --- ------------------ ---------- ---- -- ----- --- --- HKPRT1 hp@49 DOWN
3. Start a printer queue. Starting a printer queue is almost the same as stopping it:
# sudo enq -U -P 'HKPRT1'
Check the status
#sudo lpstat -oHKPRT1 Queue Dev Status Job Files User PP % Blks Cp Rnk ------- ----- --------- --- ------------------ ---------- ---- -- ----- --- --- HKPRT1 hp@49 READY
4. Deleting a file from a printer queue.
Useful
when a printer queue does not want to restart despite all your best
efforts:
# lprm -P 'HKPRT1' 480
This
removes job #480 from the printer queue named 'HKPRT1'.
No comments:
Post a Comment