enable Command

The enable command includes information for AIX® Print Subsystem enable and the System V Print Subsystem enable.

AIX Print Subsystem enable Command

Purpose

Enables printer queue devices.

Syntax

enable PrinterName ...

Description

The enable command brings the printer queue devices specified by the PrinterName parameter on line, or enables the printer queue devices to be used with the system.

Notes:
  1. You must have root user authority or belong to the printq group to run this command.
  2. If you enter enable -?, the system displays the following error message:
    enq: (FATAL ERROR): 0781-048: Bad queue or device name: -?

Security

Attention RBAC users and Trusted AIX users: This command can perform privileged operations. Only privileged users can run privileged operations. For more information about authorizations and privileges, see Privileged Command Database in AIX Version 7.1 Security. For a list of privileges and the authorizations associated with this command, see the lssecattr command or the getcmdattr subcommand.

Examples

To enable the print queue device lp0:lpd0, enter:

enable lp0:lpd0

Files

Item Description
/etc/qconfig Contains the queue configuration file.
/etc/qconfig.bin Contains the digested, binary version of the /etc/qconfig file.
/usr/sbin/qdaemon Contains the queuing daemon.
/var/spool/lpd/qdir/* Contains the queue requests.
/var/spool/lpd/stat/* Contains information on the status of the devices.
/var/spool/qdaemon/* Contains temporary copies of enqueued files.

System V Print Subsystem enable Command

Purpose

Enable LP printers

Syntax

enable printers

Description

The enable command activates the named printers, enabling them to print requests submitted by the lp command. If the printer is remote, the command will only enable the transfer of requests to the remote system; the enable command must be run again, on the remote system, to activate the printer. (Run lpstat -p to get the status of printers.)

When changes are made to the attributes of a print device, they are recognized by enable. Therefore to change the definition or allocation for a device, you must disable the printer on that device, change the device, and then run enable. The new device attributes will become effective when enable is executed.

Printer names are system-defined words and as such should be restricted to uppercase and lowercase ASCII characters.

If you enter enable -?, the system displays the command usage message and returns 0.

Security

Attention RBAC users and Trusted AIX users: This command can perform privileged operations. Only privileged users can run privileged operations. For more information about authorizations and privileges, see Privileged Command Database in AIX Version 7.1 Security. For a list of privileges and the authorizations associated with this command, see the lssecattr command or the getcmdattr subcommand.

Files

/var/spool/lp/*