System Administration Guide

How to Enable or Disable a Printer

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

  2. Stop printing print requests on the printer by using the disable command.


    # disable [-c | -W] [-r "reason"] printer-name
    
    disable

    Cancels the current job, then disables the printer. The current job is saved to reprint when the printer is enabled.

    -c
    

    Cancels the current job, then disables the printer. The current job is not printed later. 

    -W
    

    Waits until the current job is finished before disabling the printer. 

    -r "reason"
    

    Provides users with a reason why the printer is disabled. The reason is stored and displayed whenever a user checks on the status of the printer (lpstat -p).

    printer-name

    Name of the printer that will stop printing print requests. 


    Note -

    You cannot enable or disable classes of printers. Only individual printers can be enabled or disabled.


  3. Start printing print requests on the printer by using the enable command.


    # enable printer-name
    
  4. Verify the printer is enabled.


    $ lpstat -p printer-name
    

Examples--Enabling or Disabling a Printer

In the following example, the command stops the current job on the printer luna, saves it to print later, and provides a reason why the printer has stopped printing print requests.


# disable -r "changing the form" luna

In the following example, the command starts printing print requests on the printer luna.


# enable luna
printer "luna" enabled