ENABLE(1) — HP-UX
NAME
enable, disable − enable/disable LP printers
SYNOPSIS
enable printers
disable [−c] [−r[reason]] printers
DESCRIPTION
Enable activates the named printers, enabling them to print requests taken by lp(1). Use lpstat(1) to find the status of printers.
Disable deactivates the named printers, disabling them from printing requests taken by lp(1). By default, any requests that are currently printing on the designated printers are reprinted in their entirety either on the same printer or on another member of the same class. Use lpstat(1) to find the status of printers. Options useful with disable are:
−c Cancel any requests that are currently printing on any of the designated printers.
−r[reason] Associates a reason with the deactivation of the printers. This reason applies to all printers mentioned up to the next −r option. If the −r option is not present or the −r option is given without a reason, a default reason is used. Reason is reported by lpstat(1). The maximum length of the reason message is 80 bytes.
EXAMPLES
The command:
enable snowwhite
enables the printer snowwhite to accept requests.
The command:
disable -c snowwhite
deactivates the printer snowwhite and cancels any logged jobs.
WARNINGS
If the restrict cancel feature (selected by the −orc option in lpadmin(1M)) is enabled, disable ignores the −c option.
Enable and disable perform their operation on the local system only.
DEPENDENCIES
Series 300 Diskless
In a clustered environment, all printers are attached to the rootserver and all spooling is handled as if the cluster were a single system. Remote spooling applies to spooling from or to machines outside of the cluster.
FILES
/usr/spool/lp/∗
SEE ALSO
accept(1M), lp(1), lpadmin(1M), lpsched(1M), lpstat(1), rcancel(1M), rlp(1M), rlpdaemon(1M), rlpstat(1M).
INTERNATIONAL SUPPORT
8- and 16-bit data, messages.
Hewlett-Packard Company — May 11, 2021