System Administration Guide: Printing

ProcedureHow to Set an Alert to Mount a Form

  1. On the print server, become superuser or assume an equivalent role.

    Roles contain authorizations and privileged commands. For more information about roles, see Configuring RBAC (Task Map) in System Administration Guide: Security Services.

  2. Set a request alert for mounting a form.


    # lpforms -f form-name -A alert [-Q requests] [-W minutes]
    -f

    Specifies the form for which you want to set a request alert.

    -A alert

    Specifies what kind of alert will occur when a form is requested. Some valid values are mail, write, and quiet. If you choose mail or write, a predefined alert message says to mount the specified form. The message includes names of one or more printers that have been set up to use the form.

    -Q requests

    Specifies how many print requests that require the form must be in the queue to trigger an alert. If you don't specify this option, an alert occurs with just one print request in the queue.

    -W minutes

    Specifies how often (in minutes) the alert will occur. If you don't specify this option, the alert is sent one time.

    The request alert is added to the print server's /etc/lp/forms/form-name/alert.sh file.

  3. Verify that the alert has been added for the form.


    # lpforms -f form-name -A list
    

    Alternately, if you have set a low number of print requests to trigger the alert, submit print requests to meet the minimum requirement. Ensure that you receive an alert to mount the form.


Example 10–18 Setting an Alert to Mount a Form

This example shows how to set email alerts to occur every 5 minutes for the letterhead form when 10 print requests for letterhead reside in the print queue.


# lpforms -f letterhead -A mail -Q 10 -W 5


Example 10–19 Setting a Console Window Alert

This example shows how to set console window alerts to occur every 10 minutes for the letterhead form when 5 requests for letterheadreside in the print queue.


# lpforms -f letterhead -A write -Q 5 -W 10


Example 10–20 Setting up No Request Alerts

This example shows how to set no request alerts for the invoice form.


# lpforms -f invoice -A none