Log in as superuser, lp, or assume an equivalent role on the print server.
Set fault alerts for a printer.
# lpadmin -p printer-name -A alert [-W minutes] |
Specifies the name of the printer for which you are specifying an alert for printer faults.
Specifies what kind of alert occurs when the printer faults. Some valid values are mail, write, and quiet.
Specifies how often, in minutes, the fault alert occurs. If you don't specify this option, the alert is sent one time.
Verify that the fault alert has been sent properly.
# lpstat -p printer-name -l |
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 |