ENABLE(1)
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.
In the HP Clustered environment, all printers are attached to the root server 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.
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 (or HP cluster) only.
FILES
/usr/spool/lp/∗
SEE ALSO
accept(1M), lp(1), lpadmin(1M), lpsched(1M), lpstat(1), rcancel(1M), rlp(1M), rlpdaemon(1M), rlpstat(1M).
EXTERNAL INFLUENCES
Environment Variables
LANG determines the language in which messages are displayed.
If LANG is not specified or is set to the empty string, a default of "C" (see lang(5)) is used instead of LANG.
If any internationalization variable contains an invalid setting, enable and disable behave as if all internationalization variables are set to "C". See environ(5).
International Code Set Support
Single- and multi-byte character code sets are supported.
Hewlett-Packard Company — HP-UX Release 7.0: Sept 1989