Mac Developer Library Developer


This manual page is for Mac OS X version 10.9

If you are running a different version of Mac OS X, view the documentation locally:

  • In Terminal, using the man(1) command

Reading manual pages

Manual pages are intended as a quick reference for people who already understand a technology.

  • To learn how the manual is organized or to learn about command syntax, read the manual page for manpages(5).

  • For more information about this technology, look for other documentation in the Apple Developer Library.

  • For general information about writing shell scripts, read Shell Scripting Primer.

lpadmin(8)                                       Apple Inc.                                       lpadmin(8)

       lpadmin - configure cups printers and classes

       lpadmin [ -E ] [-U username ] [ -h server[:port] ] -d destination
       lpadmin [ -E ] [-U username ] [ -h server[:port] ] -p destination [ -R name-default ] option(s)
       lpadmin [ -E ] [-U username ] [ -h server[:port] ] -x destination

       lpadmin  configures  printer and class queues provided by CUPS. It can also be used to set the server
       default printer or class.

       When specified before the -d, -p, or -x options, the -E option forces encryption when  connecting  to
       the server.

       The  first  form  of  the  command (-d) sets the default printer or class to destination.  Subsequent
       print jobs submitted via the lp(1) or lpr(1) commands will use this destination unless the user spec-ifies specifies
       ifies otherwise with the lpoptions(1) command.

       The  second  form  of the command (-p) configures the named printer or class.  The additional options
       are described below.

       The third form of the command (-x) deletes the printer or class destination. Any jobs that are  pend-ing pending
       ing for the destination will be removed and any job that is currently printed will be aborted.

       The following options are recognized when configuring a printer queue:

       -c class
            Adds the named printer to class.  If class does not exist it is created automatically.

       -i interface
            Sets a System V style interface script for the printer. This option cannot be specified with the
            -P option (PPD file) and is intended for providing support for legacy printer drivers.

       -m model
            Sets a standard System V interface script or PPD file for the printer from the  model  directory
            or  using  one  of  the driver interfaces. Use the -m option with the lpinfo(8) command to get a
            list of supported models.

       -o cupsIPPSupplies=true

       -o cupsIPPSupplies=false
            Specifies whether IPP supply level values should be reported.

       -o cupsSNMPSupplies=true

       -o cupsSNMPSupplies=false
            Specifies whether SNMP supply level (RFC 3805) values should be reported.

       -o job-k-limit=value
            Sets the kilobyte limit for per-user quotas. The value is an integer number  of  kilobytes;  one
            kilobyte is 1024 bytes.

       -o job-page-limit=value
            Sets  the  page  limit for per-user quotas. The value is the integer number of pages that can be
            printed; double-sided pages are counted as two pages.

       -o job-quota-period=value
            Sets the accounting period for per-user quotas. The value  is  an  integer  number  of  seconds;
            86,400 seconds are in one day.

       -o job-sheets-default=banner

       -o job-sheets-default=banner,banner
            Sets the default banner page(s) to use for print jobs.

       -o name=value
            Sets  a PPD option for the printer. PPD options can be listed using the -l option with the lpop-tions(1) lpoptions(1)
            tions(1) command.

       -o name-default=value
            Sets a default server-side option for the destination. Any print-time option can  be  defaulted,
            e.g. "-o cpi-default=17" to set the default "cpi" option value to 17.

       -o port-monitor=name
            Sets  the  binary  communications  program  to  use when printing, "none", "bcp", or "tbcp". The
            default program is "none". The specified port monitor must be listed in the printer's PPD  file.

       -o printer-error-policy=name
            Sets  the  error  policy  to  be  used when the printer backend is unable to send the job to the
            printer. The name must be  one  of  "abort-job",  "retry-job",  "retry-current-job",  or  "stop-printer". "stopprinter".
            printer".  The  default  error policy is "stop-printer" for printers and "retry-current-job" for

       -o printer-is-shared=true/false
            Sets the destination to shared/published or unshared/unpublished.  Shared/published destinations
            are  publicly  announced  by  the  server  on  the  LAN  based  on the browsing configuration in
            cupsd.conf, while unshared/unpublished destinations are not  announced.  The  default  value  is

       -o printer-op-policy=name
            Sets  the  IPP operation policy associated with the destination. The name must be defined in the
            cupsd.conf in a Policy section.  The default operation policy is "default".

       -R name-default
            Deletes the named option from printer.

       -r class
            Removes the named printer from class.  If the resulting class becomes empty it is removed.

       -u allow:user,user,@group

       -u deny:user,user,@group

       -u allow:all

       -u deny:none
            Sets user-level access control on a destination. Names starting with "@" are interpreted as UNIX
            groups. The latter two forms turn user-level access control off.

       -v "device-uri"
            Sets the device-uri attribute of the printer queue. Use the -v option with the lpinfo(8) command
            to get a list of supported device URIs and schemes.

       -D "info"
            Provides a textual description of the destination.

            Enables the destination and accepts jobs; this is the same  as  running  the  cupsaccept(8)  and
            cupsenable(8) programs on the destination.

       -L "location"
            Provides a textual location of the destination.

       -P ppd-file
            Specifies  a  PostScript  Printer  Description  file to use with the printer. If specified, this
            option overrides the -i option (interface script).

       Unlike the System V printing system, CUPS allows printer names to  contain  any  printable  character
       except  SPACE, TAB, "/", or "#".  Also, printer and class names are not case-sensitive.  Finally, the
       CUPS version of lpadmin may ask the user for an access password depending on the printing system con-figuration. configuration.
       figuration.  This differs from the System V version which requires the root user to execute this com-mand. command.

       The CUPS version of lpadmin does not support all of the System V or Solaris printing system  configu-ration configuration
       ration options.

       cupsaccept(8), cupsenable(8), lpinfo(8), lpoptions(1),

       Copyright 2007-2013 by Apple Inc.

16 July 2012                                        CUPS                                          lpadmin(8)

Reporting Problems

The way to report a problem with this manual page depends on the type of problem:

Content errors
Report errors in the content of this documentation with the feedback links below.
Bug reports
Report bugs in the functionality of the described tool or API through Bug Reporter.
Formatting problems
Report formatting mistakes in the online version of these pages with the feedback links below.