Reallocating printer resources
You can use these procedures to avoid having one print job use all of the printer resources.
- Determine if a print job is using all resources in one of two ways:
- Use the following lpq command:
lpqThe lpq command, when entered without flags, reports the status of the default queue.
- Use the following enq command:
enq -qThe enq command enqueues a file to a shared resource, typically a printer (that is, it puts files into a queue for a particular resource). The -q flag displays the status of the default queue.
- Use the following lpq command:
- Use one of the following commands to remove the job from the print queue
(you must have root user authority to cancel jobs other than your own):
- Use the following enq command:
enq -x 21In this example, the enq command uses the -x flag to cancel job number 21.
- Use the following lprm command:
lprm -P lp0 42In this example, the lprm command removes job number 42 from the lp0 printer queue, named with the -P flag. You can also remove jobs for a specific user by naming the user on the command line.
- Use the following qadm command:
qadm -X lp0In this example, the qadm command uses the -x flag to cancel all jobs on the lp0 printer.
- Use the following SMIT fast path for the qcan command:
smit qcanIn this example, you can choose the By Print Queue option to cancel either all of a particular user's jobs or all jobs on a particular printer.
- Use the following enq command:
- Tell the sender of the print job to first divide it into smaller pieces
by using the following split command, and then send the file
as a series of jobs:
split -50 bigfileThe split command reads the specified file and writes it into segments to a set of output files. In the previous example, bigfile is split into 50-line segments named bigfileaa, bigfileab, bigfileac, and so forth.