LP ADMIN FOR UNIX, LINUX, MAC OS X






LISTED BELOW IS BASIC USAGE OF LP ADMIN FOR UNIX

GATHER INFORMATION ABOUT PRINTER…
• Printer Name
• Port Device
• Printer Type
• File Content Type

DEFINE PRINTER:
Use lpadmin command to define the printer name and the port device that the printer will use, the port device needs to be copied from /dev on backup tapes

lpadmin -p printername –v /dev/portdevice

(If the error message WARNING “/dev/portdevice is accessible by others” change the owner of the port device file to ‘lp’ and permissions 0600)

DEFINE PRINTER TYPE:
lpadmin –p printername –T PS

SPECIFY FILE TYPE THE PRINTER CAN PRINT:
lpadmin –p printername –I postscript

ACCEPT PRINTER REQUEST:

accept printername

There should be a response like below destination “printername” now accepting requests

ENABLE PRINTER:
enable printername
There should be a response like below printer “printername” now enabled

ADD A PRINTER DESCRIPTION:
lpadmin –p printername –D “description”

VERIFY PRINTER READY STATE:
lpstat -p printername
There should be a response like below
printer printername is idle. enabled since…………….. available

Lpstat
The lpstat command can be used to verify the status of a printer and examine its settings. the lpstat
command syntax is as follows,
lpstat [ a ] [ d ] [ p <printer name [ D ] [ l ] [ t ] [ u ]
-a Reports weather the printer is accepting requests
-d Shows systems default printer
-p Shows weather it is active or idle, when it was enabled
and weather it is accepting print requests.
-D Shows the description of the specified printer
-I Shows the characteristics of a printer
-t Shows the status of the lp print service, weather they are active and
accepting print requests
-u Prints the status of output requests for users

USAGE:
lpstat –u user1
The systems may display
hpl112 user1 1426 Dec 16 22:00

CANCEL JOB:
To cancel this job (as root)
cancel |
e.g
cancel hpl12

CHANGE PRIORITY:
lp –I -q
Where priority level ranges from 039 where 39 is the lowest

lpstat –p -l
Example output
Form mounted:
Content types: simple
Printer types: unknown
Description:
Connection: direct
Interface: /usr/lib/lp/model/standard
On fault: write to root once
After fault: continue
Users allowed: (all)
Forms allowed: (none)
Banner required
Character sets: (none)
Default pitch:
Default page size
Default port settings:

LP ADMIN FOR MAC OS X

LP ADMIN FOR LINUX

LP ADMIN FOR UNIX

LP ADMIN FOR LINUX

Related External Links

This entry was posted in Print and tagged , , , , , , , . Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>