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.
# disable [-c | -W] [-r "reason"] printer-name |
Cancels the current job, then disables the printer. The current job is saved to reprint when the printer is enabled.
Cancels the current job, then disables the printer. The current job is not printed later.
Waits until the current job is finished before disabling the printer.
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 by using the lpstat -p command.
Specifies the name of the printer that will stop printing print requests.
You cannot enable or disable classes of printers. Only individual printers can be enabled or disabled.
Start printing print requests.
# enable printer-name |
Verify that the printer is enabled.
# lpstat -p printer-name |
The following example shows how to stop the current job on the printer luna, save the job to print later, and provide a reason why the printer has stopped printing print requests.
# disable -r "changing the form" luna |
The following example shows how to start printing print requests on the printer luna.
# enable luna printer "luna" enabled |