Technical data

6.1.5 Setting Limits for Queue Backlog Events
You can set the limits at which the queue is considered backlogged and not
backlogged. You can also control whether the spooler disables and enables a
queue when the number of jobs reaches these limits.
By setting the queue-backlog-upper-limit attribute and the
queue-backlog-lower-limit attribute, you specify the number of
pending jobs in a queue that causes an event to be delivered. When the
upper limit number is reached, you receive a notification message. When the
number of pending jobs decreases to the lower limit, the queue is no longer
backlogged and another event is declared.
If you set the disable-backlogged-queue=yes attribute, the spooler
automatically disables the queue when the number of pending jobs reaches
the upper limit that you set; it automatically enables the queue when the
lower limit is reached. If disable-backlogged-queue=no, which is the
default, the spooler does not disable or enable backlogged queues.
You can use the pdset or the pdcreate command to set the queue backlog
upper and lower limits.
The following example shows how to use the pdset command to set
the queue-backlogged-upper-limit attribute to 10, to set the
queue-backlogged-lower-limit attribute to 2, to disable the queue
when it becomes backlogged, and to set up e-mail notification for the
queue my_q:
#pdset -c queue -x queue-backlog-upper-limit=10 my_q
#pdset -c queue -x queue-backlog-lower-limit=2 my_q
#pdset -c queue -x disable-backlog-queue=yes my_q
#pdset -c queue -x \
notification-profile="{event-identifier=warning-queue-backlogged \
report-queue-not-backlogged delivery-method=email \
delivery-address=sam@myco.com}" my_q
You can apply these attributes to all queues on a spooler by replacing
the queue name with the spooler name followed by a colon; for example,
my_splr:.
6.1.6 Listing Queue Attributes
You can use the pdls command to display the attributes of a queue.
To display the logical-printers-ready and physical-printers-
ready attributes of the queue named production_q, use the following
command:
# pdls -c queue production_q
This command produces the following output:
Creating and Managing Queues and Printers 6–3