lpadmin.1m (2010 09)
l
lpadmin(1M) lpadmin(1M)
NAME
lpadmin - configure the LP spooling system
SYNOPSIS
/usr/sbin/lpadmin -p
printer [options ]
/usr/sbin/lpadmin -x
dest
/usr/sbin/lpadmin -d
[dest]
/usr/sbin/lpadmin -s
[enable|disable]
DESCRIPTION
lpadmin configures LP spooling systems to describe printers, classes and devices. It is used to add and
remove destinations, change membership in classes, change devices for printers, change printer interface
programs, and to change the system default destination.
Exactly one of the
-p, -x
, -s,or-d options must be present for every legal invocation of
lpadmin.
-pprinter Names a printer to which all of the options below refer. If printer does not exist, it
will be created.
-xdest Removes destination dest from the LP system. If dest is a printer and is the only
member of a class, the class is deleted, too. No other options are allowed with
-x
.
-d[dest] Makes existing destination dest the new system default destination. If dest is not
supplied, there is no system default destination. No other options are allowed with
-d.
-s[enable|disable]
See the Enabling and Disabling Email Notification section below for more informa-
tion on this option.
The following options are only useful with
-p and can appear in any order. For ease of discussion, the
printer is referred to below as printer P.
-cclass Inserts printer P into the specified class . class is created if it does not already exist.
-eprinter Copies an existing printer ’s interface program to be the new interface program for
printer P.
-gpriority Sets the default priority for printer P associated with lp. If omitted, the default
priority is set to 0.
-h Indicates that the device associated with printer P is hardwired. This option is
assumed when creating a new printer unless the -l option is specified.
-iinterface Establishes a new interface program for printer P. interface is the pathname of the
new program.
-l Indicates that the device associated with printer P is a login terminal. The LP
scheduler (see lpsched (1M)) disables all login terminals automatically each time it
is started. Before re-enabling printer P, its current device should be established
using lpadmin.
-mmodel Selects a model interface program for printer P. model is one of the model interface
names supplied with the LP software (see Models below).
-rclass Removes printer P from the specified class . If printer P is the last member of the
class , the class is removed.
-vdevice Associates a new device with printer P. device is the pathname of a file that is writ-
able by the LP administrator lp . Note that there is nothing to stop an administra-
tor from associating the same device with more than one printer .
-orc Restricts users to canceling only their own requests. Default is to not restrict the
cancel command.
-ob3 Uses three-digit request numbers associated with the printer directory. Use this
option while configuring remote printer queues to BSD systems.
The following options are only useful with
-p and can appear in any order. They are provided with sys-
tems that provide remote spooling.
HP-UX 11i Version 3: September 2010 − 1 − Hewlett-Packard Company 1