System Administration Guide, Volume 2

How to Set an Alert to Mount a Form

  1. Log in as superuser or lp on the print server.

  2. Set a request alert for mounting a form by using the lpadmin command.


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

    -f form-name

    Form for which you want to set a request alert.  

    -A alert

    Specifies what kind of alert will occur when a form is requested. See Table 5-3 for detailed information about the valid values for alert. Some valid values are mail, write, and quiet. If you choose mail or write, a predefined alert message says to mount the specified form and includes the 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 once. 

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

  3. Verify that the alert has been added for the form by checking the output of the following command.


    # lpforms -f form-name -A list
    

    Otherwise, if you have set a low number of print requests to trigger the alert, submit print requests to meet the minimum requirement and make sure you receive an alert to mount the form.

Examples--Setting an Alert to Mount a Form

In the following example, the command sets email alerts to occur every five minutes for the letterhead form when there are 10 print requests for letterhead in the print queue.


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

In the following example, the command sets console window alerts to occur every 10 minutes for the letterhead form when there are five requests for letterhead in the print queue.


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

In the following example, the command sets no request alerts for the invoice form.


# lpforms -f invoice -A none