System Administration Guide: Solaris Printing

ProcedureHow to Set Fault Alerts for a Printer by Using LP Print Commands

  1. Log in as superuser, lp, or assume an equivalent role on the print server.

  2. Set fault alerts for a printer.


    # lpadmin -p printer-name -A alert [-W minutes]
    -p printer-name

    Specifies the name of the printer for which you are specifying an alert for printer faults.

    -A alert

    Specifies what kind of alert occurs when the printer faults. Some valid values are mail, write, and quiet.

    -W minutes

    Specifies how often, in minutes, the fault alert occurs. If you don't specify this option, the alert is sent one time.

  3. Verify that the fault alert has been sent properly.


    # lpstat -p printer-name -l
    

Example 5–10 Setting Fault Alerts for a Printer

The following example shows how to set up the printer mars to send fault alerts by email to a user named joe. A reminder is sent every 5 minutes.


# lpadmin -p mars -A 'mail joe' -W 5

The following example shows how to set up the printer venus to send fault alerts to the console window. A reminder i sent every 10 minutes.


# lpadmin -p venus -A write -W 10

The following example shows how to stop fault alerts for the printer mercury.


# lpadmin -p mercury -A none

The following example shows how to stop fault alerts until the printer venus has been fixed.


# lpadmin -p venus -A quiet