To View the Status of a Printer
An lpc is a line printer control program which is used through the system administrator to control the operation of the line printer system. For every line printer configured in /etc/printcap, lpc might be used to enable or disable a printer, disable or enable a spooling queue of a printer.
Syntax
/usr/etc/lpc [command [argument...] ]
# lpc abort { all | printer ... } It Terminates an active spooling daemon on the local host instantly and then disables printing (avoiding new daemons from being started through lpr) for the specified printers.
# lpc clean { all | printer ... } It Removes any data files, temporary files and control files which cannot be printed that is do not form a complete printer job from the specified printer queues on the local machine.
#lpc disable {all | printer ...} It Turns the specified printer queues off. This avoids new printer jobs from being entered into the queue through lpr.
# lpc down { all | printer } message ... it Turns the specified printer queue off, puts message and disable printing in the printer status file.
# lpc enable { all | printer ... } It Enables spooling on the local queue for the listed printers. This will permit lpr to put new jobs in the spool queue.
# lpc restart { all | printer ... } Attempts to begin a new printer daemon. This is useful whenever some abnormal condition causes the daemon to die unexpectedly leaving jobs in the queue. Lpq would report in which there is no daemon present whenever this condition occurs. It will try to abort the current daemon first that is kill and restart a stuck daemon If the user is the super-user.
# lpc start { all | printer ... } it Enables printing and begins a spooling daemon for the listed printers.
# lpc status { all | printer ... } it Displays the status of queues and daemons on the local machine.
# lpc stop { all | printer ... } Stops a spooling daemon after the current job done and disables printing.
# lpc up { all | printer ... } It Enables everything and begins a new printer daemon and Undoes the effects of down.
Note:
lpstat is used to check the status of the print service in Solaris.
# lpstat [ printer ]